view src/itemlist.h @ 197:24d4cd032da5 noffle

[svn] * AUTHORS,INSTALL,NEWS,README,TODO,docs/NOTES,src/client.c,src/protocol.c, src/protocol.h,src/server.c: Merge with latest 1.0 branch. I do not intend to do any further merges from the 1.0 branch; future changes to 1.0 should be carried over by hand if necessary. * src/configfile.c,src/content.c,src/control.c,src/database.c, src/dynamicstring.c,src/fetch.c,src/filter.c,src/group.c, src/itemlist.c,src/lock.c,src/outgoing.c,src/over.c,src/post.c, src/pseudo.c,src/request.c,src/util.c: Minor includes rearrangement.
author bears
date Wed, 31 Oct 2001 11:44:53 +0000
parents 32ba1198c6fa
children
line wrap: on
line source

/*
  itemlist.h

  Copy a string wiht a list of separated items (as found in several
  header lines) and provide a convenient way of accessing the
  individual items.
  
  $Id: itemlist.h 51 2000-05-05 23:49:38Z uh1763 $ */

#ifndef ITEMLIST_H
#define ITEMLIST_H

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

#include <sys/types.h>

struct ItemList;
typedef struct ItemList ItemList;

/* Make a new item list. */
ItemList *
new_Itl( const char *list, const char *separators );

/* Delete an item list. */
void
del_Itl( ItemList *self );

/* Get first item. */
const char *
Itl_first( ItemList *self);

/* Get next item or NULL. */
const char *
Itl_next( ItemList *self );

/* Get count of items in list. */
size_t
Itl_count( const ItemList *self );

#endif