Files
fail/bochs/extplugin.h
hsc b70b6fb43a another directory rename: failstar -> fail
"failstar" sounds like a name for a cruise liner from the 80s.  As "*" isn't a
desirable part of directory names, just name the whole thing "fail/", the core
parts being stored in "fail/core/".

Additionally fixing two build system dependency issues:
 - missing jobserver -> protomessages dependency
 - broken bochs -> fail dependency (add_custom_target DEPENDS only allows plain
   file dependencies ... cmake for the win)


git-svn-id: https://www4.informatik.uni-erlangen.de/i4svn/danceos/trunk/devel/fail@956 8c4709b5-6ec9-48aa-a5cd-a96041d1645a
2012-03-08 19:43:02 +00:00

56 lines
1.3 KiB
C

/////////////////////////////////////////////////////////////////////////
// $Id$
/////////////////////////////////////////////////////////////////////////
//
// extplugin.h
//
// This header file defines the types necessary to make a Bochs plugin,
// but without mentioning all the details of Bochs internals (bochs.h).
// It is included by the configuration interfaces and possibly other
// things which are intentionally isolated from other parts of the program.
//
// The plugin_t struct comes from the plugin.h file from plex86.
// Plex86 is Copyright (C) 1999-2000 The plex86 developers team
//
/////////////////////////////////////////////////////////////////////////
#ifndef __EXTPLUGIN_H
#define __EXTPLUGIN_H
#if BX_PLUGINS
#if BX_HAVE_LTDL
#include <ltdl.h>
#else
#include "ltdl.h"
#endif
#endif
enum plugintype_t {
PLUGTYPE_NULL=100,
PLUGTYPE_CORE,
PLUGTYPE_OPTIONAL,
PLUGTYPE_USER
};
#define MAX_ARGC 10
typedef struct _plugin_t
{
plugintype_t type;
int initialized;
#if BX_PLUGINS
lt_dlhandle handle;
#endif
int argc;
char *name, *args, *argv[MAX_ARGC];
int (*plugin_init)(struct _plugin_t *plugin, plugintype_t type, int argc, char *argv[]);
void (*plugin_fini)(void);
struct _plugin_t *next;
} plugin_t;
#endif /* __EXTPLUGIN_H */