1*2264Sjacobs /* 2*2264Sjacobs * CDDL HEADER START 3*2264Sjacobs * 4*2264Sjacobs * The contents of this file are subject to the terms of the 5*2264Sjacobs * Common Development and Distribution License (the "License"). 6*2264Sjacobs * You may not use this file except in compliance with the License. 7*2264Sjacobs * 8*2264Sjacobs * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9*2264Sjacobs * or http://www.opensolaris.org/os/licensing. 10*2264Sjacobs * See the License for the specific language governing permissions 11*2264Sjacobs * and limitations under the License. 12*2264Sjacobs * 13*2264Sjacobs * When distributing Covered Code, include this CDDL HEADER in each 14*2264Sjacobs * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15*2264Sjacobs * If applicable, add the following below this CDDL HEADER, with the 16*2264Sjacobs * fields enclosed by brackets "[]" replaced with your own identifying 17*2264Sjacobs * information: Portions Copyright [yyyy] [name of copyright owner] 18*2264Sjacobs * 19*2264Sjacobs * CDDL HEADER END 20*2264Sjacobs */ 21*2264Sjacobs /* 22*2264Sjacobs * Copyright 2006 Sun Microsystems, Inc. All rights reserved. 23*2264Sjacobs * Use is subject to license terms. 24*2264Sjacobs */ 25*2264Sjacobs 26*2264Sjacobs #ifndef _LIST_H 27*2264Sjacobs #define _LIST_H 28*2264Sjacobs 29*2264Sjacobs #pragma ident "%Z%%M% %I% %E% SMI" 30*2264Sjacobs 31*2264Sjacobs #include <sys/va_list.h> 32*2264Sjacobs 33*2264Sjacobs #ifdef __cplusplus 34*2264Sjacobs extern "C" { 35*2264Sjacobs #endif 36*2264Sjacobs 37*2264Sjacobs #define VFUNC_T int (*)(void *, __va_list) /* for casting */ 38*2264Sjacobs #define COMP_T int (*)(void *, void *) /* for casting */ 39*2264Sjacobs 40*2264Sjacobs extern void **list_append(void **, void *); 41*2264Sjacobs extern void **list_append_unique(void **, void *, int (*)(void *, void*)); 42*2264Sjacobs extern void **list_concatenate(void **, void **); 43*2264Sjacobs extern void * list_locate(void **, int (*)(void *, void *), void *); 44*2264Sjacobs extern int list_iterate(void **, int (*)(void *, __va_list), ...); 45*2264Sjacobs 46*2264Sjacobs #ifdef __cplusplus 47*2264Sjacobs } 48*2264Sjacobs #endif 49*2264Sjacobs 50*2264Sjacobs #endif /* _LIST_H */ 51