- /* HashList *BLOG = (HashList *) *ViewSpecific; */
-
- /*
- * No code needed here -- we render during disposition.
- * Maybe this is the location where we want to handle pretty permalinks.
- */
+ HashList *BLOG = (HashList *) *ViewSpecific;
+ HashPos *it;
+ const char *Key;
+ void *Data;
+ long len;
+ struct blogpost *bp;
+
+ it = GetNewHashPos(BLOG, 0);
+ while (GetNextHashPos(BLOG, it, &len, &Key, &Data)) {
+ bp = (struct blogpost *) Data;
+ wc_printf("Top level ID is %d\n", bp->top_level_id);
+ if (bp->num_msgs > 0) {
+ wc_printf("; top level msgnum is %ld", bp->msgs[0]);
+ }
+ wc_printf("<br>\n");
+ }