diff options
author | Luis Ontanon <luis.ontanon@gmail.com> | 2006-02-11 13:05:24 +0000 |
---|---|---|
committer | Luis Ontanon <luis.ontanon@gmail.com> | 2006-02-11 13:05:24 +0000 |
commit | fcf7b3789cec5595880d27e0109387e2d8733b38 (patch) | |
tree | 04149b75555afc2d39791e321970f76b1bcaca38 /tap-mgcpstat.c | |
parent | ca970e37571a3a39d6fc257c899ffacc25222269 (diff) |
add an userdata argument to register_stat_cmd_arg() and its callback to use the callback for multiple registrations.
svn path=/trunk/; revision=17252
Diffstat (limited to 'tap-mgcpstat.c')
-rw-r--r-- | tap-mgcpstat.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tap-mgcpstat.c b/tap-mgcpstat.c index 255970b7d4..8ffe2c4fc6 100644 --- a/tap-mgcpstat.c +++ b/tap-mgcpstat.c @@ -177,7 +177,7 @@ mgcpstat_draw(void *pms) static void -mgcpstat_init(const char *optarg) +mgcpstat_init(const char *optarg, void* userdata _U_) { mgcpstat_t *ms; int i; @@ -230,7 +230,7 @@ register_tap_listener_mgcpstat(void) { /* We don't register this tap, if we don't have the mgcp plugin loaded.*/ if (find_tap_id("mgcp")) { - register_stat_cmd_arg("mgcp,rtd", mgcpstat_init); + register_stat_cmd_arg("mgcp,rtd", mgcpstat_init, NULL); } } |