nx-match: Fold all of its data structures into mf_field.
[sliver-openvswitch.git] / lib / unixctl.h
index 0b6cbf3..d93e5e4 100644 (file)
 #ifndef UNIXCTL_H
 #define UNIXCTL_H 1
 
+#ifdef  __cplusplus
+extern "C" {
+#endif
+
 /* Server for Unix domain socket control connection. */
 struct unixctl_server;
 int unixctl_server_create(const char *path, struct unixctl_server **);
@@ -37,9 +41,13 @@ const char *unixctl_client_target(const struct unixctl_client *);
 struct unixctl_conn;
 typedef void unixctl_cb_func(struct unixctl_conn *,
                              const char *args, void *aux);
-void unixctl_command_register(const char *name,
+void unixctl_command_register(const char *name, const char *args,
                               unixctl_cb_func *cb, void *aux);
 void unixctl_command_reply(struct unixctl_conn *, int code,
                            const char *body);
 
+#ifdef  __cplusplus
+}
+#endif
+
 #endif /* unixctl.h */