projects
/
openvswitch
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ofp-print: Make port "config" and "state" output easier to read.
[openvswitch]
/
lib
/
unixctl.h
diff --git
a/lib/unixctl.h
b/lib/unixctl.h
index 24a9d8c80980e92cc37ba6f7ab0c6196d55356d0..2ab9a6853c02425b3acef7cae42c86775582deff 100644
(file)
--- a/
lib/unixctl.h
+++ b/
lib/unixctl.h
@@
-16,7
+16,7
@@
#ifndef UNIXCTL_H
#define UNIXCTL_H 1
#ifndef UNIXCTL_H
#define UNIXCTL_H 1
-
+
#ifdef __cplusplus
extern "C" {
#endif
#ifdef __cplusplus
extern "C" {
#endif
@@
-39,12
+39,13
@@
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
#ifdef __cplusplus
}
#endif