From 6b4475312b058043257fba4526817f60d9e26baf Mon Sep 17 00:00:00 2001 From: Pierre Habouzit Date: Sun, 13 Jan 2008 14:48:05 +0100 Subject: [PATCH] organize module Signed-off-by: Pierre Habouzit --- lib-mx/pop-new.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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, -- 2.20.1