/* * Plugins manager - The peTI-NESulator Project * plugins.h * * Created by Manoƫl Trapier on 02/04/07. * Copyright (c) 2002-2019 986-Studio. * */ #ifndef PLUGINS_H #define PLUGINS_H #include /* Function pointer for prototyping function that plugins may export */ typedef int (*PluginInit)(void); typedef int (*PluginDeinit)(void); typedef void (*PluginKeypress)(void); #ifdef __TINES_PLUGINS__ /* Available functions for plugins */ int plugin_install_keypressHandler(uint8_t key, PluginKeypress); int plugin_remove_keypressHandler(uint8_t key, PluginKeypress); #else /* __TINES_PLUGINS__ */ /* Available functions outside of plugins */ int plugin_keypress(uint8_t key); /* Real Prototype: TBD */ void plugin_list(); int plugin_load(int id); int plugin_unload(int id); #endif /* __TINES_PLUGINS__ */ #endif /* PLUGINS_H */