-void unixctl_command_register(const char *name,
- void (*cb)(struct unixctl_conn *,
- const char *args));
-void unixctl_command_reply(struct unixctl_conn *, int code,
- const char *body);
+typedef void unixctl_cb_func(struct unixctl_conn *,
+ int argc, const char *argv[], void *aux);
+void unixctl_command_register(const char *name, const char *usage,
+ int min_args, int max_args,
+ unixctl_cb_func *cb, void *aux);
+void unixctl_command_reply_error(struct unixctl_conn *, const char *error);
+void unixctl_command_reply(struct unixctl_conn *, const char *body);
+
+#ifdef __cplusplus
+}
+#endif