X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Futils_ovs.h;h=52c2f915ce62f55e65d6e001638cee2b5740048d;hb=aac3a531403cfb5f9bde9915c9559555225d335b;hp=e90bda31090dd63d3167bf93be1a1092cedbe5ad;hpb=4c5d22285e8a149a82909061f320faa22531326e;p=collectd.git diff --git a/src/utils_ovs.h b/src/utils_ovs.h index e90bda31..52c2f915 100644 --- a/src/utils_ovs.h +++ b/src/utils_ovs.h @@ -86,7 +86,7 @@ struct ovs_db_callback_s { */ void (*post_conn_init)(ovs_db_t *pdb); /* - * This callback is called when OVD DB connection + * This callback is called when OVS DB connection * has been lost. This field can be NULL. */ void (*post_conn_terminate)(void); @@ -96,6 +96,7 @@ 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 */ @@ -110,13 +111,14 @@ typedef struct ovs_db_callback_s ovs_db_callback_t; * PARAMETERS * `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. */ ovs_db_t *ovs_db_init(const char *node, const char *service, - ovs_db_callback_t *cb); + const char *unix_path, ovs_db_callback_t *cb); /* * NAME