[lttng-dev] [RFC] LTTng address API proposal v3

Yannick Brosseau yannick.brosseau at gmail.com
Wed Aug 8 16:42:41 EDT 2012


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 2012-08-08 13:17, David Goulet wrote:
> ADDENDUM:
>
> The set_consumer_url() call needs an extra arguments since we can both
> set the CONTROL or STREAM path using this call (the stream type).
>
> So, I would like to propose a change:
>
> From:
> lttng_set_consumer_url(struct lttng_handle *handle, const char *url);
>
> To:
> lttng_set_consumer_url(struct lttng_handle *handle, const char *url,
> enum lttng_url_stream_type stype);
>
> With:
> enum lttng_url_stream_type {
> LTTNG_STREAM_CONTROL,
> LTTNG_STREAM_DATA,
> LTTNG_STREAM_ALL,
> };
>
> An _url_ argument with "net://localhost" for instance implies
> LTTNG_STREAM_ALL as a type however with "tcp://", we have to specify it.
>
> The second possible idea is to add specialize calls like:
>
> set_consumer_control_url()
> set_consumer_stream_url()

Just brainstorming:
lttng_set_consumer_url(struct lttng_handle *handle, const char
*control_url, const char *data_url)

Yannick
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAlAiz0AACgkQFQrZ7GzHX2qd/ACg4uX+tLdSIuBNIz9LvT+6Gy7R
O+oAoMevaOacHiR2VI8LA18eeAB0jnCD
=iRYC
-----END PGP SIGNATURE-----




More information about the lttng-dev mailing list