From: Pierre Habouzit Date: Sun, 13 Jan 2008 13:48:05 +0000 (+0100) Subject: organize module X-Git-Url: http://git.madism.org/?a=commitdiff_plain;h=6b4475312b058043257fba4526817f60d9e26baf;p=apps%2Fmadmutt.git organize module Signed-off-by: Pierre Habouzit --- diff --git a/lib-mx/pop-new.c b/lib-mx/pop-new.c index c5130a0..3936cbb 100644 --- a/lib-mx/pop-new.c +++ b/lib-mx/pop-new.c @@ -32,6 +32,10 @@ DO_REFCNT(pop_data_t, pop_data); DO_ARRAY_TYPE(pop_data_t, pop_data); DO_ARRAY_FUNCS(pop_data_t, pop_data, pop_data_delete); +/****************************************************************************/ +/* module */ +/****************************************************************************/ + static pop_data_array conns; static __init void pop_initialize(void) @@ -43,6 +47,10 @@ static __fini void pop_shutdown(void) pop_data_array_wipe(&conns); } +/****************************************************************************/ +/* pop3 machine */ +/****************************************************************************/ + static int pop_setup(job_t *w, void *cfg) { return 0; @@ -58,6 +66,10 @@ static machine_t const pop_machine = { .finalize = &pop_finalize, }; +/****************************************************************************/ +/* pop3 mx driver */ +/****************************************************************************/ + mx_t const pop_mx_ng = { M_POP, 0,