blob: 0b3baf1a7f02a5e62648039f1041b103e69da0df (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
// SPDX-FileCopyrightText: 2018 Tomasz Kramkowski <tomasz@kramkow.ski>
// SPDX-License-Identifier: CC0-1.0
#ifndef VULKAN_STRLIST_H
#define VULKAN_STRLIST_H
struct strlist {
const char **list;
int count;
};
void sl_append(struct strlist *sl, const char **strs, int nstrs);
static inline void sl_append1(struct strlist *sl, const char *str)
{
sl_append(sl, &str, 1);
}
void sl_free(struct strlist *sl);
#endif // VULKAN_STRLIST_H
|