Lines Matching refs:container
35 SPDYF_name_value_is_empty(struct SPDY_NameValue *container) in SPDYF_name_value_is_empty() argument
37 SPDYF_ASSERT(NULL != container, "NULL is not an empty container!"); in SPDYF_name_value_is_empty()
38 return (NULL == container->name && NULL == container->value) ? SPDY_YES : SPDY_NO; in SPDYF_name_value_is_empty()
56 SPDY_name_value_add (struct SPDY_NameValue *container, in SPDY_name_value_add() argument
67 if(NULL == container || NULL == name || NULL == value || 0 == (len = strlen(name))) in SPDY_name_value_add()
78 if(SPDYF_name_value_is_empty(container)) in SPDY_name_value_add()
81 if (NULL == (container->name = strdup (name))) in SPDY_name_value_add()
85 if (NULL == (container->value = malloc(sizeof(char *)))) in SPDY_name_value_add()
87 free(container->name); in SPDY_name_value_add()
92 else */if (NULL == (container->value[0] = strdup (value))) in SPDY_name_value_add()
94 free(container->value); in SPDY_name_value_add()
95 free(container->name); in SPDY_name_value_add()
98 container->num_values = 1; in SPDY_name_value_add()
102 pair = container; in SPDY_name_value_add()
143 temp = container; in SPDY_name_value_add()
190 SPDY_name_value_lookup (struct SPDY_NameValue *container, in SPDY_name_value_lookup() argument
194 struct SPDY_NameValue *temp = container; in SPDY_name_value_lookup()
196 if(NULL == container || NULL == name || NULL == num_values) in SPDY_name_value_lookup()
198 if(SPDYF_name_value_is_empty(container)) in SPDY_name_value_lookup()
218 SPDY_name_value_destroy (struct SPDY_NameValue *container) in SPDY_name_value_destroy() argument
221 struct SPDY_NameValue *temp = container; in SPDY_name_value_destroy()
225 container = container->next; in SPDY_name_value_destroy()
231 temp=container; in SPDY_name_value_destroy()
237 SPDY_name_value_iterate (struct SPDY_NameValue *container, in SPDY_name_value_iterate() argument
243 struct SPDY_NameValue *temp = container; in SPDY_name_value_iterate()
245 if(NULL == container) in SPDY_name_value_iterate()
249 if(SPDYF_name_value_is_empty(container)) in SPDY_name_value_iterate()
457 SPDYF_name_value_to_stream(struct SPDY_NameValue * container[], in SPDYF_name_value_to_stream() argument
476 iterator = container[j]; in SPDYF_name_value_to_stream()
511 iterator = container[j]; in SPDYF_name_value_to_stream()
556 struct SPDY_NameValue ** container) in SPDYF_name_value_from_stream() argument
567 if(NULL == (*container = SPDY_name_value_create ())) in SPDYF_name_value_from_stream()
588 SPDY_name_value_destroy(*container); in SPDYF_name_value_from_stream()
604 SPDY_name_value_destroy(*container); in SPDYF_name_value_from_stream()
612 if(SPDY_YES != SPDY_name_value_add(*container, name, value)) in SPDYF_name_value_from_stream()
616 SPDY_name_value_destroy(*container); in SPDYF_name_value_from_stream()
627 SPDY_name_value_destroy(*container); in SPDYF_name_value_from_stream()
636 SPDY_name_value_destroy(*container); in SPDYF_name_value_from_stream()