54
|
1 |
#include "module.h"
|
|
2 |
|
|
3 |
#include <stdlib.h>
|
|
4 |
#include <dlfcn.h>
|
|
5 |
|
|
6 |
err_t modules_create (struct modules **modules_ptr, struct nexus *nexus)
|
|
7 |
{
|
|
8 |
struct moduels *modules;
|
|
9 |
|
|
10 |
// alloc
|
|
11 |
if ((modules = calloc(1, sizeof(*modules))) == NULL)
|
|
12 |
return ERR_CALLOC;
|
|
13 |
|
|
14 |
// init
|
|
15 |
TAILQ_INIT
|
|
16 |
|
|
17 |
// store
|
|
18 |
modules->nexus = nexus;
|
|
19 |
}
|
|
20 |
|
|
21 |
err_t module_load (struct module **module_ptr, struct nexus *nexus, const struct module_info *info, struct error_info *err)
|
|
22 |
{
|
|
23 |
struct module *module;
|
|
24 |
|
|
25 |
|
|
26 |
}
|