]> code.citadel.org Git - citadel.git/blobdiff - citadel/modules/nntp/serv_nntp.h
Set up per-session NNTP state structure, alloc and free
[citadel.git] / citadel / modules / nntp / serv_nntp.h
index 0a734c428abd002f9cfb58b4b1ad476fccac68a6..e7aed6e1d3ae430f44263f1f2f9c3a69d19c182f 100644 (file)
@@ -1,16 +1,16 @@
-/*
- * 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.
- */
+//
+// 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
@@ -23,6 +23,23 @@ struct nntp_msglist {
 // data passed by the LIST commands to its helper function
 struct nntp_list_data {
        int list_format;
+       char *wildmat_pattern;
 };
 
 
+//
+// data passed between nntp_listgroup() and nntp_listgroup_backend()
+//
+struct listgroup_range {
+       long lo;
+       long hi;
+};
+
+
+
+typedef struct _citnntp {              // Information about the current session
+       int foo;                        // dummy thingo
+} citnntp;
+
+int wildmat(const char *text, const char *p);
+