X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=liblttng-ust%2Fust-core.c;h=f9c00ff07bda1d72bea3f42d1ad5d999023ca908;hb=7047f3daaab1059013579cc0257bb0f551931b82;hp=80bd42b0bb4e57261fc5b56929cf8e53dbcf674c;hpb=5d128a2f085ccbe908ece770d2452d192b8b5217;p=lttng-ust.git diff --git a/liblttng-ust/ust-core.c b/liblttng-ust/ust-core.c index 80bd42b0..f9c00ff0 100644 --- a/liblttng-ust/ust-core.c +++ b/liblttng-ust/ust-core.c @@ -18,11 +18,11 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ -#include -#include #include +#include +#include -static CDS_LIST_HEAD(ltt_transport_list); +static CDS_LIST_HEAD(lttng_transport_list); void init_usterr(void) { @@ -37,11 +37,11 @@ void init_usterr(void) } } -struct ltt_transport *ltt_transport_find(const char *name) +struct lttng_transport *lttng_transport_find(const char *name) { - struct ltt_transport *transport; + struct lttng_transport *transport; - cds_list_for_each_entry(transport, <t_transport_list, node) { + cds_list_for_each_entry(transport, <tng_transport_list, node) { if (!strcmp(transport->name, name)) return transport; } @@ -49,23 +49,23 @@ struct ltt_transport *ltt_transport_find(const char *name) } /** - * ltt_transport_register - LTT transport registration + * lttng_transport_register - LTT transport registration * @transport: transport structure * * Registers a transport which can be used as output to extract the data out of * LTTng. Called with ust_lock held. */ -void ltt_transport_register(struct ltt_transport *transport) +void lttng_transport_register(struct lttng_transport *transport) { - cds_list_add_tail(&transport->node, <t_transport_list); + cds_list_add_tail(&transport->node, <tng_transport_list); } /** - * ltt_transport_unregister - LTT transport unregistration + * lttng_transport_unregister - LTT transport unregistration * @transport: transport structure * Called with ust_lock held. */ -void ltt_transport_unregister(struct ltt_transport *transport) +void lttng_transport_unregister(struct lttng_transport *transport) { cds_list_del(&transport->node); }