esrosEvents.txt
/* Events, Confirmation and Indications */
typedef struct ESRO_InvokeInd {
ESRO_SapDesc locSapDesc;
ESRO_SapSel remESROSap;
T_SapSel remTsap;
N_SapAddr remNsap;
ESRO_InvokeId invokeId;
ESRO_OperationValue operationValue;
ESRO_EncodingType encodingType;
Int len;
Byte data[ESRODATASIZE];
} ESRO_InvokeInd;
typedef struct ESRO_ResultInd {
ESRO_InvokeId invokeId;
ESRO_UserInvokeRef userInvokeRef,
ESRO_EncodingType encodingType;
Int len;
Byte data[ESRODATASIZE];
} ESRO_ResultInd;
typedef struct ESRO_ErrorInd {
ESRO_InvokeId invokeId;
ESRO_UserInvokeRef userInvokeRef,
ESRO_EncodingType encodingType;
ESRO_ErrorValue errorValue;
Int len;
Byte data[ESRODATASIZE];
} ESRO_ErrorInd;
typedef struct ESRO_ResultCnf {
ESRO_InvokeId invokeId;
ESRO_UserInvokeRef userInvokeRef,
} ESRO_ResultCnf;
typedef struct ESRO_ErrorCnf {
ESRO_InvokeId invokeId;
ESRO_UserInvokeRef userInvokeRef,
} ESRO_ErrorCnf;
typedef struct ESRO_FailureInd {
ESRO_InvokeId invokeId;
ESRO_UserInvokeRef userInvokeRef;
ESRO_FailureValue failureValue;
} ESRO_FailureInd;
typedef struct ESRO_Event {
int type; /* Event type */
union {
ESRO_InvokeInd invokeInd;
ESRO_ResultInd resultInd;
ESRO_ErrorInd reorient;
ESRO_ResultCnf resultCnf;
ESRO_ErrorCnf errorCnf;
ESRO_FailureInd failureInd;
} un;
} ESRO_Event;
/* ESROS Event Primitive Codes */
#define ESRO_E_BASE 200
#define ESRO_INVOKE_IND (ESRO_E_BASE+0)
#define ESRO_RESULT_IND (ESRO_E_BASE+1)
#define ESRO_ERROR_IND (ESRO_E_BASE+2)
#define ESRO_RESULT_CNF (ESRO_E_BASE+3)
#define ESRO_ERROR_CNF (ESRO_E_BASE+4)
#define ESRO_FAILURE_IND (ESRO_E_BASE+5)