move nntp stuff to .h header file, bitches
authorArt Cancro <ajc@uncensored.citadel.org>
Sat, 1 Feb 2014 00:03:29 +0000 (19:03 -0500)
committerArt Cancro <ajc@uncensored.citadel.org>
Sat, 1 Feb 2014 00:03:29 +0000 (19:03 -0500)
citadel/modules/nntp/serv_nntp.c
citadel/modules/nntp/serv_nntp.h [new file with mode: 0644]

index c99b588d7e45a1d303704c9f88ccdba3e282468f..6f775f0f8437201fe537c2cf3b550b359dadb187 100644 (file)
@@ -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 (file)
index 0000000..0a734c4
--- /dev/null
@@ -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;
+};
+
+