X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=lib%2Funixctl.h;h=d93e5e440b6ee0647d3d1c489a3f1a4097d0199b;hb=7593daa2473c464cd179420b9c7f68989044fdee;hp=0b6cbf3351d67941d40d2c64b6bc19a4a705e1fb;hpb=8ca79daaa04ca3d5edcacf84646d953569f55cb6;p=openvswitch diff --git a/lib/unixctl.h b/lib/unixctl.h index 0b6cbf33..d93e5e44 100644 --- a/lib/unixctl.h +++ b/lib/unixctl.h @@ -17,6 +17,10 @@ #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 */