lib: make public reference count functions have strict types
[babeltrace.git] / include / babeltrace / graph / self-component-port-input-notification-iterator.h
index d79f1bc066d5273e58b84efc9aecd1a951441699..45f7e194306c85d2d443aa35aa38a38723ca1d9b 100644 (file)
@@ -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
This page took 0.022801 seconds and 4 git commands to generate.