17#ifndef TEL_EXTENSION_H
18#define TEL_EXTENSION_H
20#include <APIMacros/api.h>
33#define TEL_ERROR_GET_FUNC 1
34#define TEL_ERROR_EXT_LOAD 2
59#define TEL_NEW_EXTENSION(extension, struct) \
60 TelExtension* extension = (TelExtension*)malloc(sizeof(TelExtension)); \
61 extension->info = (struct*)malloc(sizeof(struct))
83 const char* restrict setupFunctionName);
103 const char* restrict cleanupFunctionName);
API TelError telExtensionLoad(TelExtension *self, const char *restrict path, const char *restrict setupFunctionName)
Function that loads the extension.
API TelError telExtensionUnload(TelExtension *self, const char *restrict cleanupFunctionName)
Function that unload the extension.
The structure that represents the error on return.
Definition Extension.h:27
unsigned char code
Definition Extension.h:28
void * ret
Definition Extension.h:29
The structure that represents the extension.
Definition Extension.h:39
void * library
Definition Extension.h:43
void * info
Definition Extension.h:40