X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fcommon%2Fdynamic-array.h;h=483db363122ebbc5a6339cd5ec144a2181922066;hp=e97b51d5d0d1d0ff5eebf9e7cddd1fedfa9112f2;hb=14c4262b940630bbb75f68b8c2eaef2b134a62d9;hpb=93bed9fe8f48c11b7bb1224db36d82404cea080d diff --git a/src/common/dynamic-array.h b/src/common/dynamic-array.h index e97b51d5d..483db3631 100644 --- a/src/common/dynamic-array.h +++ b/src/common/dynamic-array.h @@ -117,8 +117,7 @@ size_t lttng_dynamic_pointer_array_get_count( } /* - * Returns a pointer to the element. Mutating operations on the array invalidate - * the returned pointer. + * Returns the pointer at index `index`. */ static inline void *lttng_dynamic_pointer_array_get_pointer( @@ -146,12 +145,9 @@ int lttng_dynamic_pointer_array_add_pointer( * count is decreased by one and the following pointers are shifted to * take the place of the removed pointer (if applicable). */ -static inline +LTTNG_HIDDEN int lttng_dynamic_pointer_array_remove_pointer( - struct lttng_dynamic_pointer_array *array, size_t index) -{ - return lttng_dynamic_array_remove_element(&array->array, index); -} + struct lttng_dynamic_pointer_array *array, size_t index); /* Release any memory used by the dynamic array. */ LTTNG_HIDDEN