1 /* $NetBSD: save_nothing.c,v 1.1.1.2 2012/07/22 13:44:42 darrenr Exp $ */ 2 3 #include "ipf.h" 4 #include "ipmon.h" 5 6 static void *nothing_parse __P((char **)); 7 static void nothing_destroy __P((void *)); 8 static int nothing_send __P((void *, ipmon_msg_t *)); 9 10 typedef struct nothing_opts_s { 11 FILE *fp; 12 int raw; 13 char *path; 14 } nothing_opts_t; 15 16 ipmon_saver_t nothingsaver = { 17 "nothing", 18 nothing_destroy, 19 NULL, /* dup */ 20 NULL, /* match */ 21 nothing_parse, 22 NULL, /* print */ 23 nothing_send 24 }; 25 26 27 static void * 28 nothing_parse(char **strings) 29 { 30 void *ctx; 31 32 strings = strings; /* gcc -Wextra */ 33 34 ctx = calloc(1, sizeof(void *)); 35 36 return ctx; 37 } 38 39 40 static void 41 nothing_destroy(ctx) 42 void *ctx; 43 { 44 free(ctx); 45 } 46 47 48 static int 49 nothing_send(ctx, msg) 50 void *ctx; 51 ipmon_msg_t *msg; 52 { 53 ctx = ctx; /* gcc -Wextra */ 54 msg = msg; /* gcc -Wextra */ 55 /* 56 * Do nothing 57 */ 58 return 0; 59 } 60 61