view src/over.h @ 54:125d79c9e586 noffle

[svn] * src/client.c, src/configfile.c, src/content.c, src/control.c, src/database.c, src/dynamicstring.c, src/fetch.c, src/fetchlist.c, src/group.c, src/itemlist.c, src/lock.c, src/log.c, src/noffle.c, src/online.c, src/outgoing.c, src/over.c, src/post.c, src/protocol.c, src/pseudo.c, src/request.c, src/server.c, src/util.c: Added portable.h #include. * src/client.h, src/database.h, src/fetch.c, src/group.h, src/lock.c, src/outgoing.c, src/over.c, src/over.h, src/pseudo.c, src/server.c, src/util.c, src/util.h: Added some #ifdefs to correctly include either time.h or sys/time.h or both, depending on which are found. * src/noffle.c: Changed the return-type of the signal-handlers bugReport() and logSignal() to RETSIGTYPE, which is either void or int, depending on the system you compile on (autoconf #defines the RETSIGTYPE).
author uh1763
date Tue, 09 May 2000 23:28:38 +0100
parents 32ba1198c6fa
children c874bd3c4bb8
line wrap: on
line source

/*
  over.h

  Processing of single article overviews. Handling of overview files is in
  content.c. An article overview contains important article properties,
  such as date, from, subject.

  $Id: over.h 60 2000-05-09 22:28:38Z uh1763 $ 
*/

#ifndef OVER_H
#define OVER_H

#if HAVE_CONFIG_H
#include <config.h>
#endif

#if TIME_WITH_SYS_TIME
#include <sys/time.h>
#include <time.h>
#else
#if HAVE_SYS_TIME_H
#include <sys/time.h>
#else
#include <time.h>
#endif
#endif

#include "common.h"

struct Over;
typedef struct Over Over;

/*
  Usual fields from overview databases.
  Xref without hostname.
*/
Over *
new_Over( const char *subj, const char *from, const char *date,
          const char *msgId, char *ref, size_t bytes, size_t lines );


/* free memory */
void
del_Over( Over *self );

/* read Over-struct from line */
Over *
Ov_read( char *line );

/* write struct Over to f as a line */
Bool
Ov_write( const Over *self, FILE *f );

/* Access particular fields in struct over */

int
Ov_numb( const Over *self );

const char *
Ov_subj( const Over *self );

const char *
Ov_from( const Over *self );

const char *
Ov_date( const Over *self );

const char *
Ov_msgId( const Over *self );

const char *
Ov_ref( const Over *self );

size_t
Ov_bytes( const Over *self );

size_t
Ov_lines( const Over *self );

void
Ov_setNumb( Over *self, int numb );

#endif