X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Futils_ovs.h;h=e90bda31090dd63d3167bf93be1a1092cedbe5ad;hb=02baaed92d2d69207170a6dc727326e22f743575;hp=1ddda4de786d8a940efca53c14149a0a5b5bee42;hpb=193d73e9e99caa0be861d20f1a6ae335bfab4c9e;p=collectd.git diff --git a/src/utils_ovs.h b/src/utils_ovs.h index 1ddda4de..e90bda31 100644 --- a/src/utils_ovs.h +++ b/src/utils_ovs.h @@ -93,6 +93,10 @@ struct ovs_db_callback_s { }; 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 + /* OVS DB prototypes */ /* @@ -104,13 +108,15 @@ typedef struct ovs_db_callback_s ovs_db_callback_t; * shall destroy the returned object. * * PARAMETERS - * `surl' OVS DB communication URL. + * `node' OVS DB Address. + * `service' OVS DB service name. * `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, + ovs_db_callback_t *cb); /* * NAME