Moved the struct declarations from blogview_renderer.c into webcit.h
authorArt Cancro <ajc@uncensored.citadel.org>
Tue, 31 May 2011 17:58:56 +0000 (13:58 -0400)
committerWilfried Goesgens <dothebart@citadel.org>
Sun, 4 Sep 2011 20:55:56 +0000 (20:55 +0000)
webcit/blogview_renderer.c
webcit/webcit.h

index 438e3d49eeac94569cce3ed390c6ed3f64de2955..1320c5497a92b95555e96da34fba958fb4fd2858 100644 (file)
 #include "groupdav.h"
 
 
-/* 
- * Array type for a blog post.  The first message is the post; the rest are comments
- */
-struct blogpost {
-       int top_level_id;
-       long *msgs;             /* Array of msgnums for messages we are displaying */
-       int num_msgs;           /* Number of msgnums stored in 'msgs' */
-       int alloc_msgs;         /* Currently allocated size of array */
-};
-
-
 /*
  * Generate a permalink for a post
  * (Call with NULL arguments to make this function wcprintf() the permalink
@@ -112,15 +101,6 @@ void blogpost_render_and_destroy(struct blogpost *bp) {
 }
 
 
-/*
- * Data which gets returned from a call to blogview_learn_thread_references()
- */
-struct bltr {
-       int id;
-       int refs;
-};
-
-
 /*
  * Entry point for message read operations.
  */
@@ -146,8 +126,8 @@ int blogview_GetParamsGetServerCall(SharedMessageStatus *Stat,
 
 
 /*
- * Given a 'struct blogpost' containing a msgnum, populate the id
- * and refs fields by fetching them from the Citadel server
+ * Given a msgnum, populate the id and refs fields of
+ * a "struct bltr" by fetching them from the Citadel server
  */
 struct bltr blogview_learn_thread_references(long msgnum)
 {
index 61644a0a2077e939c80df825c5d15f58e279f818..022ed2d83f145adbfb3d1bb183e87f799428cfaa 100644 (file)
@@ -886,3 +886,25 @@ void http_datestring(char *buf, size_t n, time_t xtime);
 #define WC_TIMEFORMAT_24 2
 
 extern int time_to_die;                        /* Nonzero if server is shutting down */
+
+/* 
+ * Array type for a blog post.  The first message is the post; the rest are comments
+ */
+struct blogpost {
+       int top_level_id;
+       long *msgs;             /* Array of msgnums for messages we are displaying */
+       int num_msgs;           /* Number of msgnums stored in 'msgs' */
+       int alloc_msgs;         /* Currently allocated size of array */
+};
+
+
+/*
+ * Data which gets returned from a call to blogview_learn_thread_references()
+ */
+struct bltr {
+       int id;
+       int refs;
+};
+
+
+struct bltr blogview_learn_thread_references(long msgnum);