X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=blobdiff_plain;f=bindings%2Fpython%2Fbt2%2Fnative_btstreamclass.i;h=824405712d1de85fccb79bf5bf6136bb913e6e19;hp=2ba6024c473a8780c61d0fd37819d90b868309a4;hb=811644b8fe5fb9946972a7ace9df02ed872f448a;hpb=c92fb666a258aa91f1a5754cd6e32c96783cd80b diff --git a/bindings/python/bt2/native_btstreamclass.i b/bindings/python/bt2/native_btstreamclass.i index 2ba6024c..82440571 100644 --- a/bindings/python/bt2/native_btstreamclass.i +++ b/bindings/python/bt2/native_btstreamclass.i @@ -22,14 +22,12 @@ * THE SOFTWARE. */ -%{ -#include -%} - /* Type */ struct bt_ctf_stream_class; /* Functions */ +struct bt_ctf_stream_class *bt_ctf_stream_class_create_empty( + const char *name); struct bt_ctf_stream_class *bt_ctf_stream_class_create(const char *name); struct bt_ctf_trace *bt_ctf_stream_class_get_trace( struct bt_ctf_stream_class *stream_class); @@ -40,7 +38,7 @@ int bt_ctf_stream_class_set_name( int64_t bt_ctf_stream_class_get_id( struct bt_ctf_stream_class *stream_class); int bt_ctf_stream_class_set_id( - struct bt_ctf_stream_class *stream_class, uint32_t id); + struct bt_ctf_stream_class *stream_class, uint64_t id); struct bt_ctf_field_type *bt_ctf_stream_class_get_packet_context_type( struct bt_ctf_stream_class *stream_class); int bt_ctf_stream_class_set_packet_context_type( @@ -58,14 +56,12 @@ bt_ctf_stream_class_get_event_context_type( int bt_ctf_stream_class_set_event_context_type( struct bt_ctf_stream_class *stream_class, struct bt_ctf_field_type *event_context_type); -int bt_ctf_stream_class_get_event_class_count( +int64_t bt_ctf_stream_class_get_event_class_count( struct bt_ctf_stream_class *stream_class); -struct bt_ctf_event_class *bt_ctf_stream_class_get_event_class( - struct bt_ctf_stream_class *stream_class, int index); -struct bt_ctf_event_class *bt_ctf_stream_class_get_event_class_by_name( - struct bt_ctf_stream_class *stream_class, const char *name); +struct bt_ctf_event_class *bt_ctf_stream_class_get_event_class_by_index( + struct bt_ctf_stream_class *stream_class, uint64_t index); struct bt_ctf_event_class *bt_ctf_stream_class_get_event_class_by_id( - struct bt_ctf_stream_class *stream_class, uint32_t id); + struct bt_ctf_stream_class *stream_class, uint64_t id); int bt_ctf_stream_class_add_event_class( struct bt_ctf_stream_class *stream_class, struct bt_ctf_event_class *event_class);