/* Copyright (C) 2000,2001,2002 Manuel Amador (Rudd-O)
   This file is part of Directory administrator.

   Directory administrator is free software; you can redistribute it 
   and/or modify it under the terms of the GNU General Public License
   as published by the Free Software Foundation; either version 2.1 of
   the License, or (at your option) any later version.

   Directory administrator is distributed in the hope that it will be 
   useful, but WITHOUT ANY WARRANTY; without even the implied warranty
   of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   GNU General Public License for more details.

   You should have received a copy of the GNU General Public License along
   with Directory administrator; if not, send e-mail to amador@alomega.com 
*/


#ifndef __pairs_list
#define __pairs_list 1

#include <glib.h>
#include <string.h>

typedef struct _pair
{
  gchar *attribute;
  gchar *value;
}
pair;

typedef GList pairs_list;

pairs_list *pairs_list_append (pairs_list * list, gchar * uno, gchar * dos);

gchar *pairs_list_get_attribute (pairs_list * list, gchar * attribute);

pairs_list *pairs_list_set_attribute (pairs_list * list, gchar * attribute,
				      gchar * value);

pairs_list *pairs_list_remove_attribute (pairs_list * list,
					 gchar * attribute);

void pairs_list_destroy (pairs_list * list);

pairs_list *pairs_list_duplicate (pairs_list * list);

#endif


syntax highlighted by Code2HTML, v. 0.9.1