X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=include%2Fbabeltrace%2Fgraph%2Fself-component-port-input-notification-iterator.h;h=45f7e194306c85d2d443aa35aa38a38723ca1d9b;hb=b313ef447833b79067d68258b2bdd73d89e2da0c;hp=d79f1bc066d5273e58b84efc9aecd1a951441699;hpb=0d902aeabe952191982a9caddb59132c109f0565;p=deliverable%2Fbabeltrace.git diff --git a/include/babeltrace/graph/self-component-port-input-notification-iterator.h b/include/babeltrace/graph/self-component-port-input-notification-iterator.h index d79f1bc06..45f7e1943 100644 --- a/include/babeltrace/graph/self-component-port-input-notification-iterator.h +++ b/include/babeltrace/graph/self-component-port-input-notification-iterator.h @@ -61,6 +61,25 @@ bt_self_component_port_input_notification_iterator_next( struct bt_self_component_port_input_notification_iterator *iterator, bt_notification_array_const *notifs, uint64_t *count); +extern void bt_self_component_port_input_notification_iterator_get_ref( + const struct bt_self_component_port_input_notification_iterator *self_component_port_input_notification_iterator); + +extern void bt_self_component_port_input_notification_iterator_put_ref( + const struct bt_self_component_port_input_notification_iterator *self_component_port_input_notification_iterator); + +#define BT_SELF_COMPONENT_PORT_INPUT_NOTIFICATION_ITERATOR_PUT_REF_AND_RESET(_var) \ + do { \ + bt_self_component_port_input_notification_iterator_put_ref(_var); \ + (_var) = NULL; \ + } while (0) + +#define BT_SELF_COMPONENT_PORT_INPUT_NOTIFICATION_ITERATOR_MOVE_REF(_var_dst, _var_src) \ + do { \ + bt_self_component_port_input_notification_iterator_put_ref(_var_dst); \ + (_var_dst) = (_var_src); \ + (_var_src) = NULL; \ + } while (0) + #ifdef __cplusplus } #endif