ccm/lib/module.h

25 lines
430 B
C
Raw Normal View History

2024-03-18 17:20:40 +00:00
#ifndef CCM_MODULE_H
#define CCM_MODULE_H
#include "commons.h"
#include "prog.h"
#include "err.h"
#include "ccm.h"
2024-03-21 11:00:20 +00:00
#include "sym.h"
2024-03-18 17:20:40 +00:00
typedef struct {
err_t err;
char* source;
prog_t prog;
ccm_t ccm;
2024-03-21 11:00:20 +00:00
sym_t sym;
2024-03-18 17:20:40 +00:00
} module_t;
void module_init(module_t* self);
void module_free(module_t* self);
int module_load(module_t* self, char const* path);
int module_load_source(module_t* self, char const* path);
#endif