aboutsummaryrefslogtreecommitdiff
path: root/include/quickmedia/NodeSearch.h
blob: adaac445ca1300327ac5b7990813ec23ea42c644 (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
#ifndef QUICKMEDIA_NODE_SEARCH_H
#define QUICKMEDIA_NODE_SEARCH_H

#ifdef __cplusplus
extern "C" {
#endif

typedef struct {
    char *name;
    char *value;
    int defined;
} QuickMediaNodeSearchParam;

typedef struct QuickMediaNodeSearch QuickMediaNodeSearch;

struct QuickMediaNodeSearch {
    char *name; /* optional */
    int recursive;
    QuickMediaNodeSearchParam param; /* optional */
    QuickMediaNodeSearch *child; /* optional */
};

typedef struct {
    const char *data;
    unsigned long long size;
} QuickMediaStringView;

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