projects
/
citadel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Moved to new module init structure.
[citadel.git]
/
citadel
/
serv_imap.c
diff --git
a/citadel/serv_imap.c
b/citadel/serv_imap.c
index 9599d19ed16b450cc1f5d100bebaa2fb055a0147..be4132ea3cf4698ee7df433de28484e165872535 100644
(file)
--- a/
citadel/serv_imap.c
+++ b/
citadel/serv_imap.c
@@
-37,11
+37,9
@@
#include <limits.h>
#include "citadel.h"
#include "server.h"
#include <limits.h>
#include "citadel.h"
#include "server.h"
-#include "sysdep_decls.h"
#include "citserver.h"
#include "support.h"
#include "config.h"
#include "citserver.h"
#include "support.h"
#include "config.h"
-#include "serv_extensions.h"
#include "room_ops.h"
#include "user_ops.h"
#include "policy.h"
#include "room_ops.h"
#include "user_ops.h"
#include "policy.h"
@@
-63,6
+61,10
@@
#include "serv_crypto.h"
#endif
#include "serv_crypto.h"
#endif
+
+#include "ctdl_module.h"
+
+
/* imap_rename() uses this struct containing list of rooms to rename */
struct irl {
struct irl *next;
/* imap_rename() uses this struct containing list of rooms to rename */
struct irl {
struct irl *next;
@@
-1587,7
+1589,7
@@
void imap_command_loop(void)
/*
* This function is called to register the IMAP extension with Citadel.
*/
/*
* This function is called to register the IMAP extension with Citadel.
*/
-
char *serv_imap_init(void
)
+
CTDL_MODULE_INIT(imap
)
{
CtdlRegisterServiceHook(config.c_imap_port,
NULL, imap_greeting, imap_command_loop, NULL);
{
CtdlRegisterServiceHook(config.c_imap_port,
NULL, imap_greeting, imap_command_loop, NULL);