Header Header

gxsdldr.c File Reference


Detailed Description

GX system loader

The GX is the base system for the majority of the Adaptive Recognition products. It is a collection of loadable modules and library functions and gives an easy to program interface to the hardware devices.

The applications reaches the GX system modules through a defined interface. This interface is a common interface implemented in the libgxsd.so on Linux and gxsd.dll on Windows systems. The module openings are made using the general dynamic loader functions.

Windows example:


	HMODULE module = (HMODULE)LoadLibraryA("gxsd7.dll");
	...
	gx_call = GetProcAddress(module, "gx_call");
	...
	FreeLibrary(module);

   

Linux example:


	void *module = dlopen("/usr/lib32/libgxsd.so.7", RTLD_NOW | RTLD_GLOBAL);
	...
	gx_call = dlsym(module, "gx_call");
	...
	dlclose(module);

   

The gxsdldr.c(pp) file is a loader that loads the gxsd.dll (libgxsd.so) file.

Recomended usage:


Typedefs

typedef int GXAPI gxldr_callfunc_t (struct gxHANDLE handle, int function, void *params)
 Type of the gx_call function.

Functions

int GXAPI gx_call (struct gxHANDLE handle, int function, void *params)
 Main function pointer.

Variables

const char * gxsdldr_modulename
 Name of the library.
static char gxsdldr_errstr [256]
 Error buffer.


Typedef Documentation

typedef int GXAPI gxldr_callfunc_t(struct gxHANDLE handle, int function, void *params)

Type of the gx_call function.

See also:
gx_call


Function Documentation

int GXAPI gx_call ( struct gxHANDLE  handle,
int  function,
void *  params 
)

Main function pointer.

Calls a module process with the specified parameters.

Calls a module process with the specified parameters.

The functions and parameters usable inside the modules can be found in the documentation of the modules. The headers given with the modules contain inline functions, that make the access to the functions of the module easier.

See also:
gx_openmodule() gx_closehandle() gx_direct()
Parameters:
handle Handle of an opened module or special system handle ( see gx_direct() ).
function Identifier of the function (GX_CALL_xxx).
params Parameters to give for the function (GX_PARM_xxx).
Returns:
Module defined, usually non-zero on success.

References gxsdldr_errstr, and gxsdldr_modulename.

Referenced by gx_addvariantchild(), gx_addvariantitem(), gx_addvariantvalue(), gx_allocimage(), gx_alloctrafo(), gx_alloctrafo_dbg(), gx_calculatezipcrc(), gx_changevariantid(), gx_changevariantname(), gx_closefileinzip(), gx_closegz(), gx_closehandle(), gx_closezip(), gx_closezipa(), gx_coloradjust(), gx_colormixer(), gx_convertimage(), gx_convertpixels(), gx_convertvariant(), gx_convertvariantbypath(), gx_convertvariantbypatha(), gx_copyimage(), gx_copytrafo(), gx_createfileinzip(), gx_createfileinzipa(), gx_creategz(), gx_creategza(), gx_createimage(), gx_creatememslot(), gx_createtrafo(), gx_createvariant(), gx_createzip(), gx_createzipa(), gx_createzipinmemory(), gx_cutvariantchild(), gx_cutvariantitem(), gx_cutvariantvalue(), gx_drawtext(), gx_duplicatevariant(), gx_fastreconvert(), gx_fileinfoinzip(), gx_fileinfoinzipa(), gx_findvariantchild(), gx_findvariantitem(), gx_firstfileinzip(), gx_firstfileinzipa(), gx_flushproperties(), gx_freeimage(), gx_freetrafo(), gx_getallproperties(), gx_getallpropertiesa(), gx_geterror(), gx_geterrora(), gx_geterrorcode(), gx_getinitialzipcrc(), gx_getmemslot(), gx_getmoduleinfo(), gx_getmoduleproperty(), gx_getmodulepropertya(), gx_getpixelptr(), gx_getpixelsize(), gx_getproperties(), gx_getpropertiesa(), gx_getproperty(), gx_getpropertya(), gx_getpropertyparent(), gx_getpropertyparenta(), gx_getpropertytype(), gx_getpropertytypea(), gx_getsysteminfo(), gx_getvariant(), gx_getvariantbypath(), gx_getvariantbypatha(), gx_getvariantchild(), gx_getvariantinfo(), gx_getvariantitem(), gx_getvariantvalue(), gx_getzipcomment(), gx_getzipcommenta(), gx_getzipinfo(), gx_getzipinmemory(), gx_globalcheck_dbg(), gx_globalrealloc(), gx_globalrealloc_dbg(), gx_globalsize(), gx_globaltestmem_dbg(), gx_gzcompress(), gx_gzuncompress(), gx_imagecompose(), gx_imagedifference(), gx_imagefromvariant(), gx_imageftransform(), gx_imagetovariant(), gx_imagetransform(), gx_initimage(), gx_inittrafo(), gx_isvalidimage(), gx_isvalidtrafo(), gx_itrafo(), gx_itrafo_pnt(), gx_leavevariant(), gx_listdevices(), gx_listdevicesa(), gx_listmodules(), gx_listmodulesa(), gx_loadfrommem(), gx_loadimage(), gx_loadimagea(), gx_loadproperties(), gx_loadpropertiesa(), gx_loadtrafo(), gx_loadtrafoa(), gx_locatefileinzip(), gx_locatefileinzipa(), gx_mirrorimage(), gx_mirrorpixels(), gx_motdetiteration(), gx_mpcommit(), gx_mpstarttransaction(), gx_nextfileinzip(), gx_nextfileinzipa(), gx_opendevice(), gx_opendevicea(), gx_openfileinzip(), gx_openfileinzipa(), gx_opengz(), gx_opengza(), gx_openmodule(), gx_openmodulea(), gx_openzip(), gx_openzipa(), gx_openzipinmemory(), gx_poperror(), gx_pusherror(), gx_readfromfileinzip(), gx_readgz(), gx_readlexfieldzip(), gx_refhandle(), gx_refimage(), gx_reftrafo(), gx_refvariant(), gx_removevariantchild(), gx_removevariantitem(), gx_removevariantvalue(), gx_rmproperties(), gx_rmpropertiesa(), gx_rotateimage(), gx_rotatepixels(), gx_saveimage(), gx_saveimagea(), gx_savemoduleproperties(), gx_savemodulepropertiesa(), gx_saveproperties(), gx_savepropertiesa(), gx_savetomem(), gx_savetrafo(), gx_savetrafoa(), gx_seterrorafv(), gx_seterrorfv(), gx_setmoduleproperty(), gx_setmodulepropertya(), gx_setproperty(), gx_setpropertya(), gx_setpropertyparent(), gx_setpropertyparenta(), gx_testimagefileformat(), gx_testimagefileformata(), gx_testimagefileformatid(), gx_testimagefileformatidmem(), gx_testimagefileformatmem(), gx_trafo(), gx_trafo_pnt(), gx_trafofromvariant(), gx_trafotovariant(), gx_unrefhandle(), gx_unrefimage(), gx_unrefmemslot(), gx_unreftrafo(), gx_unrefvariant(), gx_updateerrtable(), gx_updatevariant(), gx_updatevariantdata(), gx_watchdog(), gx_writegz(), gx_writelogv(), gx_writelogva(), gx_writetofileinzip(), gx_zoomimage(), and gx_zoompixels().


Variable Documentation

const char* gxsdldr_modulename

Name of the library.

Referenced by gx_call().

char gxsdldr_errstr[256] [static]

Error buffer.

Referenced by gx_call().


Generated  for GX
(c) Adaptive Recognition