change start/stop session parameters
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Sun, 23 Oct 2011 23:48:41 +0000 (19:48 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Sun, 23 Oct 2011 23:48:41 +0000 (19:48 -0400)
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
include/ust/lttng-ust-ctl.h
libustctl/ustctl.c

index 681849041ebe487b3c403b273d21fa2ceb6c9837..e05d95b5d28578efe7370b9e913d8235033acfae 100644 (file)
@@ -60,8 +60,8 @@ int ustctl_add_context(int sock, struct lttng_ust_context *ctx,
 
 int ustctl_enable(int sock, struct object_data *object);
 int ustctl_disable(int sock, struct object_data *object);
-int ustctl_start_session(int sock, struct object_data *object);
-int ustctl_stop_session(int sock, struct object_data *object);
+int ustctl_start_session(int sock, int handle);
+int ustctl_stop_session(int sock, int handle);
 
 int ustctl_tracepoint_list(int sock);  /* not implemented yet */
 int ustctl_tracer_version(int sock, struct lttng_ust_tracer_version *v);
index 50357645dd18ca0153c3025360a1ad0c2c137e1a..27ba0e5f3fa48f36b6e6c3d32c27237a53d9ca21 100644 (file)
@@ -352,14 +352,20 @@ int ustctl_disable(int sock, struct object_data *object)
        return 0;
 }
 
-int ustctl_start_session(int sock, struct object_data *object)
+int ustctl_start_session(int sock, int handle)
 {
-       return ustctl_enable(sock, object);
+       struct object_data obj;
+
+       obj.handle = handle;
+       return ustctl_enable(sock, &obj);
 }
 
-int ustctl_stop_session(int sock, struct object_data *object)
+int ustctl_stop_session(int sock, int handle)
 {
-       return ustctl_disable(sock, object);
+       struct object_data obj;
+
+       obj.handle = handle;
+       return ustctl_disable(sock, &obj);
 }
 
 
This page took 0.025483 seconds and 4 git commands to generate.