]> code.citadel.org Git - citadel.git/blobdiff - webcit/webcit.h
Moved the struct declarations from blogview_renderer.c into webcit.h
[citadel.git] / webcit / webcit.h
index 587defc9b56c1ae8f921beebaa1127da9495e87f..09df2c34f60a1893e2c462cd8b7693845ddfec50 100644 (file)
@@ -882,3 +882,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);