You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
413 B
15 lines
413 B
#pragma once
|
|
|
|
#include "module.h"
|
|
|
|
#define MODULE_DATABASE_CAPACITY 128
|
|
|
|
struct module_database {
|
|
struct module *modules[MODULE_DATABASE_CAPACITY];
|
|
size_t count;
|
|
};
|
|
|
|
struct module *module_database_find_by_path(struct module_database *db, char *path);
|
|
void module_database_init(struct module_database *db);
|
|
int module_database_add(struct module_database *db, struct module *module);
|