23 lines
398 B
C
23 lines
398 B
C
#ifndef CCM_MODULE_H
|
|
#define CCM_MODULE_H
|
|
|
|
#include "commons.h"
|
|
#include "prog.h"
|
|
#include "err.h"
|
|
#include "ccm.h"
|
|
|
|
typedef struct {
|
|
err_t err;
|
|
char* source;
|
|
prog_t prog;
|
|
ccm_t ccm;
|
|
} 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
|