aboutsummaryrefslogtreecommitdiffstats
path: root/echld/echld-int.h
diff options
context:
space:
mode:
authorLuis Ontanon <luis.ontanon@gmail.com>2013-07-04 05:34:25 +0000
committerLuis Ontanon <luis.ontanon@gmail.com>2013-07-04 05:34:25 +0000
commit047c252e9377d9a8eddfb4bfaadbf5157260b553 (patch)
tree8a63454eb7a166e4e78049b0bbca7f720d8f83bd /echld/echld-int.h
parentd85874c64c451ce10730e12ae6523cb517215470 (diff)
some more harvesting from tshark
svn path=/trunk/; revision=50380
Diffstat (limited to 'echld/echld-int.h')
-rw-r--r--echld/echld-int.h11
1 files changed, 7 insertions, 4 deletions
diff --git a/echld/echld-int.h b/echld/echld-int.h
index 0bb9dd34fe..32fa26ed73 100644
--- a/echld/echld-int.h
+++ b/echld/echld-int.h
@@ -66,6 +66,8 @@
#include "wsutil/privileges.h"
#include "epan/filesystem.h"
#include "epan/epan.h"
+#include "epan/prefs.h"
+#include "disabled_protos.h"
#include "echld.h"
#ifdef __cplusplus
@@ -143,7 +145,8 @@ extern void echld_reset_reader(echld_reader_t* r, int fd, size_t initial);
typedef struct _param {
const char* name;
char* (*get)(char** err );
- echld_bool_t (*set)(char* val , char** err);
+ echld_bool_t (*set)(char* val , char** err);
+ const char* desc;
} param_t;
#define PARAM_STR(Name, Default) static char* param_ ## Name = Default; \
@@ -158,9 +161,9 @@ typedef struct _param {
static char* param_get_ ## Name (char** err _U_ ) { return g_strdup_printf("%s",param_ ## Name ? "TRUE" : "FALSE"); } \
static echld_bool_t param_set_ ## Name (char* val , char** err _U_) { param_ ## Name = (*val == 'T' || *val == 't') ? TRUE : FALSE; return TRUE;}
-#define PARAM(Name) {#Name, param_get_ ## Name, param_set_ ## Name}
-#define RO_PARAM(Name) {#Name, param_get_ ## Name, NULL}
-#define WO_PARAM(Name) {#Name, NULL, param_set_ ## Name}
+#define PARAM(Name,Desc) {#Name, param_get_ ## Name, param_set_ ## Name, Desc}
+#define RO_PARAM(Name,Desc) {#Name, param_get_ ## Name, NULL, Desc}
+#define WO_PARAM(Name,Desc) {#Name, NULL, param_set_ ## Name, Desc}
/* the call_back used by read_frame() */
typedef long (*read_cb_t)(guint8*, size_t, echld_chld_id_t, echld_msg_type_t, echld_reqh_id_t, void*);