aboutsummaryrefslogtreecommitdiff
path: root/include/quickmedia/NodeSearch.h
blob: 0e3b3f1bf1759ae6d501e3710da277dbdce1fe18 (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
#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;
} 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