load: objects returned by getters do not need to be freed
[lttng-tools.git] / include / lttng / load.h
index 9f4c7ab8ee81f3f47c5de4a96f3d9cd56d53bb9c..808b51331aab38399f0a779fd7b2ae2af2d77d64 100644 (file)
@@ -70,8 +70,6 @@ int lttng_load_session_attr_get_overwrite(
  * configuration.
  *
  * NULL indicates no override will be applied on configuration load.
- *
- * Caller is responsible for freeing the return value.
  */
 const char *lttng_load_session_attr_get_override_url(
        struct lttng_load_session_attr *attr);
@@ -82,8 +80,6 @@ const char *lttng_load_session_attr_get_override_url(
  * configuration(s).
  *
  * NULL indicates no control URL override will be applied on configuration load.
- *
- * Caller is responsible for freeing the return value.
  */
 const char *lttng_load_session_attr_get_override_ctrl_url(
        struct lttng_load_session_attr *attr);
@@ -94,8 +90,6 @@ const char *lttng_load_session_attr_get_override_ctrl_url(
  * configuration(s).
  *
  * NULL indicates no data URL override will be applied on configuration load.
- *
- * Caller is responsible for freeing the return value.
  */
 const char *lttng_load_session_attr_get_override_data_url(
        struct lttng_load_session_attr *attr);
@@ -138,20 +132,21 @@ int lttng_load_session_attr_set_overwrite(
  * */
 
 /*
- * Set the control url override attribute.
+ * Set the url override attribute.
  *
  * Supported format:
- *     NETPROTO://(HOST | IPADDR)[:PORT][/TRACEPATH]
+ *    file://TRACEPATH
+ *    NETPROTO://(HOST | IPADDR)[:CTRLPORT[:DATAPORT]][/TRACEPATH]
  *
  *     Where NETPROTO is one of {tcp, tcp6}
  *
  * See lttng-create(1) for more detail.
  */
-int lttng_load_session_attr_set_override_ctrl_url(
+int lttng_load_session_attr_set_override_url(
        struct lttng_load_session_attr *attr, const char *url);
 
 /*
- * Set the data url override attribute.
+ * Set the control url override attribute.
  *
  * Supported format:
  *     NETPROTO://(HOST | IPADDR)[:PORT][/TRACEPATH]
@@ -160,21 +155,20 @@ int lttng_load_session_attr_set_override_ctrl_url(
  *
  * See lttng-create(1) for more detail.
  */
-int lttng_load_session_attr_set_override_data_url(
+int lttng_load_session_attr_set_override_ctrl_url(
        struct lttng_load_session_attr *attr, const char *url);
 
 /*
- * Set the url override attribute.
+ * Set the data url override attribute.
  *
  * Supported format:
- *    file://TRACEPATH
- *    NETPROTO://(HOST | IPADDR)[:CTRLPORT[:DATAPORT]][/TRACEPATH]
+ *     NETPROTO://(HOST | IPADDR)[:PORT][/TRACEPATH]
  *
  *     Where NETPROTO is one of {tcp, tcp6}
  *
  * See lttng-create(1) for more detail.
  */
-int lttng_load_session_attr_set_override_url(
+int lttng_load_session_attr_set_override_data_url(
        struct lttng_load_session_attr *attr, const char *url);
 
 /*
This page took 0.024534 seconds and 4 git commands to generate.