aboutsummaryrefslogtreecommitdiff
path: root/lib/coverage.c
diff options
context:
space:
mode:
authorBen Pfaff <blp@nicira.com>2009-10-29 15:20:21 -0700
committerBen Pfaff <blp@nicira.com>2009-10-29 15:20:56 -0700
commit8ca79daaa04ca3d5edcacf84646d953569f55cb6 (patch)
tree330c0919f54cff9de9e51ce39b82015c1e995563 /lib/coverage.c
parentdc81071d9fe21beaead51a9c0a8d87fbefbfcf56 (diff)
unixctl: Allow passing auxiliary data to unixctl commands.
This will allow users of unixctl to avoid using global variables, leading to cleaner code.
Diffstat (limited to 'lib/coverage.c')
-rw-r--r--lib/coverage.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/coverage.c b/lib/coverage.c
index cdc796ec..8b5e9d9c 100644
--- a/lib/coverage.c
+++ b/lib/coverage.c
@@ -30,7 +30,8 @@
static unsigned int epoch;
static void
-coverage_unixctl_log(struct unixctl_conn *conn, const char *args UNUSED)
+coverage_unixctl_log(struct unixctl_conn *conn, const char *args UNUSED,
+ void *aux UNUSED)
{
coverage_log(VLL_WARN, false);
unixctl_command_reply(conn, 200, NULL);
@@ -39,7 +40,7 @@ coverage_unixctl_log(struct unixctl_conn *conn, const char *args UNUSED)
void
coverage_init(void)
{
- unixctl_command_register("coverage/log", coverage_unixctl_log);
+ unixctl_command_register("coverage/log", coverage_unixctl_log, NULL);
}
/* Sorts coverage counters in descending order by count, within equal counts