blob: 06ed4ea8074b939ba0881e19335d7ec3f0d5249b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
#ifndef _TIL_SETUP_H
#define _TIL_SETUP_H
#include <stdint.h>
typedef struct til_settings_t til_settings_t;
typedef struct til_setup_t til_setup_t;
struct til_setup_t {
const char *path;
uint32_t path_hash;
unsigned refcount;
void (*free)(til_setup_t *setup);
};
void * til_setup_new(const til_settings_t *settings, size_t size, void (*free_func)(til_setup_t *setup));
void * til_setup_ref(til_setup_t *setup);
void * til_setup_free(til_setup_t *setup);
#endif
|