loadSymbolFunction

inline fun <T : Function<*>> loadSymbolFunction(symbolName: String): <Error class: unknown class><<Error class: unknown class><T>>?(source)

Dynamically resolves a symbol as a C function pointer of type T.

This function searches for the specified symbol name within the main program and any already-loaded shared libraries. If the symbol is found, it is reinterpreted as a function pointer of the given type T. If the symbol is not found, null is returned.

Return

The function pointer if the symbol is found, or null if the symbol cannot be resolved.

Parameters

T

The Kotlin representation of the C function pointer's type signature (e.g., () -> GType).

symbolName

The name of the symbol to resolve (e.g., "adw_about_dialog_get_type").