X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=plugins%2Fctf%2Flttng-live%2Fviewer-connection.c;h=067ed2690008116bc4890fc647ab99f610dbca38;hb=07208d85d16704b304b371897bb7acc995fcc481;hp=0492340c212c5158e7621fbd4d5c8d973699884c;hpb=a373bf69fd8cca703750f742b308a975d7603d43;p=babeltrace.git diff --git a/plugins/ctf/lttng-live/viewer-connection.c b/plugins/ctf/lttng-live/viewer-connection.c index 0492340c..067ed269 100644 --- a/plugins/ctf/lttng-live/viewer-connection.c +++ b/plugins/ctf/lttng-live/viewer-connection.c @@ -303,7 +303,7 @@ enum bt_value_status list_update_session(struct bt_value *results, int i, len; bool found = false; - len = bt_value_array_size(results); + len = bt_value_array_get_size(results); if (len < 0) { ret = BT_VALUE_STATUS_ERROR; goto end; @@ -436,7 +436,7 @@ enum bt_value_status list_append_session(struct bt_value *results, g_string_append_c(url, '/'); g_string_append(url, session->session_name); - ret = bt_value_map_insert_string(map, "url", url->str); + ret = bt_value_map_insert_string_entry(map, "url", url->str); if (ret != BT_VALUE_STATUS_OK) { goto end; } @@ -445,7 +445,7 @@ enum bt_value_status list_append_session(struct bt_value *results, * key = "target-hostname", * value = , */ - ret = bt_value_map_insert_string(map, "target-hostname", + ret = bt_value_map_insert_string_entry(map, "target-hostname", session->hostname); if (ret != BT_VALUE_STATUS_OK) { goto end; @@ -455,7 +455,7 @@ enum bt_value_status list_append_session(struct bt_value *results, * key = "session-name", * value = , */ - ret = bt_value_map_insert_string(map, "session-name", + ret = bt_value_map_insert_string_entry(map, "session-name", session->session_name); if (ret != BT_VALUE_STATUS_OK) { goto end; @@ -468,7 +468,7 @@ enum bt_value_status list_append_session(struct bt_value *results, { uint32_t live_timer = be32toh(session->live_timer); - ret = bt_value_map_insert_integer(map, "timer-us", + ret = bt_value_map_insert_integer_entry(map, "timer-us", live_timer); if (ret != BT_VALUE_STATUS_OK) { goto end; @@ -482,7 +482,7 @@ enum bt_value_status list_append_session(struct bt_value *results, { uint32_t streams = be32toh(session->streams); - ret = bt_value_map_insert_integer(map, "stream-count", + ret = bt_value_map_insert_integer_entry(map, "stream-count", streams); if (ret != BT_VALUE_STATUS_OK) { goto end; @@ -497,14 +497,14 @@ enum bt_value_status list_append_session(struct bt_value *results, { uint32_t clients = be32toh(session->clients); - ret = bt_value_map_insert_integer(map, "client-count", + ret = bt_value_map_insert_integer_entry(map, "client-count", clients); if (ret != BT_VALUE_STATUS_OK) { goto end; } } - ret = bt_value_array_append(results, map); + ret = bt_value_array_append_element(results, map); end: if (url) { g_string_free(url, TRUE);