/*
* Return allocated channel attributes.
*/
-static struct lttng_channel *init_default_attr(int dom)
+struct lttng_channel *channel_new_default_attr(int dom)
{
struct lttng_channel *chan;
/* Creating channel attributes if needed */
if (attr == NULL) {
- attr = init_default_attr(LTTNG_DOMAIN_KERNEL);
+ attr = channel_new_default_attr(LTTNG_DOMAIN_KERNEL);
if (attr == NULL) {
ret = LTTCOMM_FATAL;
goto error;
/* Creating channel attributes if needed */
if (attr == NULL) {
- attr = init_default_attr(LTTNG_DOMAIN_UST_PID);
+ attr = channel_new_default_attr(LTTNG_DOMAIN_UST_PID);
if (attr == NULL) {
ret = LTTCOMM_FATAL;
goto error;