Add intersect mode to python bindings
[babeltrace.git] / bindings / python / python-complements.h
index c5e93eec4e800b1b1468f1e28d92de29f29bc8ca..0e787d62d81eb81e1552463a67214b78f68e6191 100644 (file)
@@ -26,6 +26,7 @@
 #include <babeltrace/ctf/events.h>
 #include <babeltrace/iterator-internal.h>
 #include <babeltrace/ctf/events-internal.h>
+#include <babeltrace/ctf-writer/event-fields.h>
 
 /* File */
 FILE *_bt_file_open(char *file_path, char *mode);
@@ -34,23 +35,47 @@ void _bt_file_close(FILE *fp);
 /* ctf-field-list */
 struct bt_definition **_bt_python_field_listcaller(
                const struct bt_ctf_event *ctf_event,
-               const struct bt_definition *scope);
+               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);
+struct bt_declaration *_bt_python_get_array_element_declaration(
+               struct bt_declaration *field);
+struct bt_declaration *_bt_python_get_sequence_element_declaration(
+               struct bt_declaration *field);
+const char *_bt_python_get_array_string(struct bt_definition *field);
+const char *_bt_python_get_sequence_string(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);
+
+/* iterator */
+struct bt_iter_pos *_bt_python_create_iter_pos(void);
+struct bt_ctf_iter *_bt_python_ctf_iter_create_intersect(
+               struct bt_context *ctx,
+               struct bt_iter_pos *inter_begin_pos,
+               struct bt_iter_pos *inter_end_pos);
+int _bt_python_has_intersection(struct bt_context *ctx);
This page took 0.02669 seconds and 4 git commands to generate.