Extension interface for YAZE. More...
#include <yaze_extensions.h>
Public Attributes | |
| const char * | name |
| const char * | version |
| const char * | description |
| const char * | author |
| int | api_version |
| yaze_status(* | initialize )(yaze_editor_context *context) |
| Initialize the extension. | |
| void(* | cleanup )(void) |
| Clean up the extension. | |
| uint32_t(* | get_capabilities )(void) |
| Get extension capabilities. | |
Extension interface for YAZE.
Defines the interface for YAZE extensions. Extensions can add new functionality to YAZE and can be written in C or other languages.
Definition at line 37 of file yaze_extensions.h.
| const char* yaze_extension::name |
Extension name (must not be NULL)
Definition at line 38 of file yaze_extensions.h.
| const char* yaze_extension::version |
Extension version string
Definition at line 39 of file yaze_extensions.h.
| const char* yaze_extension::description |
Brief description of functionality
Definition at line 40 of file yaze_extensions.h.
| const char* yaze_extension::author |
Extension author
Definition at line 41 of file yaze_extensions.h.
| int yaze_extension::api_version |
Required YAZE API version
Definition at line 42 of file yaze_extensions.h.
| yaze_status(* yaze_extension::initialize) (yaze_editor_context *context) |
Initialize the extension.
Called when the extension is loaded. Use this to set up any resources or state needed by the extension.
| context | Editor context provided by YAZE |
Definition at line 53 of file yaze_extensions.h.
Referenced by yaze::editor::ExtensionManager::LoadExtension().
| void(* yaze_extension::cleanup) (void) |
Clean up the extension.
Called when the extension is unloaded. Use this to clean up any resources or state used by the extension.
Definition at line 61 of file yaze_extensions.h.
| uint32_t(* yaze_extension::get_capabilities) (void) |
Get extension capabilities.
Returns a bitmask indicating what features this extension provides.
Definition at line 70 of file yaze_extensions.h.