Nilorea Library
C utilities for networking, threading, graphics
Loading...
Searching...
No Matches
n_module.h
Go to the documentation of this file.
1/*
2 * Nilorea Library
3 * Copyright (C) 2005-2026 Castagnier Mickael
4 *
5 * Licensed under the Apache License, Version 2.0 (the "License");
6 * you may not use this file except in compliance with the License.
7 * You may obtain a copy of the License at
8 *
9 * http://www.apache.org/licenses/LICENSE-2.0
10 *
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
14 * implied. See the License for the specific language governing
15 * permissions and limitations under the License.
16 *
17 * SPDX-License-Identifier: Apache-2.0
18 */
19
42
43#ifndef __NILOREA_MODULE__
44#define __NILOREA_MODULE__
45
46#ifdef __cplusplus
47extern "C" {
48#endif
49
54
55#include "nilorea/n_common.h"
56
58#define N_MODULE_ERROR_MAX 512
59
62typedef struct N_MODULE N_MODULE;
63
79N_MODULE* n_module_open(const char* path);
80
94void* n_module_symbol(N_MODULE* module, const char* name);
95
108int n_module_close(N_MODULE** module);
109
116const char* n_module_error(void);
117
126const char* n_module_extension(void);
127
129
130#ifdef __cplusplus
131}
132#endif
133#endif /* __NILOREA_MODULE__ */
const char * n_module_extension(void)
The file extension shared libraries have on this platform.
Definition n_module.c:161
N_MODULE * n_module_open(const char *path)
Open a shared library.
Definition n_module.c:68
int n_module_close(N_MODULE **module)
Close a library and free its handle.
Definition n_module.c:136
void * n_module_symbol(N_MODULE *module, const char *name)
Find a symbol in an opened library.
Definition n_module.c:110
const char * n_module_error(void)
What the system said about this thread's last failed call.
Definition n_module.c:157
Common headers and low-level functions & define.
an opened shared library
Definition n_module.c:40