projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Tree wide: Replace sstrerror() with STRERROR().
[collectd.git]
/
src
/
utils_ovs.h
diff --git
a/src/utils_ovs.h
b/src/utils_ovs.h
index
1ddda4d
..
52c2f91
100644
(file)
--- a/
src/utils_ovs.h
+++ b/
src/utils_ovs.h
@@
-86,13
+86,18
@@
struct ovs_db_callback_s {
*/
void (*post_conn_init)(ovs_db_t *pdb);
/*
*/
void (*post_conn_init)(ovs_db_t *pdb);
/*
- * This callback is called when OV
D
DB connection
+ * This callback is called when OV
S
DB connection
* has been lost. This field can be NULL.
*/
void (*post_conn_terminate)(void);
};
typedef struct ovs_db_callback_s ovs_db_callback_t;
* has been lost. This field can be NULL.
*/
void (*post_conn_terminate)(void);
};
typedef struct ovs_db_callback_s ovs_db_callback_t;
+/* OVS DB defines */
+#define OVS_DB_ADDR_NODE_SIZE 256
+#define OVS_DB_ADDR_SERVICE_SIZE 128
+#define OVS_DB_ADDR_UNIX_SIZE 108
+
/* OVS DB prototypes */
/*
/* OVS DB prototypes */
/*
@@
-104,13
+109,16
@@
typedef struct ovs_db_callback_s ovs_db_callback_t;
* shall destroy the returned object.
*
* PARAMETERS
* shall destroy the returned object.
*
* PARAMETERS
- * `surl' OVS DB communication URL.
+ * `node' OVS DB Address.
+ * `service' OVS DB service name.
+ * `unix' OVS DB unix socket path.
* `cb' OVS DB callbacks.
*
* RETURN VALUE
* New ovs_db_t object upon success or NULL if an error occurred.
*/
* `cb' OVS DB callbacks.
*
* RETURN VALUE
* New ovs_db_t object upon success or NULL if an error occurred.
*/
-ovs_db_t *ovs_db_init(const char *surl, ovs_db_callback_t *cb);
+ovs_db_t *ovs_db_init(const char *node, const char *service,
+ const char *unix_path, ovs_db_callback_t *cb);
/*
* NAME
/*
* NAME