#include <QSYSINC/MIH/RSLVSP>
#include <QSYSINC/MIH/MATPTR>
#include <QSYSINC/H/QLEAWI>
#include <stdio.h>
#include <stdlib.h>
_SYSPTR srvpgm_ptr;
Qle_ABP_Info_t *actinfo;
Qus_EC_t *err_code;
int expid=1,explen,expex;
char *expname = "plus";
void *expptr, *rc_expptr;
int rc,*actmark,*len, rc_actmark;
int (*pl)();
int main(void) {
srvpgm_ptr = rslvsp(WLI_SRVPGM,"PLUSSRV","*LIBL", _AUTH_OBJ_MGMT);
rc_actmark = QleActBndPgm (&srvpgm_ptr,
actmark, /* Activation mark */
actinfo, /* Activation information */
len, /* Length of Activation Info. */
err_code); /* Error code */
explen = 5;
expptr = malloc(128);
rc_expptr = QleGetExp (&rc_actmark,
&expid,
&explen, /* Export name length */
expname, /* Export name */
&expptr, /* Pointer to Pointer to export */
&expex, /* type, see QLE_EX_* defn's */
err_code); /* Error code */
printf("PLUSACT : plus ptr = %p\n",rc_expptr);
pl = rc_expptr;
rc = (*pl)();
printf("PLUSACT : END PGM");
}
|