bt2: replace copy of headers for SWIG with includes
[babeltrace.git] / src / bindings / python / bt2 / bt2 / native_bt_notifier.i
index b5f53900456101c8de83b29d3d59002517ee02bf..47bd3a9b65413c019816a46fb2a6fdd317984d38 100644 (file)
  * THE SOFTWARE.
  */
 
-/* From message-iterator-const.h */
-
-typedef enum bt_message_iterator_status {
-       BT_MESSAGE_ITERATOR_STATUS_OK = 0,
-       BT_MESSAGE_ITERATOR_STATUS_END = 1,
-       BT_MESSAGE_ITERATOR_STATUS_AGAIN = 11,
-       BT_MESSAGE_ITERATOR_STATUS_ERROR = -1,
-       BT_MESSAGE_ITERATOR_STATUS_NOMEM = -12,
-} bt_message_iterator_status;
-
-/* From self-message-iterator.h */
-
-typedef enum bt_self_message_iterator_status {
-       BT_SELF_MESSAGE_ITERATOR_STATUS_OK = BT_MESSAGE_ITERATOR_STATUS_OK,
-       BT_SELF_MESSAGE_ITERATOR_STATUS_END = BT_MESSAGE_ITERATOR_STATUS_END,
-       BT_SELF_MESSAGE_ITERATOR_STATUS_AGAIN = BT_MESSAGE_ITERATOR_STATUS_AGAIN,
-       BT_SELF_MESSAGE_ITERATOR_STATUS_ERROR = BT_MESSAGE_ITERATOR_STATUS_ERROR,
-       BT_SELF_MESSAGE_ITERATOR_STATUS_NOMEM = BT_MESSAGE_ITERATOR_STATUS_NOMEM,
-} bt_self_message_iterator_status;
-
-extern bt_self_component *
-bt_self_message_iterator_borrow_component(
-               bt_self_message_iterator *message_iterator);
-
-extern bt_self_port_output *
-bt_self_message_iterator_borrow_port(
-               bt_self_message_iterator *message_iterator);
-
-extern void bt_self_message_iterator_set_data(
-               bt_self_message_iterator *message_iterator,
-               void *user_data);
-
-extern void *bt_self_message_iterator_get_data(
-               const bt_self_message_iterator *message_iterator);
-
-/* From self-component-port-input-message-iterator.h */
-
-bt_message_iterator *
-bt_self_component_port_input_message_iterator_as_message_iterator(
-               bt_self_component_port_input_message_iterator *iterator);
-
-extern bt_self_component_port_input_message_iterator *
-bt_self_component_port_input_message_iterator_create(
-               bt_self_component_port_input *input_port);
-
-extern bt_component *
-bt_self_component_port_input_message_iterator_borrow_component(
-               bt_self_component_port_input_message_iterator *iterator);
-
-extern bt_message_iterator_status
-bt_self_component_port_input_message_iterator_next(
-               bt_self_component_port_input_message_iterator *iterator,
-               bt_message_array_const *msgs, uint64_t *count);
-
-extern bt_bool
-bt_self_component_port_input_message_iterator_can_seek_ns_from_origin(
-               bt_self_component_port_input_message_iterator *iterator,
-               int64_t ns_from_origin);
-
-extern bt_bool bt_self_component_port_input_message_iterator_can_seek_beginning(
-               bt_self_component_port_input_message_iterator *iterator);
-
-extern bt_message_iterator_status
-bt_self_component_port_input_message_iterator_seek_ns_from_origin(
-               bt_self_component_port_input_message_iterator *iterator,
-               int64_t ns_from_origin);
-
-extern bt_message_iterator_status
-bt_self_component_port_input_message_iterator_seek_beginning(
-               bt_self_component_port_input_message_iterator *iterator);
-
-extern void bt_self_component_port_input_message_iterator_get_ref(
-               const bt_self_component_port_input_message_iterator *self_component_port_input_message_iterator);
-
-extern void bt_self_component_port_input_message_iterator_put_ref(
-               const bt_self_component_port_input_message_iterator *self_component_port_input_message_iterator);
-
-/* From port-output-message-iterator.h */
-
-bt_message_iterator *
-bt_port_output_message_iterator_as_message_iterator(
-               bt_port_output_message_iterator *iterator);
-
-extern bt_port_output_message_iterator *
-bt_port_output_message_iterator_create(
-               bt_graph *graph,
-               const bt_port_output *output_port);
-
-extern bt_message_iterator_status
-bt_port_output_message_iterator_next(
-               bt_port_output_message_iterator *iterator,
-               bt_message_array_const *msgs, uint64_t *count);
-
-extern bt_bool bt_port_output_message_iterator_can_seek_ns_from_origin(
-               bt_port_output_message_iterator *iterator,
-               int64_t ns_from_origin);
-
-extern bt_bool bt_port_output_message_iterator_can_seek_beginning(
-               bt_port_output_message_iterator *iterator);
-
-extern bt_message_iterator_status
-bt_port_output_message_iterator_seek_ns_from_origin(
-               bt_port_output_message_iterator *iterator,
-               int64_t ns_from_origin);
-
-extern bt_message_iterator_status
-bt_port_output_message_iterator_seek_beginning(
-               bt_port_output_message_iterator *iterator);
-
-extern void bt_port_output_message_iterator_get_ref(
-               const bt_port_output_message_iterator *port_output_message_iterator);
-
-extern void bt_port_output_message_iterator_put_ref(
-               const bt_port_output_message_iterator *port_output_message_iterator);
+%include <babeltrace2/graph/message-iterator-const.h>
+%include <babeltrace2/graph/port-output-message-iterator.h>
+%include <babeltrace2/graph/self-component-port-input-message-iterator.h>
+%include <babeltrace2/graph/self-message-iterator.h>
 
 /* Helper functions for Python */
 %{
This page took 0.026149 seconds and 4 git commands to generate.