1234567891011121314151617181920212223242526272829303132333435363738 |
- /*
- * 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 <types.h>
- /* 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 */
|