blob: 5f50488d06c7a20ad81e66885ec977fe007a760b (
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
#ifndef QUICKMEDIA_NODE_SEARCH_H
#define QUICKMEDIA_NODE_SEARCH_H
#include <stddef.h>
#ifdef __cplusplus
extern "C" {
#endif
typedef struct {
const char *data;
size_t size;
} QuickMediaStringView;
typedef struct {
QuickMediaStringView name;
QuickMediaStringView value;
int defined;
int value_is_glob;
int index; /* -1 if no indexing */
} QuickMediaNodeSearchParam;
typedef struct QuickMediaNodeSearch QuickMediaNodeSearch;
struct QuickMediaNodeSearch {
QuickMediaStringView name; /* optional */
int recursive;
QuickMediaNodeSearchParam param; /* optional */
QuickMediaNodeSearch *child; /* optional */
};
void quickmedia_node_search_param_init(QuickMediaNodeSearchParam *self);
void quickmedia_node_search_init(QuickMediaNodeSearch *self);
void quickmedia_node_search_deinit(QuickMediaNodeSearch *self);
#ifdef __cplusplus
}
#endif
#endif
|