aboutsummaryrefslogtreecommitdiff
path: root/src/config.h
blob: 8bbee8bc3e411e0d1c6a13909d186d119100bab7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#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;
} pow_config;

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

#endif