* Dual LGPL v2.1/GPL v2 license.
*/
-#include <ust/lttng-ust-abi.h>
+#include <lttng/ust-abi.h>
#include <urcu/compiler.h>
#include <urcu/list.h>
-#include <ust/lttng-events.h>
-#include <ust/usterr-signal-safe.h>
-#include "ust/core.h"
+#include <lttng/ust-events.h>
+#include <lttng/usterr-signal-safe.h>
+#include "lttng/core.h"
#include "ltt-tracer.h"
/*
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;
}