int lttng_abi_create_root_handle(void);
const struct lttng_ust_objd_ops *objd_ops(int id);
-int objd_unref(int id);
+int lttng_ust_objd_unref(int id);
void lttng_ust_abi_exit(void);
void lttng_ust_events_exit(void);
obj->u.s.f_count++;
}
-int objd_unref(int id)
+int lttng_ust_objd_unref(int id)
{
struct lttng_ust_obj *obj = _objd_get(id);
int i;
for (i = 0; i < objd_table.allocated_len; i++)
- (void) objd_unref(i);
+ (void) lttng_ust_objd_unref(i);
free(objd_table.array);
objd_table.array = NULL;
objd_table.len = 0;
{
int err;
- err = objd_unref(chan_objd);
+ err = lttng_ust_objd_unref(chan_objd);
assert(!err);
}
objd_error:
{
int err;
- err = objd_unref(event_objd);
+ err = lttng_ust_objd_unref(event_objd);
assert(!err);
}
objd_error:
struct ltt_channel *channel = objd_private(objd);
if (channel)
- return objd_unref(channel->session->objd);
+ return lttng_ust_objd_unref(channel->session->objd);
return 0;
}
free(priv);
channel->ops->buffer_read_close(buf, channel->handle);
- return objd_unref(channel->objd);
+ return lttng_ust_objd_unref(channel->objd);
}
return 0;
}
struct ltt_event *event = objd_private(objd);
if (event)
- return objd_unref(event->chan->objd);
+ return lttng_ust_objd_unref(event->chan->objd);
return 0;
}
if (lum->handle == LTTNG_UST_ROOT_HANDLE)
ret = -EPERM;
else
- ret = objd_unref(lum->handle);
+ ret = lttng_ust_objd_unref(lum->handle);
break;
default:
if (ops->cmd)
sock_info->socket = -1;
}
if (sock_info->root_handle != -1) {
- ret = objd_unref(sock_info->root_handle);
+ ret = lttng_ust_objd_unref(sock_info->root_handle);
if (ret) {
ERR("Error unref root handle");
}