home *** CD-ROM | disk | FTP | other *** search
/ Unix System Administration Handbook 1997 October / usah_oct97.iso / news / cnews.tar / include / newsoverview.h < prev    next >
C/C++ Source or Header  |  1992-12-17  |  896b  |  32 lines

  1. /* newsreader interface to news overview data */
  2. struct novgroup {
  3.     char *g_dir;
  4.     FILE *g_stream;
  5.     struct novart *g_first;
  6.     struct novart *g_curr;
  7.     HASHTABLE *g_msgids;
  8.     HASHTABLE *g_roots;
  9. };
  10. struct novart {
  11.     char *a_num;
  12.     char *a_subj;
  13.     char *a_from;
  14.     char *a_date;
  15.     char *a_msgid;
  16.     char *a_refs;
  17.     char *a_bytes;
  18.     char *a_lines;        /* a waste of bits */
  19.     char *a_others;
  20.     /* these members are message-ids, filled in by novthread() */
  21.     char *a_parent;
  22.     char *a_child1;        /* first child of a chain */
  23.     char *a_sibling;    /* next sibling in this chain */
  24.     /* end message-ids */
  25.     struct novart *a_nxtnum;    /* next in numeric order */
  26. };
  27.  
  28. struct novgroup *novopen(), *novstream();    /* open a new group */
  29. struct novart *novall(), *novnext(); /* return overview data for a group */
  30. /* novthread(ngroup);        built threads linkage; see g_roots */
  31. /* novclose(ngroup);        frees resources associated with ngroup */
  32.