Commit | Line | Data |
---|---|---|
24a3136a DS |
1 | /* |
2 | * python-complements.h | |
3 | * | |
4 | * Babeltrace Python module complements header, required for Python bindings | |
5 | * | |
6 | * Copyright 2012 EfficiOS Inc. | |
7 | * | |
8 | * Author: Danny Serres <danny.serres@efficios.com> | |
9 | * | |
10 | * Permission is hereby granted, free of charge, to any person obtaining a copy | |
11 | * of this software and associated documentation files (the "Software"), to deal | |
12 | * in the Software without restriction, including without limitation the rights | |
13 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
14 | * copies of the Software, and to permit persons to whom the Software is | |
15 | * furnished to do so, subject to the following conditions: | |
16 | * | |
17 | * The above copyright notice and this permission notice shall be included in | |
18 | * all copies or substantial portions of the Software. | |
19 | */ | |
20 | ||
21 | #include <stdio.h> | |
22 | #include <glib.h> | |
23 | #include <babeltrace/babeltrace.h> | |
24 | #include <babeltrace/format.h> | |
25 | #include <babeltrace/ctf-ir/metadata.h> | |
26 | #include <babeltrace/ctf/events.h> | |
27 | #include <babeltrace/iterator-internal.h> | |
28 | #include <babeltrace/ctf/events-internal.h> | |
29 | ||
30 | /* File */ | |
31 | FILE *_bt_file_open(char *file_path, char *mode); | |
32 | void _bt_file_close(FILE *fp); | |
33 | ||
34 | /* ctf-field-list */ | |
2c0df204 | 35 | struct bt_definition **_bt_python_field_listcaller( |
24a3136a | 36 | const struct bt_ctf_event *ctf_event, |
2c0df204 XH |
37 | const struct bt_definition *scope); |
38 | struct bt_definition *_bt_python_field_one_from_list( | |
39 | struct bt_definition **list, int index); | |
24a3136a DS |
40 | |
41 | /* event_decl_list */ | |
42 | struct bt_ctf_event_decl **_bt_python_event_decl_listcaller( | |
43 | int handle_id, struct bt_context *ctx); | |
44 | struct bt_ctf_event_decl *_bt_python_decl_one_from_list( | |
45 | struct bt_ctf_event_decl **list, int index); | |
46 | ||
47 | /* decl_fields */ | |
48 | struct bt_ctf_field_decl **_by_python_field_decl_listcaller( | |
49 | struct bt_ctf_event_decl *event_decl, | |
50 | enum bt_ctf_scope scope); | |
51 | struct bt_ctf_field_decl *_bt_python_field_decl_one_from_list( | |
52 | struct bt_ctf_field_decl **list, int index); | |
3c2ce778 XH |
53 | |
54 | /* definitions */ | |
55 | struct definition_array *_bt_python_get_array_from_def( | |
56 | struct bt_definition *field); | |
786207e0 XH |
57 | struct definition_sequence *_bt_python_get_sequence_from_def( |
58 | struct bt_definition *field); |