projects
/
openvswitch
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
random: Get random seed from /dev/urandom.
[openvswitch]
/
lib
/
unixctl.h
diff --git
a/lib/unixctl.h
b/lib/unixctl.h
index 18748aa766e54aa9020eccd29a6bf1bb087c254a..89199bb6f9ff43de6c89e0ffd8341b1687f889d9 100644
(file)
--- a/
lib/unixctl.h
+++ b/
lib/unixctl.h
@@
-16,6
+16,10
@@
#ifndef UNIXCTL_H
#define UNIXCTL_H 1
#ifndef UNIXCTL_H
#define UNIXCTL_H 1
+
+#ifdef __cplusplus
+extern "C" {
+#endif
/* Server for Unix domain socket control connection. */
struct unixctl_server;
/* Server for Unix domain socket control connection. */
struct unixctl_server;
@@
-35,10
+39,15
@@
const char *unixctl_client_target(const struct unixctl_client *);
/* Command registration. */
struct unixctl_conn;
/* Command registration. */
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,
- void (*cb)(struct unixctl_conn *,
- const char *args));
+ unixctl_cb_func *cb, void *aux);
void unixctl_command_reply(struct unixctl_conn *, int code,
const char *body);
void unixctl_command_reply(struct unixctl_conn *, int code,
const char *body);
+
+#ifdef __cplusplus
+}
+#endif
#endif /* unixctl.h */
#endif /* unixctl.h */