1*1545Seschrock /* 2*1545Seschrock * CDDL HEADER START 3*1545Seschrock * 4*1545Seschrock * The contents of this file are subject to the terms of the 5*1545Seschrock * Common Development and Distribution License (the "License"). 6*1545Seschrock * You may not use this file except in compliance with the License. 7*1545Seschrock * 8*1545Seschrock * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9*1545Seschrock * or http://www.opensolaris.org/os/licensing. 10*1545Seschrock * See the License for the specific language governing permissions 11*1545Seschrock * and limitations under the License. 12*1545Seschrock * 13*1545Seschrock * When distributing Covered Code, include this CDDL HEADER in each 14*1545Seschrock * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15*1545Seschrock * If applicable, add the following below this CDDL HEADER, with the 16*1545Seschrock * fields enclosed by brackets "[]" replaced with your own identifying 17*1545Seschrock * information: Portions Copyright [yyyy] [name of copyright owner] 18*1545Seschrock * 19*1545Seschrock * CDDL HEADER END 20*1545Seschrock */ 21*1545Seschrock 22*1545Seschrock /* 23*1545Seschrock * Copyright 2006 Sun Microsystems, Inc. All rights reserved. 24*1545Seschrock * Use is subject to license terms. 25*1545Seschrock */ 26*1545Seschrock 27*1545Seschrock #ifndef _DIS_LIST_H 28*1545Seschrock #define _DIS_LIST_H 29*1545Seschrock 30*1545Seschrock #pragma ident "%Z%%M% %I% %E% SMI" 31*1545Seschrock 32*1545Seschrock #include <libuutil.h> 33*1545Seschrock 34*1545Seschrock /* #include "dis_target.h" */ 35*1545Seschrock 36*1545Seschrock #ifdef __cplusplus 37*1545Seschrock extern "C" { 38*1545Seschrock #endif 39*1545Seschrock 40*1545Seschrock typedef uu_list_t dis_namelist_t; 41*1545Seschrock typedef uu_list_t dis_scnlist_t; 42*1545Seschrock typedef uu_list_t dis_funclist_t; 43*1545Seschrock 44*1545Seschrock dis_namelist_t *dis_namelist_create(void); 45*1545Seschrock void dis_namelist_add(dis_namelist_t *, const char *, int); 46*1545Seschrock dis_funclist_t *dis_namelist_resolve_functions(dis_namelist_t *, dis_tgt_t *); 47*1545Seschrock dis_scnlist_t *dis_namelist_resolve_sections(dis_namelist_t *, dis_tgt_t *); 48*1545Seschrock void dis_scnlist_iter(dis_scnlist_t *, void (*)(dis_scn_t *, int, void *), 49*1545Seschrock void *); 50*1545Seschrock void dis_funclist_iter(dis_funclist_t *, void (*)(dis_func_t *, int, void *), 51*1545Seschrock void *); 52*1545Seschrock int dis_namelist_empty(dis_namelist_t *); 53*1545Seschrock void dis_scnlist_destroy(dis_scnlist_t *); 54*1545Seschrock void dis_funclist_destroy(dis_funclist_t *); 55*1545Seschrock void dis_namelist_destroy(dis_namelist_t *); 56*1545Seschrock 57*1545Seschrock #ifdef __cplusplus 58*1545Seschrock } 59*1545Seschrock #endif 60*1545Seschrock 61*1545Seschrock #endif /* _DIS_LIST_H */ 62