blob: e6405143db7b2bbf33604fc56e6d5bd83d72137c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
#ifndef INDEX_H
#define INDEX_H
#include <stdint.h>
typedef struct index index_t;
struct index {
uint8_t type;
union {
char *name;
uint64_t num;
};
index_t *next;
};
extern int is_valid_index(index_t *idx);
extern char *make_index_path(const char *root, index_t *idx, int path_type);
extern char *index_to_str(index_t *idx);
extern int index_path_exists(index_t *idx, const char *root, char **path);
#endif
|