Difference between revisions of "Initialisation"
From XnView Wiki
Line 9: | Line 9: | ||
'''Return value''' | '''Return value''' | ||
:The function returns GFL_NO_ERROR if it is successful or a value of GFL_ERROR. | :The function returns GFL_NO_ERROR if it is successful or a value of [[Error|GFL_ERROR]]. | ||
'''See also''' | '''See also''' | ||
: | :[[#gflLibraryExit|gflLibraryExit]], [[Error|gflGetErrorString]] | ||
Line 40: | Line 40: | ||
'''Return value''' | '''Return value''' | ||
:The function returns GFL_NO_ERROR if it is successful or a value of GFL_ERROR. | :The function returns GFL_NO_ERROR if it is successful or a value of [[Error|GFL_ERROR]]. | ||
'''See also''' | '''See also''' | ||
: | :[[#gflLibraryExit|gflLibraryExit]], [[Error|gflGetErrorString]] | ||
Line 57: | Line 57: | ||
'''See also''' | '''See also''' | ||
:gflLibraryInit, | :[[#gflLibraryInit|gflLibraryInit]], [[Error|gflGetErrorString]] | ||
== gflGetVersion == | |||
The gflGetVersion function returns the GFL's version. | |||
const char* gflGetVersion( | |||
void | |||
); | |||
'''Return value''' | |||
:Pointer to a null-terminated string that contains version of GFL. | |||
== gflSetPluginsPathname == | |||
The gflSetPluginsPathname function allows to set a Plugin's folder. Be careful, this function must be called before gflLibraryInit. | |||
void gflSetPluginsPathname( | |||
const char* pathname | |||
); | |||
'''Parameters''' | |||
:pathname | |||
::Pointer to a null-terminated string that contains the pathname of plugins. | |||
'''See also''' | |||
:[[#gflLibraryInit|gflLibraryInit]], [[#gflLibraryExit|gflLibraryExit]] |
Revision as of 17:06, 22 September 2009
gflLibraryInit
The gflLibraryInit function initialize the library. Must be used before call of GFL's functions.
GFL_ERROR gflLibraryInit( void );
Return value
- The function returns GFL_NO_ERROR if it is successful or a value of GFL_ERROR.
See also
gflLibraryInitEx
The gflLibraryInitEx function initialize the library. Must be used before call of GFL's functions.
GFL_ERROR gflLibraryInitEx( GFL_ALLOC_CALLBACK alloc_callback, GFL_REALLOC_CALLBACK realloc_callback, GFL_FREE_CALLBACK free_callback, void * user_parms );
Parameters
- alloc_callback
- Pointer to an alloc user function. (void * (GFLAPI *)( GFL_UINT32 size, void * user_parms ))
- realloc_callback
- Pointer to a read user function. (void * (GFLAPI *)( void * ptr, GFL_UINT32 new_size, void * user_parms ))
- free_callback
- Pointer to a read user function. (void (GFLAPI *)( void * ptr, void * user_parms ))
- user_parms
- User parameter used in callback.
Return value
- The function returns GFL_NO_ERROR if it is successful or a value of GFL_ERROR.
See also
gflLibraryExit
The gflLibraryExit function frees the library.
void gflLibraryExit( void );
See also
gflGetVersion
The gflGetVersion function returns the GFL's version.
const char* gflGetVersion( void );
Return value
- Pointer to a null-terminated string that contains version of GFL.
gflSetPluginsPathname
The gflSetPluginsPathname function allows to set a Plugin's folder. Be careful, this function must be called before gflLibraryInit.
void gflSetPluginsPathname( const char* pathname );
Parameters
- pathname
- Pointer to a null-terminated string that contains the pathname of plugins.
See also