modules/gameserv/main.c
raw| 1 | /* |
| 2 | * Copyright (c) 2005 Atheme Development Group |
| 3 | * Rights to this code are documented in doc/LICENSE. |
| 4 | * |
| 5 | * This file contains the main() routine. |
| 6 | * |
| 7 | */ |
| 8 | |
| 9 | #include "atheme.h" |
| 10 | |
| 11 | DECLARE_MODULE_V1 |
| 12 | ( |
| 13 | "gameserv/main", false, _modinit, _moddeinit, |
| 14 | PACKAGE_STRING, |
| 15 | VENDOR_STRING |
| 16 | ); |
| 17 | |
| 18 | service_t *gs; |
| 19 | |
| 20 | void _modinit(module_t *m) |
| 21 | { |
| 22 | gs = service_add("gameserv", NULL); |
| 23 | } |
| 24 | |
| 25 | void _moddeinit(module_unload_intent_t intent) |
| 26 | { |
| 27 | if (gs != NULL) |
| 28 | service_delete(gs); |
| 29 | } |
| 30 | |
| 31 | /* vim:cinoptions=>s,e0,n0,f0,{0,}0,^0,=s,ps,t0,c3,+s,(2s,us,)20,*30,gs,hs |
| 32 | * vim:ts=8 |
| 33 | * vim:sw=8 |
| 34 | * vim:noexpandtab |
| 35 | */ |