X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=include%2Flttng%2Faction%2Flist.h;h=0dfffa296ad073e1e597c942bc9dcb252aec5430;hb=0ae8863018325f0e86112e6a1ce466d5576b5461;hp=888c1237e10a5c7f908a5736355c177251b6d2ff;hpb=ad63a966ae7a204528fa77599f92100d7341be7a;p=lttng-tools.git diff --git a/include/lttng/action/list.h b/include/lttng/action/list.h index 888c1237e..0dfffa296 100644 --- a/include/lttng/action/list.h +++ b/include/lttng/action/list.h @@ -8,8 +8,9 @@ #ifndef LTTNG_ACTION_LIST_H #define LTTNG_ACTION_LIST_H +#include + struct lttng_action; -struct lttng_action_list; #ifdef __cplusplus extern "C" { @@ -19,39 +20,39 @@ extern "C" { * Create a newly allocated action list object. * * Returns a new action list on success, NULL on failure. This action list - * must be destroyed using lttng_action_list_destroy(). + * must be destroyed using lttng_action_destroy(). */ -extern struct lttng_action *lttng_action_list_create(void); +LTTNG_EXPORT extern struct lttng_action *lttng_action_list_create(void); /* * Add an action to an lttng_action object of type LTTNG_ACTION_LIST. * * The action list acquires a reference to the action. The action can be * safely destroyed after calling this function. An action must not be - * modified after adding it to a group. + * modified after adding it to a list. * * Adding an action list to an action list is not supported. */ -extern enum lttng_action_status lttng_action_list_add_action( - struct lttng_action *group, struct lttng_action *action); +LTTNG_EXPORT extern enum lttng_action_status lttng_action_list_add_action( + struct lttng_action *list, struct lttng_action *action); /* * Get the number of actions in an action list. */ -extern enum lttng_action_status lttng_action_list_get_count( - const struct lttng_action *group, unsigned int *count); +LTTNG_EXPORT extern enum lttng_action_status lttng_action_list_get_count( + const struct lttng_action *list, unsigned int *count); /* * Get an action from the action list at a given index. * - * Note that the group maintains the ownership of the returned action. + * Note that the list maintains the ownership of the returned action. * It must not be destroyed by the user, nor should it be held beyond * the lifetime of the action list. * * Returns an action, or NULL on error. */ -extern const struct lttng_action *lttng_action_list_get_at_index( - const struct lttng_action *group, +LTTNG_EXPORT extern const struct lttng_action *lttng_action_list_get_at_index( + const struct lttng_action *list, unsigned int index); #ifdef __cplusplus