Document of c-modernization-kit (funcman) 1.0.0
Loading...
Searching...
No Matches
funcman_get_func.c File Reference

拡張可能な関数の動的ロードを行い、関数アドレスを返却します。 More...

#include <funcman.h>
#include <string.h>
Include dependency graph for funcman_get_func.c:

Go to the source code of this file.

Functions

void * _funcman_get_func (funcman_object *fobj)
 拡張関数ポインタを返します。この関数は内部用です。

Detailed Description

拡張可能な関数の動的ロードを行い、関数アドレスを返却します。

Author
c-modenization-kit sample team
Date
2026/02/23
Version
1.0.0

funcman_get_func はスレッドセーフです。 内部で mutex (Linux) または SRW ロック (Windows) を使用して排他制御します。

Definition in file funcman_get_func.c.

Function Documentation

◆ _funcman_get_func()

void * _funcman_get_func ( funcman_object * fobj)

拡張関数ポインタを返します。この関数は内部用です。

既にロード済みの場合は即座に格納済みの関数ポインタを返します。

Parameters
[in,out]fobjfuncman_object へのポインタ。
Returns
成功時 void * (関数ポインタ)、失敗時 NULL。

Definition at line 21 of file funcman_get_func.c.

References funcman_object::func_name, funcman_object::func_ptr, FUNCMAN_NAME_MAX, funcman_object::handle, funcman_object::lib_name, funcman_object::mutex, and funcman_object::resolved.

Referenced by funcman_info(), and funcman_is_declared_default().

Here is the caller graph for this function: