Home | History | Annotate | Download | only in microspdy

Lines Matching full:container

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