view src/fetchlist.h @ 225:9fb4b7d7e64b noffle

[svn] * docs/Makefile.in: Add testing.txt to documents. * NEWS: Updates for 1.1.1 release. * configure.in: Change version to 1.1.1. Additional decoration to the version is slowing down my release and RPM building. All Makefile.in have been regenerated as has configure. * packages/redhat/noffle.spec: Change version to 1.1.1. * packages/.cvsignore,packages/Makefile.am,packages/redhat/.cvsignore, packages/redhat/Makefile.am: Add sufficient makefiles for noffle.spec and noffle-expire to the included in the tarball generated by 'make dist'.
author bears
date Sun, 09 Dec 2001 15:07:14 +0000
parents adf0af5152f7
children f8a91e2b4060
line wrap: on
line source

/*
  fetchlist.h

  List of groups that are to be fetched presently.

  $Id: fetchlist.h 67 2000-05-12 17:19:38Z enz $
*/

#ifndef FETCHLIST_H
#define FETCHLIST_H

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

#include "common.h"

typedef enum { FULL, THREAD, OVER } FetchMode;

void
Fetchlist_read( void );

/* Invalidates any indices (list is sorted by name before saving) */
Bool
Fetchlist_write( void );

int
Fetchlist_size( void );

Bool
Fetchlist_contains( const char *name );

/* Get element number index. */
Bool
Fetchlist_element( const char **name, FetchMode *mode, int idx );

/* Add entry. Invalidates any indices. Returns TRUE if new entry, FALSE if
   entry was overwritten. */
Bool
Fetchlist_add( const char *name, FetchMode mode );

/* Remove entry. Invalidates any indices. Returns FALSE if not found. */
Bool
Fetchlist_remove( const char *name );

#endif