]> jfr.im git - irc/quakenet/newserv.git/blame - lua/luascheduler.h
Merge chanserv-live into default.
[irc/quakenet/newserv.git] / lua / luascheduler.h
CommitLineData
72054e5b
CP
1/* Copyright (C) Chris Porter 2007 */
2
3#ifndef _LUA_SCHED_H
4#define _LUA_SCHED_H
5
6#include "lua.h"
7#include "luabot.h"
8
9struct lua_scheduler;
10
11typedef struct lua_scheduler_entry {
12 int ref;
13 void *psch;
14 struct lua_scheduler *sched;
15 struct lua_scheduler_entry *prev, *next;
16} lua_scheduler_entry;
17
18typedef struct lua_scheduler {
19 unsigned int count;
20 lua_State *ps;
21 lua_scheduler_entry *entries;
22 struct lua_scheduler *next;
23} lua_scheduler;
24
25#endif
26