From: Art Cancro Date: Sat, 1 Feb 2014 00:03:29 +0000 (-0500) Subject: move nntp stuff to .h header file, bitches X-Git-Tag: v9.01~122^2~43 X-Git-Url: https://code.citadel.org/?p=citadel.git;a=commitdiff_plain;h=20762a39a345482cadea3745fc37de80f4c7a0b6 move nntp stuff to .h header file, bitches --- diff --git a/citadel/modules/nntp/serv_nntp.c b/citadel/modules/nntp/serv_nntp.c index c99b588d7..6f775f0f8 100644 --- a/citadel/modules/nntp/serv_nntp.c +++ b/citadel/modules/nntp/serv_nntp.c @@ -60,7 +60,7 @@ #include "locate_host.h" #include "citadel_dirs.h" #include "ctdl_module.h" - +#include "serv_nntp.h" extern long timezone; @@ -335,13 +335,6 @@ void nntp_authinfo(const char *cmd) { } -// FIXME move this to a header file -struct nntp_msglist { - int num_msgs; - long *msgnums; -}; - - /* * Utility function to fetch the current list of message numbers in a room */ @@ -485,11 +478,6 @@ void nntp_newgroups(const char *cmd) { } -struct nntp_list_data { - int list_format; -}; - - /* * Called once per room by nntp_list() to qualify and possibly output a single room */ diff --git a/citadel/modules/nntp/serv_nntp.h b/citadel/modules/nntp/serv_nntp.h new file mode 100644 index 000000000..0a734c428 --- /dev/null +++ b/citadel/modules/nntp/serv_nntp.h @@ -0,0 +1,28 @@ +/* + * Header file for NNTP server module + * + * Copyright (c) 2014 by the citadel.org team + * + * This program is open source software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 3. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */ + + +// data returned by a message list fetch +struct nntp_msglist { + int num_msgs; + long *msgnums; +}; + + +// data passed by the LIST commands to its helper function +struct nntp_list_data { + int list_format; +}; + +