X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=lib%2Funixctl.h;h=2ab9a6853c02425b3acef7cae42c86775582deff;hb=2c6d841118a6b14cc5b03fc3b549143a6b7ce143;hp=0b6cbf3351d67941d40d2c64b6bc19a4a705e1fb;hpb=c69ee87c10818267f991236201150b1fa51ae519;p=openvswitch diff --git a/lib/unixctl.h b/lib/unixctl.h index 0b6cbf33..2ab9a685 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 **); @@ -42,4 +46,8 @@ void unixctl_command_register(const char *name, void unixctl_command_reply(struct unixctl_conn *, int code, const char *body); +#ifdef __cplusplus +} +#endif + #endif /* unixctl.h */