summaryrefslogtreecommitdiff
path: root/src/til_setup.h
blob: 905dd6eaf8293bf1deb7bab11f69498acdd2ed6c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#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);
	const void	*creator;
};

void * til_setup_new(const til_settings_t *settings, size_t size, void (*free_func)(til_setup_t *setup), const void *creator);
void * til_setup_ref(til_setup_t *setup);
void * til_setup_free(til_setup_t *setup);

#endif
© All Rights Reserved