diff options
author | Keith Bostic <keith@wiredtiger.com> | 2016-02-21 14:11:47 -0500 |
---|---|---|
committer | Keith Bostic <keith@wiredtiger.com> | 2016-02-21 14:11:47 -0500 |
commit | 9263c44575ba95449d1c24d233bf2d01aa512efa (patch) | |
tree | 9a351a0980aea2dd57eaa1cfc8297c07a8fed888 /examples/c | |
parent | 005c17826dbadd4b7fb51149371813768ed2d356 (diff) | |
download | mongo-9263c44575ba95449d1c24d233bf2d01aa512efa.tar.gz |
WT-2107: Add example code including an event handler #2512
Another compiler fix, add prototypes.
Diffstat (limited to 'examples/c')
-rw-r--r-- | examples/c/ex_all.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/examples/c/ex_all.c b/examples/c/ex_all.c index 524532d060f..ee57d220ea0 100644 --- a/examples/c/ex_all.c +++ b/examples/c/ex_all.c @@ -1047,7 +1047,12 @@ backup(WT_SESSION *session) #define APPLICATION_ERROR 1 #define APPLICATION_INFO 2 -static int +int application_logging(int, const char *); +int wiredtiger_handle_error( + WT_EVENT_HANDLER *, WT_SESSION *, int, const char *); +int wiredtiger_handle_message(WT_EVENT_HANDLER *, WT_SESSION *, const char *); + +int application_logging(int which, const char *message) { (void)which; @@ -1055,6 +1060,7 @@ application_logging(int which, const char *message) return (0); } + /*! [Function event_handler] */ /* |