projects
/
babeltrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Values API: standardize function names
[babeltrace.git]
/
plugins
/
ctf
/
lttng-live
/
viewer-connection.c
diff --git
a/plugins/ctf/lttng-live/viewer-connection.c
b/plugins/ctf/lttng-live/viewer-connection.c
index 0492340c212c5158e7621fbd4d5c8d973699884c..067ed2690008116bc4890fc647ab99f610dbca38 100644
(file)
--- 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;
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;
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);
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;
}
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 = <string>,
*/
* key = "target-hostname",
* value = <string>,
*/
- 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;
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 = <string>,
*/
* key = "session-name",
* value = <string>,
*/
- 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;
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);
{
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;
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);
{
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;
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);
{
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;
}
}
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);
end:
if (url) {
g_string_free(url, TRUE);
This page took
0.024413 seconds
and
4
git commands to generate.