dis_target.h revision dc0093f44ee4fac928e006850f8ed53f68277af5
/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
* You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
* Copyright 2006 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#ifndef _DIS_TARGET_H
#define _DIS_TARGET_H
#pragma ident "%Z%%M% %I% %E% SMI"
#ifdef __cplusplus
extern "C" {
#endif
#include <gelf.h>
/*
* Basic types
*/
typedef struct dis_func dis_func_t;
/*
* Target management
*/
dis_tgt_t *dis_tgt_create(const char *);
void dis_tgt_destroy(dis_tgt_t *);
int *);
const char *dis_tgt_name(dis_tgt_t *);
const char *dis_tgt_member(dis_tgt_t *);
/*
* Section management
*/
int dis_section_istext(dis_scn_t *);
void *dis_section_data(dis_scn_t *);
const char *dis_section_name(dis_scn_t *);
void dis_section_free(dis_scn_t *);
/*
* Function management
*/
void *dis_function_data(dis_func_t *);
const char *dis_function_name(dis_func_t *);
void dis_function_free(dis_func_t *);
#ifdef __cplusplus
}
#endif
#endif /* _DIS_TARGET_H */