Lines Matching defs:list
88 sdp_free_list(sdp_list_t *list)
92 while (list != NULL) {
93 next_list = list->next;
94 if (list->value != NULL)
95 free(list->value);
96 free(list);
97 list = next_list;
238 * Adds text of a given length to a linked list. If the list is NULL to
239 * start with it builds the new list
242 add_value_to_list(sdp_list_t **list, const char *value, int len, boolean_t text)
268 if (*list == NULL) {
269 *list = new;
271 tmp = *list;
280 * Given a linked list converts it to space separated string.
283 sdp_list_to_str(sdp_list_t *list, char **buf, boolean_t text)
291 if (list == NULL) {
295 tmp = list;
296 while (list != NULL) {
298 size += strlen((char *)list->value);
301 *(uint64_t *)list->value);
303 list = list->next;
305 list = tmp;
311 while (list != NULL) {
314 (char *)list->value);
317 *(uint64_t *)list->value);
321 list = list->next;
330 * Given a space separated string, converts it into linked list. SDP field
332 * respectively. We need to capture it in a linked list.
335 sdp_str_to_list(sdp_list_t **list, const char *buf, int len, boolean_t text)
358 if ((ret = add_value_to_list(list, begin,
360 sdp_free_list(*list);
361 *list = NULL;