Standardize *get_*() functions
[babeltrace.git] / lib / ctf-ir / event.c
index ff153559ae1962dacf27f562f666112936c4ac89..a92c4301b90bdb6ce859bf755e3b7fdbe302a2f2 100644 (file)
@@ -316,7 +316,7 @@ end:
        return ret;
 }
 
-struct bt_ctf_field *bt_ctf_event_get_payload_field(struct bt_ctf_event *event)
+struct bt_ctf_field *bt_ctf_event_get_event_payload(struct bt_ctf_event *event)
 {
        struct bt_ctf_field *payload = NULL;
 
@@ -330,7 +330,7 @@ end:
        return payload;
 }
 
-int bt_ctf_event_set_payload_field(struct bt_ctf_event *event,
+int bt_ctf_event_set_event_payload(struct bt_ctf_event *event,
                struct bt_ctf_field *payload)
 {
        int ret = 0;
@@ -381,11 +381,11 @@ end:
 }
 
 struct bt_ctf_field *bt_ctf_event_get_payload_by_index(
-               struct bt_ctf_event *event, int index)
+               struct bt_ctf_event *event, uint64_t index)
 {
        struct bt_ctf_field *field = NULL;
 
-       if (!event || index < 0) {
+       if (!event) {
                goto end;
        }
 
This page took 0.025853 seconds and 4 git commands to generate.