X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=source%2Ffront-end%2Fsrc%2Fplugin.h;fp=source%2Ffront-end%2Fsrc%2Fplugin.h;h=3d9a1f381a50d04984300dc28044fe0f3efd30e5;hb=5288f5429f38c99c73856e285d35e7d0c4c779d0;hp=0000000000000000000000000000000000000000;hpb=48d77f736bea02afeb362cff05c81375752b3015;p=mupen64plus-pandora.git diff --git a/source/front-end/src/plugin.h b/source/front-end/src/plugin.h new file mode 100644 index 0000000..3d9a1f3 --- /dev/null +++ b/source/front-end/src/plugin.h @@ -0,0 +1,50 @@ +/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * + * Mupen64plus-ui-console - plugin.h * + * Mupen64Plus homepage: http://code.google.com/p/mupen64plus/ * + * Copyright (C) 2009 Richard42 * + * * + * This program is free software; you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation; either version 2 of the License, or * + * (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; if not, write to the * + * Free Software Foundation, Inc., * + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * + * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ + +#if !defined(PLUGIN_H) +#define PLUGIN_H + +#include "m64p_types.h" +#include "osal_preproc.h" + +extern m64p_error PluginSearchLoad(m64p_handle ConfigUI); +extern m64p_error PluginUnload(void); + +extern const char *g_PluginDir; // directory to search for plugins +extern const char *g_GfxPlugin; // graphics plugin specified at commandline (if any) +extern const char *g_AudioPlugin; // audio plugin specified at commandline (if any) +extern const char *g_InputPlugin; // input plugin specified at commandline (if any) +extern const char *g_RspPlugin; // rsp plugin specified at commandline (if any) + +typedef struct { + m64p_plugin_type type; + char name[8]; + m64p_dynlib_handle handle; + char filename[PATH_MAX]; + const char *libname; + int libversion; + } plugin_map_node; + +extern plugin_map_node g_PluginMap[4]; + +#endif /* #define PLUGIN_H */ + +