projects
/
lttng-ust.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Refactoring: introduce session private structure
[lttng-ust.git]
/
liblttng-ust
/
lttng-ust-abi.c
diff --git
a/liblttng-ust/lttng-ust-abi.c
b/liblttng-ust/lttng-ust-abi.c
index 9a9f1b7a52dbf020a06d41fb51e2146fa5cf8a00..718dfbf70d9469c17dcecb53ee401d6d8a8ff427 100644
(file)
--- a/
liblttng-ust/lttng-ust-abi.c
+++ b/
liblttng-ust/lttng-ust-abi.c
@@
-312,8
+312,8
@@
int lttng_abi_create_session(void *owner)
ret = session_objd;
goto objd_error;
}
ret = session_objd;
goto objd_error;
}
- session->objd = session_objd;
- session->owner = owner;
+ session->
priv->
objd = session_objd;
+ session->
priv->
owner = owner;
return session_objd;
objd_error:
return session_objd;
objd_error:
@@
-470,7
+470,7
@@
int lttng_abi_map_channel(int session_objd,
goto invalid;
}
goto invalid;
}
- if (session->been_active) {
+ if (session->
priv->
been_active) {
ret = -EBUSY;
goto active; /* Refuse to add channel to active session */
}
ret = -EBUSY;
goto active; /* Refuse to add channel to active session */
}
@@
-546,7
+546,7
@@
int lttng_abi_map_channel(int session_objd,
memcpy(<tng_chan->chan->backend.config,
transport->client_config,
sizeof(lttng_chan->chan->backend.config));
memcpy(<tng_chan->chan->backend.config,
transport->client_config,
sizeof(lttng_chan->chan->backend.config));
- cds_list_add(<tng_chan->node, &session->chan_head);
+ cds_list_add(<tng_chan->node, &session->
priv->
chan_head);
lttng_chan->header_type = 0;
lttng_chan->handle = channel_handle;
lttng_chan->type = type;
lttng_chan->header_type = 0;
lttng_chan->handle = channel_handle;
lttng_chan->type = type;
@@
-1239,7
+1239,7
@@
int lttng_channel_release(int objd)
struct lttng_channel *channel = objd_private(objd);
if (channel)
struct lttng_channel *channel = objd_private(objd);
if (channel)
- return lttng_ust_objd_unref(channel->session->objd, 0);
+ return lttng_ust_objd_unref(channel->session->
priv->
objd, 0);
return 0;
}
return 0;
}
This page took
0.024219 seconds
and
4
git commands to generate.