aboutsummaryrefslogtreecommitdiff
path: root/src/config.h
blob: 136c1c09ac4ae79d131653066d22c83a18bcb764 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#ifndef POW_CONFIG_H
#define POW_CONFIG_H

#include "repo.h"

#include "lua.h"
#include <stddef.h>

typedef struct pow_config {
  pow_repo **repos;
  size_t repos_count;

  lua_State *L_global;
  lua_State *L_cfg;

  int build_cfg_ref;
  int use_ref;
} pow_config;

int pow_open_config(lua_State *L, pow_config *cfg, char *path);
int pow_close_config(pow_config *cfg);

#endif