projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
API change for lttng_list_domains prototype
[lttng-tools.git]
/
liblttngctl
/
lttngctl.c
diff --git
a/liblttngctl/lttngctl.c
b/liblttngctl/lttngctl.c
index ed685966ee43c606e11d60669a4e8f20ccfba9a7..c5e8cf8f8cffae86ecce900354f13a0752b4e382 100644
(file)
--- a/
liblttngctl/lttngctl.c
+++ b/
liblttngctl/lttngctl.c
@@
-708,20
+708,19
@@
int lttng_list_sessions(struct lttng_session **sessions)
/*
* List domain of a session.
*/
/*
* List domain of a session.
*/
-int lttng_list_domains(
struct lttng_handle *handl
e,
+int lttng_list_domains(
const char *session_nam
e,
struct lttng_domain **domains)
{
int ret;
struct lttcomm_session_msg lsm;
struct lttng_domain **domains)
{
int ret;
struct lttcomm_session_msg lsm;
- if (
handl
e == NULL) {
+ if (
session_nam
e == NULL) {
return -1;
}
lsm.cmd_type = LTTNG_LIST_DOMAINS;
return -1;
}
lsm.cmd_type = LTTNG_LIST_DOMAINS;
- copy_string(lsm.session.name, handle->session_name,
- sizeof(lsm.session.name));
+ copy_string(lsm.session.name, session_name, sizeof(lsm.session.name));
ret = ask_sessiond(&lsm, (void**) domains);
if (ret < 0) {
ret = ask_sessiond(&lsm, (void**) domains);
if (ret < 0) {
This page took
0.022819 seconds
and
4
git commands to generate.