yaze 0.3.2
Link to the Past ROM Editor
 
Loading...
Searching...
No Matches
yaze_extensions.h
Go to the documentation of this file.
1#ifndef YAZE_EXTENSIONS_H
2#define YAZE_EXTENSIONS_H
3
9#ifdef __cplusplus
10extern "C" {
11#endif
12
13#include <stdint.h>
14
15#include "yaze_core.h"
16#include "yaze_errors.h"
17
23typedef void (*yaze_initialize_func)(yaze_editor_context* context);
24typedef void (*yaze_cleanup_func)(void);
25
37typedef struct yaze_extension {
38 const char* name;
39 const char* version;
40 const char* description;
41 const char* author;
54
61 void (*cleanup)(void);
62
70 uint32_t (*get_capabilities)(void);
72
74#define YAZE_EXT_CAP_ROM_EDITING (1 << 0)
75#define YAZE_EXT_CAP_GRAPHICS (1 << 1)
76#define YAZE_EXT_CAP_AUDIO (1 << 2)
77#define YAZE_EXT_CAP_SCRIPTING (1 << 3)
78#define YAZE_EXT_CAP_IMPORT_EXPORT (1 << 4)
87
95
98#ifdef __cplusplus
99}
100#endif
101
102#endif // YAZE_EXTENSIONS_H
yaze_status yaze_unregister_extension(const char *name)
Unregister an extension.
struct yaze_extension yaze_extension
Extension interface for YAZE.
yaze_status yaze_register_extension(const yaze_extension *extension)
Register an extension with YAZE.
Extension interface for YAZE.
const char * author
void(* cleanup)(void)
Clean up the extension.
uint32_t(* get_capabilities)(void)
Get extension capabilities.
const char * description
const char * version
yaze_status(* initialize)(yaze_editor_context *context)
Initialize the extension.
const char * name
Core initialization and editor context for the YAZE public API.
Status codes and error helpers for the YAZE public API.
yaze_status
Status codes returned by YAZE functions.
Definition yaze_errors.h:19
void(* yaze_cleanup_func)(void)
void(* yaze_initialize_func)(yaze_editor_context *context)
Function pointer to initialize the extension.