projects
/
openvswitch
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
nicira-ext: Rename "struct nxt_*" to "struct nx_*".
[openvswitch]
/
lib
/
unixctl.h
diff --git
a/lib/unixctl.h
b/lib/unixctl.h
index 0b6cbf3351d67941d40d2c64b6bc19a4a705e1fb..8eb190b0b01377ab1753a58c7eec35adff5b1eae 100644
(file)
--- a/
lib/unixctl.h
+++ b/
lib/unixctl.h
@@
-1,5
+1,5
@@
/*
/*
- * Copyright (c) 2008, 2009 Nicira Networks.
+ * Copyright (c) 2008, 2009
, 2011
Nicira Networks.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@
-17,6
+17,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;
int unixctl_server_create(const char *path, struct unixctl_server **);
/* Server for Unix domain socket control connection. */
struct unixctl_server;
int unixctl_server_create(const char *path, struct unixctl_server **);
@@
-36,10
+40,15
@@
const char *unixctl_client_target(const struct unixctl_client *);
/* Command registration. */
struct unixctl_conn;
typedef void unixctl_cb_func(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,
+ int argc, const char *argv[], void *aux);
+void unixctl_command_register(const char *name, const char *usage,
+ int min_args, int max_args,
unixctl_cb_func *cb, void *aux);
void unixctl_command_reply(struct unixctl_conn *, int code,
const char *body);
unixctl_cb_func *cb, void *aux);
void unixctl_command_reply(struct unixctl_conn *, int code,
const char *body);
+#ifdef __cplusplus
+}
+#endif
+
#endif /* unixctl.h */
#endif /* unixctl.h */