diff options
author | Luis Ontanon <luis.ontanon@gmail.com> | 2013-06-27 19:00:01 +0000 |
---|---|---|
committer | Luis Ontanon <luis.ontanon@gmail.com> | 2013-06-27 19:00:01 +0000 |
commit | 99013aefa81f2d3e14d3e063574e6dea4045d0b1 (patch) | |
tree | 2a1e516d3c86aca5690a8725f5f51e276c0f46ac /echld/echld.h | |
parent | 16fc2c5998031c086d05cf5706ab5b5e9e2abaf2 (diff) |
MS: list interfaces!
svn path=/trunk/; revision=50195
Diffstat (limited to 'echld/echld.h')
-rw-r--r-- | echld/echld.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/echld/echld.h b/echld/echld.h index 77738213b6..c757760992 100644 --- a/echld/echld.h +++ b/echld/echld.h @@ -27,6 +27,10 @@ #ifndef __ECHLD_H #define __ECHLD_H +#ifdef __cplusplus +extern "C" { +#endif + #include "ws_symbol_export.h" #define ECHLD_VERSION "0.0" @@ -74,7 +78,7 @@ typedef int echld_bool_t; typedef struct timeval tv_t; /* will initialize epan registering protocols and taps */ -WS_DLL_PUBLIC void echld_initialize(echld_encoding_t); +WS_DLL_PUBLIC void echld_initialize(echld_encoding_t, char* argv0, int (*main)(int, char **)); /* cleans up (?) echld and kills the server process(es) */ WS_DLL_PUBLIC echld_state_t echld_terminate(void); @@ -135,6 +139,7 @@ typedef echld_bool_t (*echld_msg_cb_t)(echld_msg_type_t type, enc_msg_t* msg_buf typedef struct _parent_out { enc_msg_t* (*error)(int err, const char* text); + enc_msg_t* (*get_param)(const char* param); enc_msg_t* (*set_param)(const char* param, const char* value); enc_msg_t* (*close_child)(int mode); enc_msg_t* (*open_file)(const char* filename); @@ -374,5 +379,8 @@ enum _echld_error { ECHLD_ERR_OTHER }; +#ifdef __cplusplus +}; +#endif #endif |