X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;ds=sidebyside;f=bindings%2Fpython%2Fbt2%2Fnative_btfields.i;h=883bec3b0271d1383b7cef4556163aac5ccc723a;hb=811644b8fe5fb9946972a7ace9df02ed872f448a;hp=e3753fddd5ca14b30dc12d61c8a46ea1b6819382;hpb=c92fb666a258aa91f1a5754cd6e32c96783cd80b;p=babeltrace.git diff --git a/bindings/python/bt2/native_btfields.i b/bindings/python/bt2/native_btfields.i index e3753fdd..883bec3b 100644 --- a/bindings/python/bt2/native_btfields.i +++ b/bindings/python/bt2/native_btfields.i @@ -22,10 +22,6 @@ * THE SOFTWARE. */ -%{ -#include -%} - /* Type */ struct bt_ctf_field; @@ -73,8 +69,10 @@ int bt_ctf_field_string_append_len( /* Structure field functions */ struct bt_ctf_field *bt_ctf_field_structure_get_field_by_index( struct bt_ctf_field *structure, int index); -struct bt_ctf_field *bt_ctf_field_structure_get_field( - struct bt_ctf_field *structure, const char *name); +struct bt_ctf_field *bt_ctf_field_structure_get_field_by_name( + struct bt_ctf_field *struct_field, const char *name); +int bt_ctf_field_structure_set_field_by_name(struct bt_ctf_field *struct_field, + const char *name, struct bt_ctf_field *field); /* Array field functions */ struct bt_ctf_field *bt_ctf_field_array_get_field(