#include "bitmap.h"
#include "column.h"
-#include "dynamic-string.h"
+#include "openvswitch/dynamic-string.h"
#include "monitor.h"
#include "json.h"
#include "jsonrpc.h"
remote = xmalloc(sizeof *remote);
remote->server = svr;
remote->listener = listener;
- list_init(&remote->sessions);
+ ovs_list_init(&remote->sessions);
remote->dscp = options->dscp;
shash_add(&svr->remotes, name, remote);
if (remote->listener) {
status->bound_port = pstream_get_bound_port(remote->listener);
- status->is_connected = !list_is_empty(&remote->sessions);
- status->n_connections = list_size(&remote->sessions);
+ status->is_connected = !ovs_list_is_empty(&remote->sessions);
+ status->n_connections = ovs_list_size(&remote->sessions);
return true;
}
s = xzalloc(sizeof *s);
ovsdb_session_init(&s->up, &remote->server->up);
s->remote = remote;
- list_push_back(&remote->sessions, &s->node);
+ ovs_list_push_back(&remote->sessions, &s->node);
hmap_init(&s->triggers);
hmap_init(&s->monitors);
s->js = js;
hmap_destroy(&s->triggers);
jsonrpc_session_close(s->js);
- list_remove(&s->node);
+ ovs_list_remove(&s->node);
s->remote->server->n_sessions--;
ovsdb_session_destroy(&s->up);
free(s);
const struct ovs_list *sessions = &remote->sessions;
const struct ovsdb_jsonrpc_session *s;
- if (list_is_empty(sessions)) {
+ if (ovs_list_is_empty(sessions)) {
return false;
}
- ovs_assert(list_is_singleton(sessions));
- s = CONTAINER_OF(list_front(sessions), struct ovsdb_jsonrpc_session, node);
+ ovs_assert(ovs_list_is_singleton(sessions));
+ s = CONTAINER_OF(ovs_list_front(sessions), struct ovsdb_jsonrpc_session, node);
ovsdb_jsonrpc_session_get_status(s, status);
status->n_connections = 1;
static void
ovsdb_jsonrpc_trigger_complete_done(struct ovsdb_jsonrpc_session *s)
{
- while (!list_is_empty(&s->up.completions)) {
+ while (!ovs_list_is_empty(&s->up.completions)) {
struct ovsdb_jsonrpc_trigger *t
= CONTAINER_OF(s->up.completions.next,
struct ovsdb_jsonrpc_trigger, trigger.node);