Zen-C
Loading...
Searching...
No Matches
zprep_plugin.h File Reference
#include <stddef.h>
#include <stdio.h>
Include dependency graph for zprep_plugin.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  ZApi
 Host API provided to plugins. More...
 
struct  ZPlugin
 Plugin definition structure. More...
 

Typedefs

typedef void(* ZPluginTranspileFn) (const char *input_body, const ZApi *api)
 The Plugin Function Signature.
 
typedef ZPlugin *(* ZPluginInitFn) (void)
 Signature for the plugin entry point.
 

Typedef Documentation

◆ ZPluginInitFn

typedef ZPlugin *(* ZPluginInitFn) (void)

Signature for the plugin entry point.

Dynamic libraries must export a function named z_init matching this signature.

◆ ZPluginTranspileFn

typedef void(* ZPluginTranspileFn) (const char *input_body, const ZApi *api)

The Plugin Function Signature.

Plugins must implement a function with this signature to handle transpilation.

Parameters
input_bodyThe raw text content inside the plugin call.
apiPointer to the host API structure.