gflGetFileInformationFromMemory: error in the documentation

Discussions on GFL SDK, the graphic library for reading and writing graphic files

Moderators: XnTriq, helmut, xnview

User avatar
Ithier
Posts: 47
Joined: Fri Nov 19, 2004 10:50 am
Location: Paris, France

gflGetFileInformationFromMemory: error in the documentation

Post by Ithier »

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
User avatar
xnview
Author of XnView
Posts: 43132
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: gflGetFileInformationFromMemory: error in the documentat

Post by xnview »

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
Ok, i'll fix it...
Pierre.