Hash :
37ebe824
Author :
Thomas de Grivel
Date :
2023-08-29T14:21:55
/* c3
* Copyright 2022,2023 kmx.io <contact@kmx.io>
*
* Permission is hereby granted to use this software granted the above
* copyright notice and this permission paragraph are included in all
* copies and substantial portions of this software.
*
* THIS SOFTWARE IS PROVIDED "AS-IS" WITHOUT ANY GUARANTEE OF
* PURPOSE AND PERFORMANCE. IN NO EVENT WHATSOEVER SHALL THE
* AUTHOR BE CONSIDERED LIABLE FOR THE USE AND PERFORMANCE OF
* THIS SOFTWARE.
*/
/**
* @file module.h
* @brief Module
*
* Structure to manipulate modules.
* A module contains symbols which have a type and an optional value.
*/
#ifndef MODULE_H
#define MODULE_H
#include "types.h"
/* Modifiers */
bool module_ensure_loaded (const s_sym *name, s_facts *facts);
bool module_load (const s_sym *name, s_facts *facts);
/* Observers */
s_str * module_name_path (const s_str *prefix, const s_sym *name,
s_str *dest);
sw module_name_path_size (const s_str *prefix,
const s_sym *name);
#endif /* MODULE_H */