1 /* $Id: set.h,v 1.4 2002-08-02 19:26:55 adam Exp $
2 Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002
5 This file is part of the Zebra server.
7 Zebra is free software; you can redistribute it and/or modify it under
8 the terms of the GNU General Public License as published by the Free
9 Software Foundation; either version 2, or (at your option) any later
12 Zebra is distributed in the hope that it will be useful, but WITHOUT ANY
13 WARRANTY; without even the implied warranty of MERCHANTABILITY or
14 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
17 You should have received a copy of the GNU General Public License
18 along with Zebra; see the file LICENSE.zebra. If not, write to the
19 Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA
31 typedef struct SetElement_ {
32 struct SetElement_ *next;
43 SetType mk_SetType (int chunk);
44 int inf_SetType (SetType st, long *used, long *allocated);
45 SetType rm_SetType (SetType st);
46 Set mk_Set (SetType st);
47 Set add_Set (SetType st, Set s, int value);
48 Set merge_Set (SetType st, Set s1, Set s2);
49 Set union_Set (SetType st, Set s1, Set s2);
50 Set rm_Set (SetType st, Set s);
51 Set cp_Set (SetType st, Set s);
52 void pr_Set (SetType st, Set s);
53 unsigned hash_Set (SetType st, Set s);
54 int eq_Set (SetType s, Set s1, Set s2);