Skip to content

Commit

Permalink
Finish getting plugin out of Bro namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
0xxon committed Jan 27, 2017
1 parent 5c858b4 commit de6c434
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ if (PostgreSQL_FOUND)
link_directories(${PostgreSQL_LIBRARY_DIRS})


bro_plugin_begin(Bro PostgreSQL)
bro_plugin_begin(Johanna PostgreSQL)
bro_plugin_cc(src/PostgresWriter.cc)
bro_plugin_cc(src/PostgresReader.cc)
bro_plugin_cc(src/Plugin.cc)
Expand Down
4 changes: 2 additions & 2 deletions README
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ If PostgreSQL is installed in a non-standard location, add
``--with-postgresql=<postgresql-base-directory`` to the ``configure`` command.
If everything built and installed correctly, you should see this::

# bro -N Bro::PostgreSQL
Bro::PostgreSQL - PostgreSQL log writer and input reader (dynamic, version 0.1)
# bro -N Johanna::PostgreSQL
Johanna::PostgreSQL - PostgreSQL log writer and input reader (dynamic, version 0.1)

Usage
-----
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion src/Plugin.cc
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ plugin::Configuration Plugin::Configure()
AddComponent(new ::input::Component("PostgreSQL", ::input::reader::PostgreSQL::Instantiate));

plugin::Configuration config;
config.name = "Bro::PostgreSQL";
config.name = "Johanna::PostgreSQL";
config.description = "PostgreSQL log writer and input reader";
config.version.major = 0;
config.version.minor = 2;
Expand Down
2 changes: 1 addition & 1 deletion tests/Baseline/postgres.show-plugin/output
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Bro::PostgreSQL - PostgreSQL log writer and input reader (dynamic, version 0.1)
Johanna::PostgreSQL - PostgreSQL log writer and input reader (dynamic, version 0.2)
[Writer] PostgreSQL (Log::WRITER_POSTGRESQL)
[Reader] PostgreSQL (Input::READER_POSTGRESQL)
[Constant] LogPostgres::default_hostname
Expand Down
2 changes: 1 addition & 1 deletion tests/postgres/show-plugin.bro
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# @TEST-EXEC: bro -NN Bro::PostgreSQL >output
# @TEST-EXEC: bro -NN Johanna::PostgreSQL >output
# @TEST-EXEC: btest-diff output

0 comments on commit de6c434

Please sign in to comment.