Actions

Difference between revisions of "Initialisation"

From XnView Wiki

Line 1: Line 1:
<div style="float:right">__TOC__</div>
== gflLibraryInit ==
== gflLibraryInit ==


The gflLibraryInit function initialize the library. Must be used before call of GFL's functions.  
The gflLibraryInit function initialize the library. Must be used before call of GFL's functions.  


<blockquote style="background-color:#f0f0f0;">
GFL_ERROR <b>gflLibraryInit</b>(
GFL_ERROR <b>gflLibraryInit</b>(
&nbsp;&nbsp;void
<br>&nbsp;&nbsp;void
);
<br>);
</blockquote>


'''Return value'''  
'''Return value'''  
Line 24: Line 20:
The gflLibraryInitEx function initialize the library. Must be used before call of GFL's functions.  
The gflLibraryInitEx function initialize the library. Must be used before call of GFL's functions.  


<blockquote style="background-color:#f0f0f0;">
GFL_ERROR <b>gflLibraryInitEx</b>(
GFL_ERROR <b>gflLibraryInitEx</b>(
&nbsp;&nbsp;GFL_ALLOC_CALLBACK alloc_callback,   
<br>&nbsp;&nbsp;GFL_ALLOC_CALLBACK alloc_callback,   
&nbsp;&nbsp;GFL_REALLOC_CALLBACK realloc_callback,   
<br>&nbsp;&nbsp;GFL_REALLOC_CALLBACK realloc_callback,   
&nbsp;&nbsp;GFL_FREE_CALLBACK free_callback,   
<br>&nbsp;&nbsp;GFL_FREE_CALLBACK free_callback,   
&nbsp;&nbsp;void * user_parms
<br>&nbsp;&nbsp;void * user_parms
);
<br>);
</blockquote>


'''Parameters'''  
'''Parameters'''  
Line 57: Line 51:
The gflLibraryExit function frees the library.  
The gflLibraryExit function frees the library.  


<blockquote style="background-color:#f0f0f0;">
void <b>gflLibraryExit</b>(
void <b>gflLibraryExit</b>(
&nbsp;&nbsp;void
<br>&nbsp;&nbsp;void
);
<br>);
</blockquote>


'''See also'''  
'''See also'''  


:gflLibraryInit, gflLibraryInitEx, gflEnableLZW, gflGetVersion
:gflLibraryInit, gflLibraryInitEx, gflEnableLZW, gflGetVersion

Revision as of 17:43, 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, gflLibraryExit, gflEnableLZW, gflGetVersion, gflGetErrorString


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

gflLibraryInit, gflLibraryExit, gflEnableLZW, gflGetVersion, gflGetErrorString


gflLibraryExit

The gflLibraryExit function frees the library.

void gflLibraryExit(
  void
);

See also

gflLibraryInit, gflLibraryInitEx, gflEnableLZW, gflGetVersion