*/
#define _GNU_SOURCE
+#define _LGPL_SOURCE
#include <assert.h>
#include <inttypes.h>
#include <signal.h>
#include <common/kernel-ctl/kernel-ctl.h>
#include <common/kernel-consumer/kernel-consumer.h>
#include <common/consumer-stream.h>
-#include <lttng/ust-ctl.h>
#include "consumer-timer.h"
#include "consumer-testpoint.h"
ret = -1;
goto error_unlock;
}
- ret = ustctl_get_stream_id(stream->ustream, &stream_id);
+ ret = lttng_ustconsumer_get_stream_id(stream, &stream_id);
if (ret < 0) {
PERROR("ustctl_get_stream_id");
goto error_unlock;
* Block the RT signals for the entire process. It must be called from the
* consumer main before creating the threads
*/
-void consumer_signal_init(void)
+int consumer_signal_init(void)
{
int ret;
sigset_t mask;
if (ret) {
errno = ret;
PERROR("pthread_sigmask");
+ return -1;
}
+ return 0;
}
/*