summaryrefslogtreecommitdiffstats
path: root/src/core.h
blob: 420ae311e048da22e49f7fdb5b2c3b7b8af45fdc (plain)
1
2
3
4
5
6
7
8
9
10
11
#ifndef _OG_CORE_H
#define _OG_CORE_H

extern int socket_rest, socket_agent_rest;
extern struct ev_loop *og_loop;
extern time_t start_time;

int og_socket_server_init(const char *addr, const char *port);
void og_server_accept_cb(struct ev_loop *loop, struct ev_io *io, int events);

#endif