comparison cinst/nss-secitemlist.h @ 242:809eaca3898c

Added helper functions to handle lists of NSS SECItems.
author Sascha Wilde <wilde@intevation.de>
date Fri, 28 Mar 2014 18:37:59 +0100
parents
children 17e1c8f37d72
comparison
equal deleted inserted replaced
241:74d6e33c7d38 242:809eaca3898c
1 #ifndef NSS_SECITEMLIST_H
2 #define NSS_SECITEMLIST_H
3
4 /**
5 * @file
6 * @brief Functions to handle lists of NSS SECItem-s.
7 */
8
9 #include <seccomon.h>
10 #include "strhelp.h"
11
12 struct seciteml {
13 SECItem *item;
14 struct seciteml *next;
15 };
16
17 /**
18 * @brief Type for SECItem lists
19 */
20 typedef struct seciteml seciteml_t;
21
22 /**
23 * @brief Prepend a new SECItem to list
24 *
25 * The data will be copied.
26 * @param[inout] list pointer to the list to which the item will be added.
27 * @param[in] item the SECItem to add to the list.
28 */
29 void seciteml_push (seciteml_t **list, SECItem *item);
30
31 /**
32 * @brief Remove and return first SECItem from list
33 *
34 * @param[inout] list pointer to the list to which the item will be added.
35 * @retruns the removed item, or NULL if list is empty.
36 * The caller shoud free this item after use.
37 */
38 SECItem *seciteml_pop (seciteml_t **list);
39
40 #endif

http://wald.intevation.org/projects/trustbridge/