79 void (*deallocate)(struct cx_list_s *list); |
79 void (*deallocate)(struct cx_list_s *list); |
80 |
80 |
81 /** |
81 /** |
82 * Member function for inserting a single element. |
82 * Member function for inserting a single element. |
83 * The data pointer may be @c NULL in which case the function shall only allocate memory. |
83 * The data pointer may be @c NULL in which case the function shall only allocate memory. |
84 * Returns a pointer to the data of the inserted element. |
84 * Returns a pointer to the allocated memory or @c NULL if allocation fails. |
85 */ |
85 */ |
86 void *(*insert_element)( |
86 void *(*insert_element)( |
87 struct cx_list_s *list, |
87 struct cx_list_s *list, |
88 size_t index, |
88 size_t index, |
89 const void *data |
89 const void *data |