blob: 0009a27a60cce4cbc6eaeee317481ff7276389ac (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
#ifndef YARP_STRING_LIST_H
#define YARP_STRING_LIST_H
#include "yarp/defines.h"
#include "yarp/util/yp_string.h"
#include <stddef.h>
#include <stdlib.h>
typedef struct {
yp_string_t *strings;
size_t length;
size_t capacity;
} yp_string_list_t;
// Initialize a yp_string_list_t with its default values.
YP_EXPORTED_FUNCTION void yp_string_list_init(yp_string_list_t *string_list);
// Append a yp_string_t to the given string list.
void yp_string_list_append(yp_string_list_t *string_list, yp_string_t *string);
// Free the memory associated with the string list.
YP_EXPORTED_FUNCTION void yp_string_list_free(yp_string_list_t *string_list);
#endif
|