/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License, Version 1.0 only
* (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 2004 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
/*
* Copyright (c) 2012 by Delphix. All rights reserved.
* Copyright (c) 2012 Joyent, Inc. All rights reserved.
*/
#ifndef _MDB_MODULE_H
#define _MDB_MODULE_H
#include <mdb/mdb_argvec.h>
#include <mdb/mdb_modapi.h>
#include <mdb/mdb_target.h>
#include <mdb/mdb_disasm.h>
#include <libctf.h>
#ifdef __cplusplus
extern "C" {
#endif
#ifdef _MDB
struct mdb_callb;
typedef struct mdb_module {
} mdb_module_t;
typedef struct mdb_idcmd {
} mdb_idcmd_t;
typedef struct mdb_iwalker {
extern int mdb_module_load(const char *, int);
extern mdb_module_t *mdb_module_load_builtin(const char *);
extern void mdb_module_load_all(int);
extern int mdb_module_unload(const char *, int);
extern void mdb_module_unload_all(int);
extern int mdb_module_unload_common(const char *);
extern int mdb_module_remove_dcmd(mdb_module_t *, const char *);
extern int mdb_module_remove_walker(mdb_module_t *, const char *);
extern int mdb_module_create(const char *, const char *, int, mdb_module_t **);
extern int mdb_module_validate_name(const char *, const char **);
#endif /* _MDB */
#ifdef __cplusplus
}
#endif
#endif /* _MDB_MODULE_H */