rexxapi1.c File Reference
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include <windows.h>
#include <rexx.h>
Include dependency graph for rexxapi1.c:

Go to the source code of this file.

Macros

#define INVALID_ROUTINE   40 /* Raise Rexx error */
 
#define VALID_ROUTINE   0 /* Successful completion */
 

Functions

LONG REXXENTRY ApiLoadFuncs (PSZ name, LONG numargs, RXSTRING args[], PSZ queuename, PRXSTRING retstr)
 
LONG REXXENTRY ApiDeregFunc (PSZ name, LONG numargs, RXSTRING args[], PSZ queuename, PRXSTRING retstr)
 
LONG REXXENTRY Api_Output_From_C (PSZ name, LONG numargs, RXSTRING args[], PSZ queuename, PRXSTRING retstr)
 
LONG REXXENTRY Api_Output_From_REXX (PSZ name, LONG numargs, RXSTRING args[], PSZ queuename, PRXSTRING retstr)
 
LONG REXXENTRY Api_Exchange_Data (PSZ name, LONG numargs, RXSTRING args[], PSZ queuename, PRXSTRING retstr)
 

Variables

static PSZ ApiFncTable []
 

Macro Definition Documentation

◆ INVALID_ROUTINE

#define INVALID_ROUTINE   40 /* Raise Rexx error */

Definition at line 51 of file rexxapi1.c.

◆ VALID_ROUTINE

#define VALID_ROUTINE   0 /* Successful completion */

Definition at line 52 of file rexxapi1.c.

Function Documentation

◆ Api_Exchange_Data()

LONG REXXENTRY Api_Exchange_Data ( PSZ  name,
LONG  numargs,
RXSTRING  args[],
PSZ  queuename,
PRXSTRING  retstr 
)

Definition at line 211 of file rexxapi1.c.

References _RXSTRING::strlength, _RXSTRING::strptr, and VALID_ROUTINE.

◆ Api_Output_From_C()

LONG REXXENTRY Api_Output_From_C ( PSZ  name,
LONG  numargs,
RXSTRING  args[],
PSZ  queuename,
PRXSTRING  retstr 
)

Definition at line 149 of file rexxapi1.c.

References _RXSTRING::strlength, _RXSTRING::strptr, and VALID_ROUTINE.

◆ Api_Output_From_REXX()

LONG REXXENTRY Api_Output_From_REXX ( PSZ  name,
LONG  numargs,
RXSTRING  args[],
PSZ  queuename,
PRXSTRING  retstr 
)

Definition at line 180 of file rexxapi1.c.

References _RXSTRING::strlength, _RXSTRING::strptr, and VALID_ROUTINE.

◆ ApiDeregFunc()

LONG REXXENTRY ApiDeregFunc ( PSZ  name,
LONG  numargs,
RXSTRING  args[],
PSZ  queuename,
PRXSTRING  retstr 
)

◆ ApiLoadFuncs()

LONG REXXENTRY ApiLoadFuncs ( PSZ  name,
LONG  numargs,
RXSTRING  args[],
PSZ  queuename,
PRXSTRING  retstr 
)

Definition at line 79 of file rexxapi1.c.

References ApiFncTable, RexxRegisterFunctionDll(), and VALID_ROUTINE.

Variable Documentation

◆ ApiFncTable

PSZ ApiFncTable[]
static
Initial value:
=
{
"Api_Output_From_C",
"Api_Output_From_REXX",
"Api_Exchange_Data",
"ApiDeregFunc"
}

Definition at line 60 of file rexxapi1.c.

Referenced by ApiDeregFunc(), and ApiLoadFuncs().