Fix: Python bindings array access functions write out of bounds
[babeltrace.git] / bindings / python / python-complements.h
CommitLineData
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 */
31FILE *_bt_file_open(char *file_path, char *mode);
32void _bt_file_close(FILE *fp);
33
34/* ctf-field-list */
2c0df204 35struct bt_definition **_bt_python_field_listcaller(
24a3136a 36 const struct bt_ctf_event *ctf_event,
cebae8c3
JG
37 const struct bt_definition *scope,
38 unsigned int *len);
2c0df204
XH
39struct bt_definition *_bt_python_field_one_from_list(
40 struct bt_definition **list, int index);
24a3136a
DS
41
42/* event_decl_list */
43struct bt_ctf_event_decl **_bt_python_event_decl_listcaller(
cebae8c3
JG
44 int handle_id,
45 struct bt_context *ctx,
46 unsigned int *len);
24a3136a
DS
47struct bt_ctf_event_decl *_bt_python_decl_one_from_list(
48 struct bt_ctf_event_decl **list, int index);
49
50/* decl_fields */
51struct bt_ctf_field_decl **_by_python_field_decl_listcaller(
52 struct bt_ctf_event_decl *event_decl,
cebae8c3
JG
53 enum bt_ctf_scope scope,
54 unsigned int *len);
24a3136a
DS
55struct bt_ctf_field_decl *_bt_python_field_decl_one_from_list(
56 struct bt_ctf_field_decl **list, int index);
3c2ce778
XH
57
58/* definitions */
59struct definition_array *_bt_python_get_array_from_def(
60 struct bt_definition *field);
786207e0
XH
61struct definition_sequence *_bt_python_get_sequence_from_def(
62 struct bt_definition *field);
This page took 0.025126 seconds and 4 git commands to generate.