[BACK]Return to srm_list.h CVS log [TXT][DIR] Up to [Development] / failsafe / FailSafe / cluster_services / include

File: [Development] / failsafe / FailSafe / cluster_services / include / srm_list.h (download)

Revision 1.1, Thu Aug 31 19:16:32 2000 UTC (17 years, 1 month ago) by vasa
Branch: MAIN
CVS Tags: HEAD

Initial checkin

/*
 * Copyright (c) 2000 Silicon Graphics, Inc.  All Rights Reserved.
 * 
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of version 2 of the GNU General Public License as
 * published by the Free Software Foundation.
 * 
 * This program is distributed in the hope that it would be useful, but
 * WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 * 
 * Further, this software is distributed without any warranty that it is
 * free of the rightful claim of any third person regarding infringement
 * or the like.  Any license provided herein, whether implied or
 * otherwise, applies only to this software file.  Patent licenses, if
 * any, provided herein do not apply to combinations of this program with
 * other software, or any other product whatsoever.
 * 
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write the Free Software Foundation,
 * Inc., 59 Temple Place - Suite 330, Boston MA 02111-1307, USA.
 * 
 * Contact information: Silicon Graphics, Inc., 1600 Amphitheatre Pkwy,
 * Mountain View, CA 94043, or:
 * 
 * http://www.sgi.com 
 * 
 * For further information regarding this notice, see: 
 * 
 * http://oss.sgi.com/projects/GenInfo/NoticeExplan
 */
/*
 * srm_list.h
 *
 * List implementation used by SRM library and SRM daemon. These functions
 * are a wrapper around ci_nlist list implementation.
 */

#ifndef SRM_LIST_H
#define SRM_LIST_H
#ident "$Id: srm_list.h,v 1.1 2000/08/31 19:16:32 vasa Exp $"

#ifndef CI_NLIST_H
#include <ci_nlist.h>
#endif

typedef ci_nlist_entry_t	srm_list_entry_t;
typedef ci_nlist_t		srm_list_t;
typedef ci_cmp_result_t		srm_cmp_result_t;
typedef ci_sort_order_t		srm_sort_order_t;

#define srm_list_create(printfunc, destroyfunc)		\
	ci_nlist_create(printfunc, destroyfunc)
#define srm_list_unlink_elements(list) 			\
	ci_nlist_unlink_elements(list)
#define srm_list_unlink(list) 				\
	ci_nlist_unlink(list)
#define srm_list_destroy(list) 				\
	ci_nlist_destroy(list)
#define srm_list_destroy_elements(list) 		\
	ci_nlist_destroy_elements(list)
#define srm_list_add(list, data)			\
	ci_nlist_add(list, data)
#define srm_list_append(list, data) 			\
	ci_nlist_append(list, data)
#define srm_list_prepend(list, data) 			\
	ci_nlist_prepend(list, data)
#define srm_list_delete(list, data, func)	 	\
	ci_nlist_delete(list, data, func)
#define srm_list_first(list, handlep)			\
	ci_nlist_first(list, handlep)
#define srm_list_last(list) 				\
	ci_nlist_last(list)
#define srm_list_next(list, current) 			\
	ci_nlist_next(list, current)
#define srm_list_search(list, data, func) 		\
	ci_nlist_search(list, data, func)
#define srm_list_sort(list, func, order)		\
	ci_nlist_sort(list, func, order)
#define srm_list_search_extract(list, data, func) 	\
	ci_nlist_search_extract(list, data, func)
#define srm_list_extract_first(list) 			\
	ci_nlist_extract_first(list)
#define srm_list_extract_last(list) 			\
	ci_nlist_extract_last(list)
#define srm_list_extract(list) 				\
	ci_nlist_extract(list)
#define srm_list_isempty(list)				\
	ci_nlist_isempty(list)
#define srm_list_hasentries(list)			\
	ci_nlist_hasentries(list)
#define srm_list_count(list) 				\
	ci_nlist_count(list)
#define srm_list_position(list, data) 			\
	ci_nlist_position(list, data)
#define srm_list_print(list, level)			\
	ci_nlist_print(list, level)

#endif /* SRM_LIST_H */