diff options
author | Bart De Schuymer <bdschuym@pandora.be> | 2003-06-03 19:16:53 +0000 |
---|---|---|
committer | Bart De Schuymer <bdschuym@pandora.be> | 2003-06-03 19:16:53 +0000 |
commit | 18661b0f94f10abe37d1e0716330216db2a8388c (patch) | |
tree | d32ceaccf328ba7d04324266e5ae779c42b4c888 /extensions/ebt_log.c | |
parent | 5fd425b0fb80344f442fd1eb0f606bfed3b9511d (diff) |
module versioning
Diffstat (limited to 'extensions/ebt_log.c')
-rw-r--r-- | extensions/ebt_log.c | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/extensions/ebt_log.c b/extensions/ebt_log.c index 3c2409f..18ac5dc 100644 --- a/extensions/ebt_log.c +++ b/extensions/ebt_log.c @@ -87,6 +87,7 @@ static void init(struct ebt_entry_watcher *watcher) loginfo->bitmask = 0; loginfo->prefix[0] = '\0'; loginfo->loglevel = LOG_NOTICE; + watcher->version = VERSIONIZE(1,0); } #define OPT_PREFIX 0x01 @@ -176,15 +177,15 @@ static int compare(const struct ebt_entry_watcher *w1, static struct ebt_u_watcher log_watcher = { - EBT_LOG_WATCHER, - sizeof(struct ebt_log_info), - print_help, - init, - parse, - final_check, - print, - compare, - opts + .name = EBT_LOG_WATCHER, + .size = sizeof(struct ebt_log_info), + .help = print_help, + .init = init, + .parse = parse, + .final_check = final_check, + .print = print, + .compare = compare, + .extra_ops = opts, }; static void _init(void) __attribute__ ((constructor)); |