X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=blobdiff_plain;f=bindings%2Fpython%2Fpython-complements.h;h=43b77197c1c2cc434de5428cbd6d6c7714082bfe;hp=9597d7053a3cd6423717b13dc62739f85f730fb9;hb=ec8c88d7d67bfcd57d2a09a135edae4737f3f4d9;hpb=bb919dd077169b5ee049ba3fc82f8555648cb22e diff --git a/bindings/python/python-complements.h b/bindings/python/python-complements.h index 9597d705..43b77197 100644 --- a/bindings/python/python-complements.h +++ b/bindings/python/python-complements.h @@ -26,27 +26,42 @@ #include #include #include +#include /* File */ FILE *_bt_file_open(char *file_path, char *mode); void _bt_file_close(FILE *fp); /* ctf-field-list */ -struct definition **_bt_python_field_listcaller( +struct bt_definition **_bt_python_field_listcaller( const struct bt_ctf_event *ctf_event, - const struct definition *scope); -struct definition *_bt_python_field_one_from_list( - struct definition **list, int index); + const struct bt_definition *scope, + unsigned int *len); +struct bt_definition *_bt_python_field_one_from_list( + struct bt_definition **list, int index); /* event_decl_list */ struct bt_ctf_event_decl **_bt_python_event_decl_listcaller( - int handle_id, struct bt_context *ctx); + int handle_id, + struct bt_context *ctx, + unsigned int *len); struct bt_ctf_event_decl *_bt_python_decl_one_from_list( struct bt_ctf_event_decl **list, int index); /* decl_fields */ struct bt_ctf_field_decl **_by_python_field_decl_listcaller( struct bt_ctf_event_decl *event_decl, - enum bt_ctf_scope scope); + enum bt_ctf_scope scope, + unsigned int *len); struct bt_ctf_field_decl *_bt_python_field_decl_one_from_list( struct bt_ctf_field_decl **list, int index); + +/* definitions */ +struct definition_array *_bt_python_get_array_from_def( + struct bt_definition *field); +struct definition_sequence *_bt_python_get_sequence_from_def( + struct bt_definition *field); + +/* ctf writer */ +int _bt_python_field_integer_get_signedness(const struct bt_ctf_field *field); +enum ctf_type_id _bt_python_get_field_type(const struct bt_ctf_field *field);