DtvLong UsxRegUsx (lib, nam, typ, dsc)

Extends the reference list of available userexit in the local memory structure by the userexit passed here or updates the reference entry. Additionally a userexit management entry will be written into the repository (T_FUNCTION).

Input parameter Meaning
char *lib Name of the userexit library without file name extension
char *nam Userexit name
USX_USX_TYP typ Userexit type. The type is defined as follows:
USX_NON_USX -> without type,
USX_SEL_USX -> selection userexit,
USX_MAS_USX -> mask userexit,
USX_SMA_USX -> selection and mask userexit,
USX_FLD_USX -> field userexit,
USX_SFL_USX -> selection and field userexit,
USX_MFL_USX -> mask and field userexit,
USX_ALL_USX -> all userexit types
char *dsc "comment"

Output parameter Meaning
none -

Return code Meaning
0 All Ok
1 Error while writing the management entry in T_FUNCTION (Dto-error)
-1 Error while entering into local structure
-2 Error while updating the local structure

You need this function to register your own C/C++userexit libraries for dynamic linking in DataView.

UsxSetLib may only be called within the library functions REGISTER and INIT.

UsxRegUsx may only be called within the function REGISTER. The userexit passed must be contained in the library lib and be exported as nam.