comparison ui/listutil.h @ 7:992c0ec57660

Add unit tests make CertificateList work.
author Andre Heinecke <aheinecke@intevation.de>
date Wed, 12 Feb 2014 16:52:27 +0000
parents 9849250f50f2
children 58d51a91d448
comparison
equal deleted inserted replaced
6:1f6455d46b30 7:992c0ec57660
1 #ifndef LISTUTIL_H
2 #define LISTUTIL_H
3
4 #ifdef __cplusplus
5 extern "C" {
6 #endif
1 7
2 #include <stddef.h> 8 #include <stddef.h>
3 9
4 /** 10 /**
5 * @file listutil.h 11 * @file listutil.h
6 * @brief Functions to work with the certificate list. 12 * @brief Functions to work with the certificate list.
7 *
8 * This file definies the function
9 */ 13 */
10 14
11 /* Status of the List Operations */ 15 /**
16 * @brief Status of the List Operations
17 */
12 typedef enum { 18 typedef enum {
13 Unknown = 0, // Not yet parsed 19 Unknown = 0, // Not yet parsed
14 UnknownError = 1, // The expected unexpected 20 UnknownError = 1, // The expected unexpected
15 TooLarge = 2, // Failed because the file exeeds the limit 21 TooLarge = 2, // Failed because the file exeeds the limit
16 InvalidFormat = 3, // File does not appear to be in list format 22 InvalidFormat = 3, // File does not appear to be in list format
33 * @param[out] data Newly allocated pointer to the file content. 39 * @param[out] data Newly allocated pointer to the file content.
34 * @param[out] size Size in Bytes of the file content. 40 * @param[out] size Size in Bytes of the file content.
35 * 41 *
36 * @return status of the operation. 42 * @return status of the operation.
37 */ 43 */
38 list_status_t readAndVerifyList(char* fileName, void *data, size_t *size); 44 list_status_t readAndVerifyList(const char *fileName, char **data, size_t *size);
39 45 #ifdef __cplusplus
46 }
47 #endif
48 #endif

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