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 PLibraryLoader * p_library_loader_new(const pchar *path)
Loads a shared library.
#define P_END_DECLS
Closes .h file declarations to be exported as C functions, should be always used after P_BEGIN_DECLS...
Definition: pmacros.h:299
void(* PFuncAddr)(void)
Pointer to a function address.
Definition: plibraryloader.h:83
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.
char pchar
Type for a char.
Definition: ptypes.h:116
P_LIB_API pboolean p_library_loader_is_ref_counted(void)
Checks whether library loading subsystem uses reference counting.
typedefP_BEGIN_DECLS struct PLibraryLoader_ PLibraryLoader
Opaque data structure to handle a shared library.
Definition: plibraryloader.h:80
signed int pboolean
Type for a bool.
Definition: ptypes.h:114
#define P_LIB_API
Exports a symbol from a shared library.
Definition: pmacros.h:138
P_LIB_API pchar * p_library_loader_get_last_error(PLibraryLoader *loader)
Gets the last occurred error.
P_LIB_API void p_library_loader_free(PLibraryLoader *loader)
Frees memory and allocated resources of PLibraryLoader.
#define P_BEGIN_DECLS
Starts .h file declarations to be exported as C functions.
Definition: pmacros.h:298