Tizen RT Libs&Environment  v1.0 D5
http_keyvalue_list.h
Go to the documentation of this file.
1 /****************************************************************************
2  *
3  * Copyright 2016 Samsung Electronics All Rights Reserved.
4  *
5  * Licensed under the Apache License, Version 2.0 (the "License");
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at
8  *
9  * http://www.apache.org/licenses/LICENSE-2.0
10  *
11  * Unless required by applicable law or agreed to in writing,
12  * software distributed under the License is distributed on an
13  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
14  * either express or implied. See the License for the specific
15  * language governing permissions and limitations under the License.
16  *
17  ****************************************************************************/
28 #ifndef __http_keyvalue_list_h__
29 #define __http_keyvalue_list_h__
30 
31 /****************************************************************************
32  * Included Files
33  ****************************************************************************/
34 
35 #include <stdio.h>
36 #include <apps/netutils/webserver/http_server.h>
37 
38 /*****************************************************************************
39  * Public Types
40  ****************************************************************************/
41 
48 
51 };
52 
59 };
60 
61 /****************************************************************************
62  * Public Function Prototypes
63  ****************************************************************************/
64 
74 
84 
95 int http_keyvalue_list_add(struct http_keyvalue_list_t *list, const char *key, const char *value);
96 
107 
117 char *http_keyvalue_list_find(struct http_keyvalue_list_t *list, const char *key);
118 
119 #endif
120 
struct http_keyvalue_t * head
int http_keyvalue_list_add(struct http_keyvalue_list_t *list, const char *key, const char *value)
http_keyvalue_list_add() adds keyvalue to list.
int http_keyvalue_list_release(struct http_keyvalue_list_t *list)
http_keyvalue_list_release() frees list.
#define HTTP_CONF_MAX_KEY_LENGTH
Definition: http_server.h:97
char value[HTTP_CONF_MAX_VALUE_LENGTH]
int http_keyvalue_list_init(struct http_keyvalue_list_t *list)
http_keyvalue_list_init() allocates list&#39;s head and tail.
struct http_keyvalue_t * tail
struct http_keyvalue_t * next
#define HTTP_CONF_MAX_VALUE_LENGTH
Definition: http_server.h:98
char * http_keyvalue_list_find(struct http_keyvalue_list_t *list, const char *key)
http_keyvalue_list_find() finds a value with a specific key.
Standard Input / Output APIs.
int http_keyvalue_list_delete_tail(struct http_keyvalue_list_t *list)
http_keyvalue_list_delete_tail() deletes keyvalue to list where in list&#39;s tail.
char key[HTTP_CONF_MAX_KEY_LENGTH]
struct http_keyvalue_t * prev
HTTP keyvalue linked list structure.
HTTP keyvalue structure.