67#if !defined (PLIBSYS_H_INSIDE) && !defined (PLIBSYS_COMPILATION)
68# error "Header files shouldn't be included directly, consider using <plibsys.h> instead."
71#ifndef PLIBSYS_HEADER_PLIBRARYLOADER_H
72#define PLIBSYS_HEADER_PLIBRARYLOADER_H
P_LIB_API PFuncAddr p_library_loader_get_symbol(PLibraryLoader *loader, const pchar *sym)
Gets a pointer to a symbol in the loaded shared library.
void(* PFuncAddr)(void)
Pointer to a function address.
P_LIB_API void p_library_loader_free(PLibraryLoader *loader)
Frees memory and allocated resources of PLibraryLoader.
P_LIB_API pboolean p_library_loader_is_ref_counted(void)
Checks whether library loading subsystem uses reference counting.
P_LIB_API PLibraryLoader * p_library_loader_new(const pchar *path)
Loads a shared library.
struct PLibraryLoader_ PLibraryLoader
Opaque data structure to handle a shared library.
P_LIB_API pchar * p_library_loader_get_last_error(PLibraryLoader *loader)
Gets the last occurred error.
#define P_BEGIN_DECLS
Starts .h file declarations to be exported as C functions.
#define P_END_DECLS
Closes .h file declarations to be exported as C functions, should be always used after P_BEGIN_DECLS.
#define P_LIB_API
Exports a symbol from a shared library.
char pchar
Type for a char.
signed int pboolean
Type for a bool.