summaryrefslogtreecommitdiff
path: root/lua/lua.h
blob: fc9a52d22ad304d2aef4bed59666d3e21dfd4613 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#include "nest/bird.h"

#include <lua.h>

struct lua_filter_chunk {
  size_t size;
  void *chunk;
  struct lua_filter_chunk *next;
};

typedef struct lua_bird_state {
  int exception;
} lua_bird_state;

lua_bird_state *luaB_init(lua_State *L, struct linpool *lp);
void luaB_push_route(lua_State *L, rte *e);
void luaB_push_eattrs(lua_State *L, struct ea_list *ea);