Debian Codegraph @

modules/operserv/main.c

raw
1 /*
2 * Copyright (c) 2005-2006 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 "operserv/main", false, _modinit, _moddeinit,
14 PACKAGE_STRING,
15 VENDOR_STRING
16 );
17
18 service_t *opersvs = NULL;
19
20 void _modinit(module_t *m)
21 {
22 opersvs = service_add("operserv", NULL);
23 }
24
25 void _moddeinit(module_unload_intent_t intent)
26 {
27 if (opersvs != NULL)
28 service_delete(opersvs);
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 */