There is an error in the documentation for the gflGetFileInformationFromMemory function. It is declared as (libgfl.h):
extern GFLEXTERN GFL_ERROR GFLAPI gflGetFileInformationFromMemory(
const GFL_UINT8 * data,
GFL_UINT32 data_length,
GFL_INT32 index,
GFL_FILE_INFORMATION *info );
but in the documentation, it contains an additional parameter:
GFL_ERROR gflGetFileInformationFromMemory(
GFL_UINT8 * data,
GFL_UINT32 data_length,
GFL_INT32 index,
const GFL_LOAD_CALLBACKS * callbacks,
GFL_FILE_INFORMATION * information
);
So be careful when you try to use this function.
Ithier
gflGetFileInformationFromMemory: error in the documentation
Moderator: xnview
-
Ithier
- Posts: 47
- Joined: Fri Nov 19, 2004 10:50 am
- Location: Paris, France
-
xnview
- Author of XnView
- Posts: 47334
- Joined: Mon Oct 13, 2003 7:31 am
- Location: France
Re: gflGetFileInformationFromMemory: error in the documentat
Ok, i'll fix it...Ithier wrote:There is an error in the documentation for the gflGetFileInformationFromMemory function. It is declared as (libgfl.h):
extern GFLEXTERN GFL_ERROR GFLAPI gflGetFileInformationFromMemory(
const GFL_UINT8 * data,
GFL_UINT32 data_length,
GFL_INT32 index,
GFL_FILE_INFORMATION *info );
but in the documentation, it contains an additional parameter:
GFL_ERROR gflGetFileInformationFromMemory(
GFL_UINT8 * data,
GFL_UINT32 data_length,
GFL_INT32 index,
const GFL_LOAD_CALLBACKS * callbacks,
GFL_FILE_INFORMATION * information
);
So be careful when you try to use this function.
Ithier
Pierre.