#ifndef CMISE_CONSTANT_DEFINED /****************************************************************************/ /* MODULE CMISE_CONSTANT.H */ /* Copyright (c) Digital Equipment Corporation, 1990, 1994 */ /* All Rights Reserved. Unpublished rights reserved */ /* under the copyright laws of the United States. */ /* */ /* The software contained on this media is proprietary */ /* to and embodies the confidential technology of */ /* Digital Equipment Corporation. Possession, use, */ /* duplication or dissemination of the software and */ /* media is authorized only pursuant to a valid written */ /* license from Digital Equipment Corporation. */ /* */ /* RESTRICTED RIGHTS LEGEND Use, duplication, or */ /* disclosure by the U.S. Government is subject to */ /* restrictions as set forth in Subparagraph (c)(1)(ii) */ /* of DFARS 252.227-7013, or in FAR 52.227-19, as */ /* applicable. */ /* */ /****************************************************************************/ #ifndef NULL #define NULL MCC_K_NULL_PTR #endif /* * * The scope (containment_level) is passed in the following manner: * * 4 byte representation: * 3 2 1 0 * * base object alone: 0 0 0 0 * first level subordinates: 0 0 0 1 * base object and all subordinates: 0 0 0 2 * the nth level below the base object: 0 0 1 n * base object and all subordinates to level n: 0 0 2 n * * This means that the object hierarchy is limited to 256 levels. * * typedef unsigned long int cmise_scope; */ /* */ /* Scope related constants */ /* */ #define CMIP_K_SCOPE_BASE 0 /* 0x0000 */ #define CMIP_K_SCOPE_1ST 1 /* 0x0001 */ #define CMIP_K_SCOPE_SUBTREE 2 /* 0x0002 */ #define CMIP_K_SCOPE_ONE_LEVEL 256 /* 0x0010 */ #define CMIP_K_SCOPE_NTH_LEVEL 512 /* 0x0020 */ /* * new definition of flag bits * */ /* bit mask constants for flags */ #define M_FG_NONE 0x0000 #define M_FG_NOSYNC 0x0001 /* if set, atomic sync */ /* flag is not meaningful */ #define M_FG_LINKED_ID 0x0002 #define M_FG_CONFIRMED 0x0004 #define M_FG_ATOMIC_SYNC 0x0008 #define M_FG_RORS_BASIC 0x0010 #define M_FG_SUPER_INST 0x0080 /* this is for future */ #define M_FG_INVOKE_ID 0x0100 #define M_FG_PROB_TYPE 0x0200 #define M_FG_PROB_NUM 0x0400 #define M_FG_COMPLEX_SCOPE 0x1000 #define M_FG_COMPLEX_SYNCH 0x2000 #define M_FG_COMPLEX_FILTER 0x4000 /* CMIP common definitions */ /* */ /* */ /* CMIP versions */ /* */ #define CMIP_K_OSI 1 /* NMF or IS CMIP */ /* */ /* OSI CMIP Operations */ /* */ #define CMIP_K_OP_EVENT 0 #define CMIP_K_OP_EVENT_C 1 #define CMIP_K_OP_LINKED 2 #define CMIP_K_OP_GET 3 #define CMIP_K_OP_SET 4 #define CMIP_K_OP_SET_C 5 #define CMIP_K_OP_ACTION 6 #define CMIP_K_OP_ACTION_C 7 #define CMIP_K_OP_CREATE 8 #define CMIP_K_OP_DELETE 9 #define CMIP_K_OP_CANCEL_GET 10 /* */ /* Modify operators for set arguments */ /* */ #define CMIP_K_REPLACE_OPERATOR 0 #define CMIP_K_ADD_OPERATOR 1 #define CMIP_K_REMOVE_OPERATOR 2 #define CMIP_K_DEFAULT_OPERATOR 3 /* */ /* Synch related constants */ /* */ #define CMIP_K_BEST_EFFORT 0 #define CMIP_K_ATOMIC 1 #define CMIP_K_NOSYNC 2 /* */ /* filter related tags */ /* */ #define CMIP_K_FILTER_ITEM_CONT 8 /* CMIP filter item */ #define CMIP_K_FILTER_AND_CONT 9 /* CMIP filter AND item */ #define CMIP_K_FILTER_OR_CONT 10 /* CMIP filter OR item */ #define CMIP_K_FILTER_NOT_CONT 11 /* CMIP filter NOT item */ #define CMIP_K_FLTR_EQ_CONT 0 /* CMIP filter Equality context */ #define CMIP_K_FLTR_SUBSTR_CONT 0 /* CMIP filter substring context */ #define CMIP_K_FLTR_ANYSTR_CONT 1 /* CMIP filter any string context */ #define CMIP_K_FLTR_ENDSTR_CONT 2 /* CMIP filter final string context */ #define CMIP_K_FLTR_GE_CONT 2 /* CMIP filter Greater or Equal context */ #define CMIP_K_FLTR_LE_CONT 3 /* CMIP filter Less Than or Equal context */ #define CMIP_K_FLTR_PRESENT_CONT 4 /* CMIP filter Present context */ #define CMIP_K_FLTR_SUBSET_CONT 5 /* CMIP filter Subset context */ #define CMIP_K_FLTR_SUPERSET_CONT 6 /* CMIP filter Superset context */ #define CMIP_K_FLTR_NOTNULL_CONT 7 /* CMIP filter Not null set context */ #define CMIP_K_MODIFY_CONT 2 /* Cont Specific tag for Modify operator in SET argument */ #define CMIP_K_LINK_ID_CONT 0 /* Link Id Cont specfic tag */ #define CMIP_K_LINK_GET_RES_CONT 0 /* Linked Get Result Argument Cont specfic tag */ #define CMIP_K_LINK_GET_ERR_CONT 1 /* Linked Get Error Argument Cont specfic tag */ #define CMIP_K_LINK_SET_RES_CONT 2 /* Linked Set Result Argument Cont specfic tag */ #define CMIP_K_LINK_SET_ERR_CONT 3 /* Linked Set Error Argument Cont specfic tag */ #define CMIP_K_LINK_ACT_RES_CONT 4 /* Linked Action Result Argument Cont specfic tag */ #define CMIP_K_LINK_ACT_ERR_CONT 7 /* Linked Action Error Argument Cont specfic tag */ #define CMIP_K_LINK_DEL_RES_CONT 6 /* Linked Delete Result Argument Cont specfic tag */ #define CMIP_K_LINK_DEL_ERR_CONT 8 /* Linked Delete Error Argument Cont specfic tag */ #define CMIP_K_LINK_PR_FAIL_CONT 5 /* Linked Process Failure Argument Cont specfic tag */ #define CMIP_K_GBL_ENT_CLASS_CONT 0 /* Global (form of) Entity Class Cont specfic tag */ #define CMIP_K_LOC_ENT_CLASS_CONT 1 /* Local (form of) Entity Class Cont specfic tag */ #define CMIP_K_ENT_DSN_NAME_CONT 2 /* Object Instance Distinguished Name Cont specfic tag */ #define CMIP_K_ENT_NON_SPEC_CONT 3 /* Object Instance Non Specific form Cont specfic tag */ #define CMIP_K_ENT_REL_DSN_CONT 4 /* Object Instance Relative Distinguished Name Cont specfic tag */ #define CMIP_K_ACCESS_CONT 5 /* Access */ #define CMIP_K_TIME_CONT 5 /* Time */ #define CMIP_K_SYNCH_CONT 6 /* synchronization */ #define CMIP_K_SCOPE_CONT 7 /* scope */ #define CMIP_K_SCOPE_IND_CONT 1 /* scope individual context */ #define CMIP_K_SCOPE_NTH_CONT 2 /* scope nth level context */ #define CMIP_K_GBL_ATTR_CONT 0 /* Global (form of) attr type Cont specfic tag */ #define CMIP_K_LOC_ATTR_CONT 1 /* Local (form of) attr type Cont specfic tag */ #define CMIP_K_GBL_EVENT_CONT 6 /* Global (form of) event type Cont specfic tag */ #define CMIP_K_LOC_EVENT_CONT 7 /* Local (form of) event type Cont specfic tag */ #define CMIP_K_EVENT_PARAM_CONT 8 /* Event info Cont specfic tag within event arg (within invoke PDU) */ #define CMIP_K_REF_INSTANCE_CONT 6 /* Ref Instance Cont specfic tag in create argument (within invoke PDU) */ #define CMIP_K_CREATE_PARAM_CONT 7 /* attribute list Cont specfic tag in create argument (within invoke PDU) */ #define CMIP_K_SUP_INSTANCE_CONT 8 /* Superior Instance Cont specfic tag in create argument (within invoke PDU) */ #define CMIP_K_GET_PARAM_CONT 12 /* attribute ID list Cont specfic tag in get argument (within invoke PDU) */ #define CMIP_K_SET_PARAM_CONT 12 /* attribute list Cont specfic tag in set argument (within invoke PDU) */ #define CMIP_K_GBL_ACTION_CONT 2 /* Global (form of) action type Cont specfic tag */ #define CMIP_K_LOC_ACTION_CONT 3 /* Local (form of) action type Cont specfic tag */ #define CMIP_K_ACTION_PARAM_CONT 12 /* action info in Cont specfic tag action argument (within invoke PDU) */ #define CMIP_K_ACTION_ARG_CONT 4 /* action argument list in action info and action reply*/ #define CMIP_K_ACTION_RESULT_CONT 6 /* action result info in action result PDU */ #define CMIP_K_EVENT_RESULT_CONT 8 /* event result info in event result PDU */ #define CMIP_K_CREATE_RESULT_CONT 6 /* create result info in create result PDU */ #define CMIP_K_GET_RESULT_CONT 6 /* get result info in get result PDU */ #define CMIP_K_SET_RESULT_CONT 6 /* set result info in set result PDU */ #define CMIP_K_ERR_ARG_CONT 6 /* context for Argument in Get/Set/Action/Delete Error PDU */ #define CMIP_K_SPECIFIC_ERR_CONT 5 /* context for Specific error Argument Processing Error PDU */ #define CMIP_K_ERR_ATTR_CONT 0 /* Error Attribute contet in Get/Modify list error */ #define CMIP_K_GOOD_ATTR_CONT 1 /* Good Attribute context in Get/Modify List error */ #define CMIP_K_NOSUCHARG_CONT 0 /* Choice of no such argument in ActionErrorInfo */ #define CMIP_K_INVARGVAL_CONT 1 /* Choice of invalid argument value in ActionErrorInfo */ #define CMIP_K_ACTION_CHOICE_CONT 0 /* context tag for choice of action in No Such Argument error */ #define CMIP_K_EVENT_CHOICE_CONT 1 /* context tag for choice of event in No Such Argument error */ #define CMIP_K_COMPLEX_SCOPE_CONT 0 /* Complexity limitation choice of scope */ #define CMIP_K_COMPLEX_FILTER_CONT 1 /* Complexity limitation choice of filter */ #define CMIP_K_COMPLEX_SYNCH_CONT 2 /* Complexity limitation choice of synch */ #define CMIP_K_VER_CONT 0 /* CMIPUserInfo protocolVersion Context */ #define CMIP_K_FUNC_CONT 1 /* CMIPUserInfo functionalUnit Context */ #define CMIP_K_USER_ACCESS_CONT 2 /* CMIPUserInfo accessControl Context */ #define CMIP_K_USER_CONT 3 /* CMIPUserInfo userInfo Context */ #define CMIP_K_INVOKE_CONT 1 /* CMIP Invoke PDU */ #define CMIP_K_RESULT_CONT 2 /* CMIP Return Result PDU */ #define CMIP_K_ERROR_CONT 3 /* CMIP Return Error PDU */ #define CMIP_K_REJECT_CONT 4 /* CMIP Reject PDU */ #define CMIP_K_LINKED_ERROR_CONT 0 /* Linked error reply context */ /* PDV list tags */ #define CMIP_K_FULLY_APPL 1 /* user data Fully encoded context */ #define CMIP_K_SIMPLY_APPL 0 /* user data Simply encoded context */ #define CMIP_K_SINGLE_ASN_CONT 0 /* single asn1 type */ #define CMIP_K_OCTET_ALIGN_CONT 1 /* octect aligned type */ #define CMIP_K_ARBITRARY_CONT 2 /* arbitrary type */ #define CMIP_K_ACSE_USER_CONT 30 /* user information for osak calls */ #define CMIP_K_EXTERNAL_SEQ 40 /* univ external + form bit = %x28=40*/ /* */ /* Symbols for Pre defined parts of object Id in Entity Class... */ /* */ #define CMIP_K_ISO_CODE 1 /* ISO code */ #define CMIP_K_IDEN_ORG_CODE 3 /* Identified Organization code */ #define CMIP_K_ECMA_CODE 12 /* ECMA */ #define CMIP_K_MEMBER_CO 2 /* Member Company */ #define CMIP_K_DEC_CODE 1011 /* DEC */ #define CMIP_K_DSM_CODE 2 /* DSM code */ #define CMIP_K_ENTITY_CODE 1 /* Entity code */ #define CMIP_K_NODE_CODE 1 /* Node code */ #define CMIP_K_ATTRIBUTES 2 /* ema attributes(2) */ #define CMIP_K_ACTIONS 3 /* ema actions(3) */ #define CMIP_K_ACTION_REQUEST_ARG 4 /* ema action-request-arg(4) */ #define CMIP_K_ACTION_RESPONSE 5 /* ema action-response(5) */ #define CMIP_K_ACTION_RESPONSE_ARG 6 /* ema action-response-arg(6) */ #define CMIP_K_ACTION_EXCEPTION 7 /* ema action-exception(7) */ #define CMIP_K_ACTION_EXCEPTION_ARG 8 /* ema action-exception-arg(8) */ #define CMIP_K_EVENT 9 /* ema event (9) */ #define CMIP_K_EVENT_ARG 10 /* ema event-arg (10) */ #define CMIP_K_UNIVERSAL_ATTR_GROUP 11 /* ema universal-attribute-group(11) */ #define CMIP_K_ENTITY_CLASS_GROUP 12 /* ema entity-class-specific-group(12) */ #define CMIP_K_NODE 1 /* entities node(1) */ #define CMIP_K_MODULE_ID 13 /* ema module id(13) */ #define CMIP_K_ENTITY_MARKER 126 /* ema entity end marker */ #define CMIP_K_ENTITY_NAME 1 /* attributes Id of the entity (1) */ #define CMIP_K_EMA_PREFIX_LENGTH 6 #define CMIP_K_PREFIX_COMMON 7 /* first 6 common elements */ #define CMIP_K_SEVENTH_INDEX 6 /* the index for the 7th element */ #define CMIP_K_CMIS_SYNC 3 /* DEC required CMIS-SYNC code */ /* */ /* Symbols for CMIP probelm, errors etc... */ /* */ #define CMIP_K_GENERAL_PROB 0 /* General problem */ #define CMIP_K_INVOKE_PROB 1 /* Invoke problem */ #define CMIP_K_RETURN_RESULT_PROB 2 /* return result problem */ #define CMIP_K_RETURN_ERROR_PROB 3 /* Return error problem */ #define CMIP_K_UNRECOGNIZE_PROB 0 /* Unrecognize APDU problem */ #define CMIP_K_MISTYPED_PDU_PROB 1 /* Mistyped APDU problem */ #define CMIP_K_BAD_STRUCT_PROB 2 /* Badly structured problem */ #define CMIP_K_DUP_INVOKE_PROB 0 /* Duplicate Invokation problem */ #define CMIP_K_UNKNOWN_OP_PROB 1 /* Unrecogninzed Operation problem */ #define CMIP_K_MISTYPED_ARG_PROB 2 /* Mistyped Argument problem */ #define CMIP_K_RES_LIMIT_PROB 3 /* Limited Resources problem */ #define CMIP_K_RELEASING_PROB 4 /* Initiator Releasing problem */ #define CMIP_K_UNK_LINK_PROB 5 /* Unknown Link ID problem */ #define CMIP_K_LINK_EXPEC_PROB 6 /* Linked response expected problem */ #define CMIP_K_CHILD_OP_PROB 7 /* Unexpected Child Operation problem */ #define CMIP_K_UNK_INVOKE_PROB 0 /* Unrecognized Invokation problem */ #define CMIP_K_UNEX_RESULT_PROB 1 /* Result Response Unexpexectd problem */ #define CMIP_K_MISTYPED_RES_PROB 2 /* Mistyped Result problem */ #define CMIP_K_UNEX_ERR_RES_PROB 1 /* Error Response Unexpeced problem */ #define CMIP_K_UNK_ERROR_PROB 2 /* Unrecognized Error problem */ #define CMIP_K_UNEX_ERROR_PROB 3 /* Unexpected Error problem */ #define CMIP_K_MISTYPED_ERR_PROB 4 /* Mistyped error problem */ #define CMIP_K_NO_SUCH_OBJ_CLS_ERR 0 /* error no such object class */ #define CMIP_K_NO_SUCH_OBJ_INS_ERR 1 /* error no such object instance */ #define CMIP_K_ACCESS_DENIED_ERR 2 /* error access denied */ #define CMIP_K_SYNC_NOT_SUPPORTED_ERR 3 /* error synch no supported */ #define CMIP_K_INVALID_FILTER_ERR 4 /* error invalid filter */ #define CMIP_K_NO_SUCH_ATTR_ERR 5 /* error no such attribute id */ #define CMIP_K_INVALID_ATTR_VAL_ERR 6 /* error no such attribute value */ #define CMIP_K_GET_LIST_ERR 7 /* error get list error */ #define CMIP_K_SET_LIST_ERR 8 /* error set list error */ #define CMIP_K_NO_SUCH_ACTION_ERR 9 /* error no such action */ #define CMIP_K_PROCESS_FAIL_ERR 10 /* error process failure */ #define CMIP_K_DUPLICAT_OBJ_INS_ERR 11 /* error dupicate managed object instance */ #define CMIP_K_NO_SUCH_REF_OBJ_ERR 12 /* error no such reference object */ #define CMIP_K_NO_SUCH_EVENT_TYPE_ERR 13 /* error no such event type */ #define CMIP_K_NO_SUCH_ARG_ERR 14 /* error no such argument */ #define CMIP_K_INVALID_ARG_VALUE_ERR 15 /* error invalid argument value */ #define CMIP_K_INVALID_SCOPE_ERR 16 /* error invalid scope */ #define CMIP_K_INVALID_INSTANCE_ERR 17 /* error invalid instance */ #define CMIP_K_MISSING_ATTR_VAL_ERR 18 /* error missing attribute value */ #define CMIP_K_CLASS_INS_CONFLICT_ERR 19 /* error Class Instance conflict error */ #define CMIP_K_COMPLEXITY_ERR 20 /* error Complexity limitation error */ #define CMIP_K_MISTYPED_OPERATION_ERR 21 /* error mistyped Operation */ #define CMIP_K_NO_SUCH_INVOKE_ID_ERR 22 /* error No such Invoke ID */ #define CMIP_K_OP_CANCELED_ERR 23 /* error Operation cancelled */ #define CMIP_K_INV_OPERATION_ERR 24 /* error Invalid Operation */ #define CMIP_K_INV_OPERATOR_ERR 25 /* error invalid Operator */ /* for CMISE codes */ /* merge these definitions during clean up */ #define M_PR_GENERAL_PROB CMIP_K_GENERAL_PROB #define M_PR_INVOKE_PROB CMIP_K_INVOKE_PROB #define M_PR_RESULT_PROB CMIP_K_RETURN_RESULT_PROB #define M_PR_ERROR_PROB CMIP_K_RETURN_ERROR_PROB #define M_SE_UNRECOGNIZE CMIP_K_UNRECOGNIZE_PROB #define M_SE_MISTYPED_PDU CMIP_K_MISTYPED_PDU_PROB #define M_SE_BAD_STRUCT CMIP_K_BAD_STRUCT_PROB #define M_SE_DUP_INVOKE CMIP_K_DUP_INVOKE_PROB #define M_SE_UNKNOWN_OP CMIP_K_UNKNOWN_OP_PROB #define M_SE_MISTYPED_ARG CMIP_K_MISTYPED_ARG_PROB #define M_SE_RES_LIMIT CMIP_K_RES_LIMIT_PROB #define M_SE_RELEASING CMIP_K_RELEASING_PROB #define M_SE_UNK_LINK CMIP_K_UNK_LINK_PROB #define M_SE_LINK_EXPEC CMIP_K_LINK_EXPEC_PROB #define M_SE_CHILD_OP CMIP_K_CHILD_OP_PROB #define M_SE_UNK_INVOKE CMIP_K_UNK_INVOKE_PROB #define M_SE_UNEX_RESULT CMIP_K_UNEX_RESULT_PROB #define M_SE_MISTYPED_RES CMIP_K_MISTYPED_RES_PROB #define M_SE_UNK_INVOKE CMIP_K_UNK_INVOKE_PROB #define M_SE_UNEX_ERR_RES CMIP_K_UNEX_ERR_RES_PROB #define M_SE_UNK_ERROR CMIP_K_UNK_ERROR_PROB #define M_SE_UNEX_ERROR CMIP_K_UNEX_ERROR_PROB #define M_SE_MISTYPED_ERR CMIP_K_MISTYPED_ERR_PROB #define M_CD_NO_SUCH_CLASS CMIP_K_NO_SUCH_OBJ_CLS_ERR #define M_CD_NO_SUCH_INST CMIP_K_NO_SUCH_OBJ_INS_ERR #define M_CD_ACCESS_DENIED CMIP_K_ACCESS_DENIED_ERR #define M_CD_SYNC_NOT_SUPP CMIP_K_SYNC_NOT_SUPPORTED_ERR #define M_CD_INV_FILTER CMIP_K_INVALID_FILTER_ERR #define M_CD_NO_SUCH_ATT CMIP_K_NO_SUCH_ATTR_ERR #define M_CD_INV_ATT_VAL CMIP_K_INVALID_ATTR_VAL_ERR #define M_CD_GET_LIST_ERR CMIP_K_GET_LIST_ERR #define M_CD_SET_LIST_ERR CMIP_K_SET_LIST_ERR #define M_CD_NO_SUCH_ACT CMIP_K_NO_SUCH_ACTION_ERR #define M_CD_PROC_FAIL CMIP_K_PROCESS_FAIL_ERR #define M_CD_DUPLIC_OBJ_ID CMIP_K_DUPLICAT_OBJ_INS_ERR #define M_CD_NO_SUCH_REF_OBJ CMIP_K_NO_SUCH_REF_OBJ_ERR #define M_CD_NO_SUCH_EVT_TYP CMIP_K_NO_SUCH_EVENT_TYPE_ERR #define M_CD_NO_SUCH_ARG CMIP_K_NO_SUCH_ARG_ERR #define M_CD_INV_ARG_VAL CMIP_K_INVALID_ARG_VALUE_ERR #define M_CD_INV_SCOPE CMIP_K_INVALID_SCOPE_ERR #define M_CD_INV_OBJ_INST CMIP_K_INVALID_INSTANCE_ERR #define M_CD_MISS_ATT_VAL CMIP_K_MISSING_ATTR_VAL_ERR #define M_CD_CLASS_INST_CONFL CMIP_K_CLASS_INS_CONFLICT_ERR #define M_CD_COMPLX_LIMIT CMIP_K_COMPLEXITY_ERR #define M_CD_MISTYP_OPER CMIP_K_MISTYPED_OPERATION_ERR #define M_CD_NO_SUCH_INVOK_ID CMIP_K_NO_SUCH_INVOKE_ID_ERR #define M_CD_OPER_CANCELD CMIP_K_OP_CANCELED_ERR #define M_CD_INV_OPERTN CMIP_K_INV_OPERATION_ERR #define M_CD_INV_OPERTR CMIP_K_INV_OPERATOR_ERR #define CMIP_K_INVOKE 1 /* CMIP Invoke PDU */ #define CMIP_K_RESULT 2 /* CMIP Return Result PDU */ #define CMIP_K_ERROR 3 /* CMIP Return Error PDU */ #define CMIP_K_REJECT 4 /* CMIP Reject PDU */ #define CMIP_K_ENTITY 5 /* CMIP ENTITY sub code */ #define CMIP_K_FILTER 6 /* CMIP FILTER sub code */ #define CMIP_K_PARAM 7 /* CMIP PARAM sub code */ /* CONSTANT MCC_S_INVALID_PROB EQUALS 6; */ #define CMIP_S_MINIMUM 400 #define CMIP_S_INVALID_PDU 442 #define CMIP_S_VERSION 444 #define CMIP_S_CMIPBUFSIZ 446 #define CMIP_S_CMIPBADCONT 448 #define CMIP_S_CMIPBADOBJID 450 #define CMIP_S_CMIPINSTANCE 452 #define CMIP_S_INVALID_SYNCH 454 #define CMIP_S_MISSING_SYNCH 456 #define CMIP_S_MISSING_SCOPE 458 #define CMIP_S_MISSING_FILTER 460 #define CMIP_S_MISSING_ARG 462 #define CMIP_S_CMIPARGUMENT 464 #define CMIP_S_INV_OBJ_CLASS 500 #define CMIP_S_NO_INSTANCE 502 #define CMIP_S_NO_ACTION_EVENT 504 #define CMIP_S_NO_PARAM 506 #define CMIP_S_NO_FILTER 508 #define CMIP_S_NO_OBJ_CLASS 510 #define CMIP_S_CMIPNEVER 512 #define CMIP_S_MAXIMUM 800 #define CMIP_K_MAX_OBJID_BYTE 100 /* buffer to hold ASN1 encoded object id */ #define CMIP_K_MAX_OBJID_INT 25 /* buffer to hold obj id array, # of long words */ #define CMIP_K_MIN_PRES_CON_DEF 10 /* buffer to hold Pres context definition list array, # of long words */ #define CMIP_K_MAX_ASSOCIATE_SIZE 512 /* buffer to hold associate request data */ #define OSAKIVP_WS_SIZE 2048 #define OSAKIVP_C_BUFF_SIZE 2048 /*************************************************************************** * * * Purpose CMISE event codes * * ------- * ***************************************************************************/ /* from user down to provider */ /* requests */ #define M_E_INITIALIZE_REQ 0x2100 #define M_E_TERMINATE_REQ 0x2201 #define M_E_U_ABORT_REQ 0x2402 #define M_E_EVT_REPORT_REQ 0x2204 #define M_E_GET_REQ 0x2205 #define M_E_SET_REQ 0x2206 #define M_E_ACTION_REQ 0x2207 #define M_E_CREATE_REQ 0x2208 #define M_E_DELETE_REQ 0x2209 #define M_E_CANCEL_GET_REQ 0x220a #define M_E_READY_REQ 0x220c /* responses */ #define M_E_INITIALIZE_ACCEPT 0x220d #define M_E_INITIALIZE_REJECT 0x280e #define M_E_TERMINATE_ACCEPT 0x280f #define M_E_TERMINATE_REJECT 0x2210 #define M_E_EVT_REPORT_RESP 0x2211 #define M_E_GET_RESP 0x2212 #define M_E_SET_RESP 0x2213 #define M_E_ACTION_RESP 0x2214 #define M_E_CREATE_RESP 0x2215 #define M_E_DELETE_RESP 0x2216 #define M_E_CANCEL_GET_RESP 0x2217 #define M_E_ERROR_RESP 0x2218 /* from provider up to user */ /* indications */ #define M_E_INITIALIZE_IND 0x1100 #define M_E_TERMINATE_IND 0x1201 #define M_E_U_ABORT_IND 0x1402 #define M_E_P_ABORT_IND 0x1403 #define M_E_EVT_REPORT_IND 0x1204 #define M_E_GET_IND 0x1205 #define M_E_SET_IND 0x1206 #define M_E_ACTION_IND 0x1207 #define M_E_CREATE_IND 0x1208 #define M_E_DELETE_IND 0x1209 #define M_E_CANCEL_GET_IND 0x120a #define M_E_READY_IND 0x120c /* confirms */ #define M_E_INITIALIZE_ACC 0x120d #define M_E_INITIALIZE_REJ 0x180e #define M_E_TERMINATE_ACC 0x180f #define M_E_TERMINATE_REJ 0x1210 #define M_E_EVT_REPORT_CNF 0x1211 #define M_E_GET_CNF 0x1212 #define M_E_SET_CNF 0x1213 #define M_E_ACTION_CNF 0x1214 #define M_E_CREATE_CNF 0x1215 #define M_E_DELETE_CNF 0x1216 #define M_E_CANCEL_GET_CNF 0x1217 #define M_E_ERROR_CNF 0x1218 #define M_E_REJECT_CNF 0x1219 /*************************************************************************** * * * Purpose CMISE user provider constants * * ------- * ***************************************************************************/ #define P_K_ACSE 3 #define P_K_CMISE 10 #define P_K_CMISE_NMF 20 #define P_K_BER_ASN1 1 /* Network type - match OSAK values */ #define P_K_CONS 2 /* Connection-oriented network */ #define P_K_CLNS 1 /* Connectionless network */ #define P_K_RFC1006 3 /* RFC 1006 */ #define CMIP_K_PROT_VER_1 0x080 /* version1 of protocol version 1 */ #define CMIP_K_PROT_VER_2 0x40 /* version1 of protocol version 2 */ #define CMIP_K_VER_UNUSED_BITS 6 /* function has 2 valid bits hence unused bits are last 6 bits */ /* functional units */ #define M_FU_MUL_OBJ_SEL 0x080 #define M_FU_FILTER 0x40 #define M_FU_MUL_REPLY 0x20 #define M_FU_EXTEND_SVCE 0x10 #define M_FU_CANCEL_GET 0x08 #define CMIP_K_FUNC_UNUSED_BITS 3 /* function has 5 valid bits hence unused bits are last 3 bits */ /* urgency of association release (rq/id) */ #define M_UR_NORMAL 0x00 #define M_UR_URGENT 0x01 #define M_UR_USER_DEF 0x02 #define M_UR_NOT_SPECIF 0x0ff /* diagnostic of association release (rs/cf) */ #define M_LD_NORMAL 0x00 #define M_LD_NOT_FINISH 0x01 #define M_LD_USER_DEF 0x02 #define M_LD_NOT_SPECIF 0x0ff #define P_K_ACCEPT 0x00 #define P_K_USER 0x10 #define P_K_PROVIDER 0x20 #define P_K_BAD_ABSTRACT 0x01 #define P_K_BAD_TRANSFER 0x02 #define P_K_EXCEEDED_DCS 0x03 /* association Refuse result (rs/cf) */ #define M_RR_PERM_REJ 0x01 #define M_RR_TRANS_REJ 0x02 /* association Refuse reason */ /* source is ACSE provider */ #define M_RA_NULL 0x0b #define M_RA_REASON_UNK 0X0c #define M_RA_NO_COMM_VERS 0x0d /* association Refuse reason */ /* source is ACSE service user */ #define M_RU_NULL 0x00 #define M_RU_REASON_UNK 0x01 #define M_RU_ACN_NOT_SUPP 0x02 #define M_RU_BAD_AP_TITL_G 0X03 #define M_RU_BAD_AP_INV_ID_G 0x04 #define M_RU_BAD_AE_QUAL_G 0x05 #define M_RU_BAD_AE_INV_ID_G 0x06 #define M_RU_BAD_AP_TITL_D 0x07 #define M_RU_BAD_AP_INV_ID_D 0x08 #define M_RU_BAD_AE_QUAL_D 0x09 #define M_RU_BAD_AE_INV_ID_D 0x0a /* association Refuse reason */ /* source is Presentation provider */ #define M_RP_USER_REJ 0x0e #define M_RP_LOC_LIMIT_EXEED 0x0f #define M_RP_NO_DEFAULT 0x012 /* Default context not supported */ #define M_RP_USER_DATA_UNREAD 0x13 /* association Refuse reason */ /* source is Session provider */ #define M_RS_NO_SUCH_SSAP 21 /* No such SSAP */ #define M_RS_NO_USER 22 /* SS user not attached to SSAP */ #define M_RS_CONGESTED 23 /* SPM Congested (transient reject) */ #define M_RS_UNSUPPORTED 24 /* Protocol version not supported */ #define M_RS_REFUSED 25 /* Rejection by SPM */ /* association Refuse diagnostic */ /* source is local CMISE provider */ #define M_RC_LOC_CONFIG_PB 0x01 /* Refuse source */ #define M_OA_ACSE_USER 0x00 #define M_OA_ACSE_PROV 0x01 #define M_OA_PRES_PROV 0x02 /* Abort source */ #define M_AS_ACSE_PROV 0x00 #define M_AS_LOC_CMISE_PROV 0x01 #define M_AS_REM_CMISE_PROV 0x02 #define M_AS_CMISE_USER 0x03 /* ** Return Status Codes */ #define CMISE_S_NORMAL 1 /* Normal successfull completion */ #define CMISE_S_NOEVENT 3 /* No event is waiting d*/ #define CMISE_S_INVPAR 2 /* Invalid parameter */ #define CMISE_S_MISPAR 4 /* Missing Required Parameter */ #define CMISE_S_ILLPAR 6 /* Illegal Parameter (unauthorized) */ #define CMISE_S_MEMERR 8 /* Memory Management Error */ #define CMISE_S_IPCERR 10 /* Inter-Process Communication Error */ #define CMISE_S_NOCONID 12 /* No Connection Identifier available */ #define CMISE_S_NOREGID 14 /* No Registration Identifier available */ #define CMISE_S_REGID 16 /* Invalid Registration Identifier */ #define CMISE_S_CONID 18 /* Invalid Connection Identifier */ #define CMISE_S_USRID 20 /* Invalid User Identifier */ #define CMISE_S_CTXNAM 22 /* Invalid Application Context Name */ #define CMISE_S_PRSADD 24 /* Invalid Presentation Address */ #define CMISE_S_APTITL 26 /* Invalid Application Process Title */ #define CMISE_S_AEQUAL 28 /* Invalid Application Entity Qualifier */ #define CMISE_S_USRREF 30 /* Invalid User Reference */ #define CMISE_S_COMREF 32 /* Invalid Common Reference */ #define CMISE_S_ADDREF 34 /* Invalid Additional Reference */ #define CMISE_S_OPEVAL 36 /* Invalid Remote Operation Value */ #define CMISE_S_ACTID 38 /* Invalid Activity Identifier */ #define CMISE_S_DPCTX 40 /* Invalid Default Presentation Context Name */ #define CMISE_S_DTALGT 42 /* Invalid Buffer Data Length */ #define CMISE_S_INVREQ 44 /* Invalid Request */ #define CMISE_S_NODATA 46 /* No Data to Read */ #define CMISE_S_ASNERR 48 /* ASN1 error */ #define CMISE_S_FATAL 50 /* Fatal error */ #define CMISE_S_LAST 100 /* this value should be the last error code This is NEVER returned. used to test the number space */ #define MCC_K_CMIP_SAFETY_MARGIN 20 /* some min reject cmip message size */ /* */ /* Following types are valid for CMIP_INIT_BUILD */ /* */ #define CMIP_K_BLD_DIST_NAME 2 #define CMIP_K_BLD_NON_SPECIFIC 3 #define CMIP_K_BLD_REL_DIST_NAME 4 #define CMIP_K_BLD_ATTR_IDS 10 #define CMIP_K_BLD_ATTRS 11 #define CMIP_K_BLD_SET_ATTRS 15 #define CMIP_K_BLD_ADD_ATTRS 16 #define CMIP_K_BLD_REMOVE_ATTRS 17 #define CMIP_K_BLD_ATTR_ERRS 18 #define CMIP_K_BLD_ACTION_ARG 20 #define CMIP_K_BLD_EVENT_ARG 30 #define CMIP_K_BLD_FILTER 40 #define CMIP_K_BUILD_CTX 1 #define CMIP_K_PARSE_CTX 2 /* */ /* Following is for user data on abort */ /* */ #define CMIP_K_ABORT_SRC_CONT 0 #define CMIP_K_ABORT_USER_CONT 1 /* */ /* Symbols for relational operators needed for Filters */ /* */ #define RELOP_K_EQ 1 /* Relational operator equal to */ #define RELOP_K_GE 2 /* Relational operator greater than or equal to */ #define RELOP_K_LE 3 /* Relational operator less than or equal to */ #define RELOP_K_NE 4 /* Relational operator not equal to */ #define RELOP_K_GT 5 /* Relational operator greater than */ #define RELOP_K_LT 6 /* Relational operator less than */ /* CONSTANT MCC_S_INVALID_PDU EQUALS 4; */ /* CONSTANT MCC_S_INVALID_PROB EQUALS 6; */ #define MCC_S_CMIPVERSION 444 #define MCC_S_CMIPBUFSIZ 446 #define MCC_S_CMIPBADCONT 448 #define MCC_S_CMIPBADOBJID 450 #define MCC_S_CMIPINSTANCE 452 #define MCC_S_CMIPARGUMENT 462 #define MCC_S_CMIPNEVER 800 #define CMISE_CONSTANT_DEFINED 1 #endif #ifndef CMISE_API_DEFINED /****************************************************************************/ /*** MODULE CMISE_API ***/ /* Copyright (c) Digital Equipment Corporation, 1990,1992 */ /* All Rights Reserved. Unpublished rights reserved */ /* under the copyright laws of the United States. */ /* */ /* The software contained on this media is proprietary */ /* to and embodies the confidential technology of */ /* Digital Equipment Corporation. Possession, use, */ /* duplication or dissemination of the software and */ /* media is authorized only pursuant to a valid written */ /* license from Digital Equipment Corporation. */ /* */ /* RESTRICTED RIGHTS LEGEND Use, duplication, or */ /* disclosure by the U.S. Government is subject to */ /* restrictions as set forth in Subparagraph (c)(1)(ii) */ /* of DFARS 252.227-7013, or in FAR 52.227-19, as */ /* applicable. */ /* */ /****************************************************************************/ struct ASN_R_ILV_CONTEXT { short int ilv_w_block [60]; } ; typedef struct _ASN_T_Descriptor { unsigned short int mcc_w_maxstrlen; unsigned char mcc_b_dtype; unsigned char mcc_b_class; unsigned char *mcc_a_pointer; unsigned short int mcc_w_curlen; unsigned char mcc_b_flags; unsigned char mcc_b_ver; unsigned long int mcc_l_id; unsigned long int mcc_l_dt; struct _ASN_T_Descriptor *mcc_a_link; } ASN_T_Descriptor; struct cmip_context { /* cmip_context */ unsigned char bld_type; /* build_type */ unsigned char flag; /* build/parse flag */ unsigned char finish; /* done indicator */ unsigned char attr_flag; /* true if attr tag id is needed */ ASN_T_Descriptor mcc_desc; /* mcc descriptor */ struct ASN_R_ILV_CONTEXT asn_ctx; /* asn context */ } ; struct cmise_port { /* cmise_port */ unsigned char *port_ptr; /* osak port */ unsigned char *pb_ptr; /* osak param block */ unsigned char event_osak; /* osak event */ unsigned char event_cmise; /* cmise event */ unsigned short int more_on_hand; /* more data on hand */ long int cmise_stat[5]; /* status */ } ; struct cmise_port_list { /* cmise_port_list */ struct cmise_port *cmise_port_id; /* CMISE port */ unsigned long int event_waiting; /* CMISE event waiting flag */ } ; struct cmise_buffer_info { /* cmise_buffer_info */ unsigned char *buff_pointer; /* Ptr to the buffer */ unsigned long int buff_len; /* allocated buffer length */ unsigned char *cmip_pointer; /* Ptr to cmip buffer */ unsigned long int cmip_len; /* cmip msg length */ } ; struct cmise_oid { /* cmise_oid */ unsigned short int cmise_w_max_index; /* allocated max index */ unsigned short int cmise_w_cur_index; /* current index */ unsigned long int *cmise_a_array_ptr; /* Ptr to an unsigned long array */ } ; typedef struct cmise_oid cmise_pres_context; typedef struct cmise_oid cmise_abort_context; struct cmise_buffer { /* cmise_buffer */ unsigned short int cmise_w_alloc_len; /* allocated buffer length */ unsigned short int cmise_w_used_len; /* used length */ unsigned char *cmise_a_pointer; /* Ptr to name buffer */ } ; typedef struct cmise_buffer cmise_instance; typedef struct cmise_buffer cmise_time; typedef struct cmise_buffer cmise_access; typedef struct cmise_buffer cmise_event_info; typedef struct cmise_buffer cmise_event_reply_info; typedef struct cmise_buffer cmise_attr_id_list; typedef struct cmise_buffer cmise_filter; typedef struct cmise_buffer cmise_attr_list; typedef struct cmise_buffer cmise_set_list; typedef struct cmise_buffer cmise_action_info; typedef struct cmise_buffer cmise_action_reply_info; typedef unsigned long int cmise_flag; typedef unsigned long int cmise_scope; typedef unsigned long int cmise_synch; #define CMISE_API_DEFINED 1 #endif #ifndef CMISE_FUNCTIONS_DEFINED /****************************************************************************/ /*** MODULE CMISE_FUNCTIONS ***/ /* Copyright (c) Digital Equipment Corporation, 1990,1992 */ /* All Rights Reserved. Unpublished rights reserved */ /* under the copyright laws of the United States. */ /* */ /* The software contained on this media is proprietary */ /* to and embodies the confidential technology of */ /* Digital Equipment Corporation. Possession, use, */ /* duplication or dissemination of the software and */ /* media is authorized only pursuant to a valid written */ /* license from Digital Equipment Corporation. */ /* */ /* RESTRICTED RIGHTS LEGEND Use, duplication, or */ /* disclosure by the U.S. Government is subject to */ /* restrictions as set forth in Subparagraph (c)(1)(ii) */ /* of DFARS 252.227-7013, or in FAR 52.227-19, as */ /* applicable. */ /* */ /****************************************************************************/ extern int M_Get_Req ( struct cmise_port *p_connection_id, unsigned long int *p_invoke_id, cmise_flag *p_flags, struct cmise_oid *p_object_class_oid, struct cmise_buffer *p_object_instance_desc, struct cmise_buffer *p_access_control_desc, cmise_scope *p_scope, struct cmise_buffer *p_filter_desc, struct cmise_buffer *p_attribute_list_desc ); extern int M_Get_Cnf (struct cmise_port *p_connection_id, unsigned long int *p_invoke_id, cmise_flag *p_flags, unsigned long int *p_link_id, struct cmise_oid *p_object_class_oid, struct cmise_buffer *p_object_instance_desc, struct cmise_buffer *p_time_desc, struct cmise_buffer *p_attr_list_desc ); extern int M_Get_Ind ( struct cmise_port *p_connection_id, unsigned long int *p_invoke_id, cmise_flag *p_flags, struct cmise_oid *p_object_class_oid, struct cmise_buffer *p_object_instance_desc, struct cmise_buffer *p_access_control_desc, cmise_scope *p_scope, struct cmise_buffer *p_filter_desc, struct cmise_buffer *p_attribute_list_desc ); extern int M_Get_Resp (struct cmise_port *p_connection_id, unsigned long int *p_invoke_id, cmise_flag *p_flags, unsigned long int *p_link_id, struct cmise_oid *p_object_class_oid, struct cmise_buffer *p_object_instance_desc, struct cmise_buffer *p_time_desc, struct cmise_buffer *p_attr_list_desc ); extern int M_Set_Req ( struct cmise_port *p_connection_id, unsigned long int *p_invoke_id, cmise_flag *p_flags, struct cmise_oid *p_object_class_oid, struct cmise_buffer *p_object_instance_desc, struct cmise_buffer *p_access_control_desc, cmise_scope *p_scope, struct cmise_buffer *p_filter_desc, struct cmise_buffer *p_attribute_list_desc ); extern int M_Set_Cnf (struct cmise_port *p_connection_id, unsigned long int *p_invoke_id, cmise_flag *p_flags, unsigned long int *p_link_id, struct cmise_oid *p_object_class_oid, struct cmise_buffer *p_object_instance_desc, struct cmise_buffer *p_time_desc, struct cmise_buffer *p_attr_list_desc ); extern int M_Set_Ind ( struct cmise_port *p_connection_id, unsigned long int *p_invoke_id, cmise_flag *p_flags, struct cmise_oid *p_object_class_oid, struct cmise_buffer *p_object_instance_desc, struct cmise_buffer *p_access_control_desc, cmise_scope *p_scope, struct cmise_buffer *p_filter_desc, struct cmise_buffer *p_attribute_list_desc ); extern int M_Set_Resp (struct cmise_port *p_connection_id, unsigned long int *p_invoke_id, cmise_flag *p_flags, unsigned long int *p_link_id, struct cmise_oid *p_object_class_oid, struct cmise_buffer *p_object_instance_desc, struct cmise_buffer *p_time_desc, struct cmise_buffer *p_attr_list_desc ); extern int M_Action_Req (struct cmise_port *p_connection_id, unsigned long int *p_invoke_id, cmise_flag *p_flags, struct cmise_oid *p_object_class_oid, struct cmise_buffer *p_object_instance_desc, struct cmise_buffer *p_access_control_desc, cmise_scope *p_scope, struct cmise_buffer *p_filter_desc, struct cmise_oid *p_action_oid, struct cmise_buffer *p_action_info_desc); extern int M_Action_Cnf (struct cmise_port *p_connection_id, unsigned long int *p_invoke_id, cmise_flag *p_flags, unsigned long int *p_link_id, struct cmise_oid *p_object_class_oid, struct cmise_buffer *p_object_instance_desc, struct cmise_buffer *p_time_desc, struct cmise_oid *p_action_oid, struct cmise_buffer *p_action_info_desc ); extern int M_Action_Ind (struct cmise_port *p_connection_id, unsigned long int *p_invoke_id, cmise_flag *p_flags, struct cmise_oid *p_object_class_oid, struct cmise_buffer *p_object_instance_desc, struct cmise_buffer *p_access_control_desc, cmise_scope *p_scope, struct cmise_buffer *p_filter_desc, struct cmise_oid *p_action_oid, struct cmise_buffer *p_action_info_desc); extern int M_Action_Resp (struct cmise_port *p_connection_id, unsigned long int *p_invoke_id, cmise_flag *p_flags, unsigned long int *p_link_id, struct cmise_oid *p_object_class_oid, struct cmise_buffer *p_object_instance_desc, struct cmise_buffer *p_time_desc, struct cmise_oid *p_action_oid, struct cmise_buffer *p_action_info_desc ); extern int M_Create_Req (struct cmise_port *p_connection_id, unsigned long int *p_invoke_id, cmise_flag *p_flags, struct cmise_oid *p_object_class_oid, struct cmise_buffer *p_object_instance_desc, struct cmise_buffer *p_access_control_desc, struct cmise_buffer *p_ref_object_desc, struct cmise_buffer *p_attribute_list_desc ); extern int M_Create_Cnf (struct cmise_port *p_connection_id, unsigned long int *p_invoke_id, cmise_flag *p_flags, struct cmise_oid *p_object_class_oid, struct cmise_buffer *p_object_instance_desc, struct cmise_buffer *p_time_desc, struct cmise_buffer *p_attr_list_desc ); extern int M_Create_Ind (struct cmise_port *p_connection_id, unsigned long int *p_invoke_id, cmise_flag *p_flags, struct cmise_oid *p_object_class_oid, struct cmise_buffer *p_object_instance_desc, struct cmise_buffer *p_access_control_desc, struct cmise_buffer *p_ref_object_desc, struct cmise_buffer *p_attribute_list_desc ); extern int M_Create_Resp (struct cmise_port *p_connection_id, unsigned long int *p_invoke_id, cmise_flag *p_flags, struct cmise_oid *p_object_class_oid, struct cmise_buffer *p_object_instance_desc, struct cmise_buffer *p_time_desc, struct cmise_buffer *p_attr_list_desc ); extern int M_Delete_Req (struct cmise_port *p_connection_id, unsigned long int *p_invoke_id, cmise_flag *p_flags, struct cmise_oid *p_object_class_oid, struct cmise_buffer *p_object_instance_desc, struct cmise_buffer *p_access_control_desc, cmise_scope *p_scope, struct cmise_buffer *p_filter_desc ); extern int M_Delete_Cnf (struct cmise_port *p_connection_id, unsigned long int *p_invoke_id, cmise_flag *p_flags, unsigned long int *p_link_id, struct cmise_oid *p_object_class_oid, struct cmise_buffer *p_object_instance_desc, struct cmise_buffer *p_time_desc ); extern int M_Delete_Ind (struct cmise_port *p_connection_id, unsigned long int *p_invoke_id, cmise_flag *p_flags, struct cmise_oid *p_object_class_oid, struct cmise_buffer *p_object_instance_desc, struct cmise_buffer *p_access_control_desc, cmise_scope *p_scope, struct cmise_buffer *p_filter_desc ); extern int M_Delete_Resp (struct cmise_port *p_connection_id, unsigned long int *p_invoke_id, cmise_flag *p_flags, unsigned long int *p_link_id, struct cmise_oid *p_object_class_oid, struct cmise_buffer *p_object_instance_desc, struct cmise_buffer *p_time_desc ); extern int M_Cancel_Get_Req (struct cmise_port *p_connection_id, unsigned long int *p_invoke_id, unsigned long int *p_cancel_id ); extern int M_Cancel_Get_Cnf (struct cmise_port *p_connection_id, unsigned long int *p_invoke_id ); extern int M_Cancel_Get_Ind (struct cmise_port *p_connection_id, unsigned long int *p_invoke_id, unsigned long int *p_cancel_id ); extern int M_Cancel_Get_Resp (struct cmise_port *p_connection_id, unsigned long int *p_invoke_id ); extern int M_Event_Req (struct cmise_port *p_connection_id, unsigned long int *p_invoke_id, cmise_flag *p_flags, struct cmise_oid *p_object_class_oid, struct cmise_buffer *p_object_instance_desc, struct cmise_buffer *p_time_desc, struct cmise_oid *p_event_oid, struct cmise_buffer *p_event_info_desc ); extern int M_Event_Cnf (struct cmise_port *p_connection_id, unsigned long int *p_invoke_id, cmise_flag *p_flags, struct cmise_oid *p_object_class_oid, struct cmise_buffer *p_object_instance_desc, struct cmise_buffer *p_time_desc, struct cmise_oid *p_event_oid, struct cmise_buffer *p_event_info_desc ); extern int M_Event_Ind (struct cmise_port *p_connection_id, unsigned long int *p_invoke_id, cmise_flag *p_flags, struct cmise_oid *p_object_class_oid, struct cmise_buffer *p_object_instance_desc, struct cmise_buffer *p_time_desc, struct cmise_oid *p_event_oid, struct cmise_buffer *p_event_info_desc ); extern int M_Event_Resp (struct cmise_port *p_connection_id, unsigned long int *p_invoke_id, cmise_flag *p_flags, unsigned long int *p_link_id, struct cmise_oid *p_object_class_oid, struct cmise_buffer *p_object_instance_desc, struct cmise_buffer *p_time_desc, struct cmise_oid *p_event_oid, struct cmise_buffer *p_event_info_desc ); extern int M_Error_Resp (struct cmise_port *p_connection_id, unsigned long int *p_invoke_id, cmise_flag *p_flags, unsigned long int *p_link_id, unsigned long int *p_event_code, unsigned long int *p_cmise_error, cmise_scope *p_scope_cancelgetid, struct cmise_oid *p_object_class_oid, struct cmise_buffer *p_object_instance_desc, struct cmise_oid *p_action_event_oid, struct cmise_buffer *p_time_desc, struct cmise_buffer *p_error_param_desc ); extern int M_Error_Cnf (struct cmise_port *p_connection_id, unsigned long int *p_invoke_id, cmise_flag *p_flags, unsigned long int *p_link_id, unsigned long int *p_event_code, unsigned long int *p_cmise_error, cmise_scope *p_scope_cancelgetid, struct cmise_oid *p_object_class_oid, struct cmise_buffer *p_object_instance_desc, struct cmise_oid *p_action_event_oid, struct cmise_buffer *p_time_desc, struct cmise_buffer *p_error_param_desc ); extern int M_Initialize_Req (struct cmise_port *p_connect_id, struct cmise_buffer *p_called_psel, struct cmise_buffer *p_called_ssel, struct cmise_buffer *p_called_tsel, struct cmise_buffer *p_called_nsap, struct cmise_buffer *p_calling_psel, /* optional arg */ struct cmise_buffer *p_calling_ssel, /* optional arg */ struct cmise_buffer *p_calling_tsel, /* optional arg */ struct cmise_buffer *p_calling_nsap, /* optional arg */ long int *p_calling_apiid, /* optional arg */ long int *p_calling_aeiid, /* optional arg */ long int *p_called_apiid, /* optional arg */ long int *p_called_aeiid, /* optional arg */ cmise_pres_context *p_pres_cont_def_list, struct cmise_buffer *p_sconnect_id, /* optional arg */ struct cmise_oid *p_appl_cont_name, struct cmise_oid *p_calling_aptitle, /* optional arg */ long int *p_calling_aequal, /* optional arg */ struct cmise_oid *p_called_aptitle, /* optional arg */ long int *p_called_aequal, /* optional arg */ long int *p_nsap_type, /* optional arg */ struct cmise_buffer *p_template, /* optional arg */ unsigned char *p_protocol_ver, unsigned char *p_cmise_fu, struct cmise_buffer *p_access_control, /* optional arg */ struct cmise_buffer *p_user_info ); /* optional arg */ extern int M_Initialize_Ind (struct cmise_port *p_connect_id, struct cmise_buffer *p_called_psel, struct cmise_buffer *p_called_ssel, struct cmise_buffer *p_called_tsel, struct cmise_buffer *p_called_nsap, struct cmise_buffer *p_calling_psel, /* optional arg */ struct cmise_buffer *p_calling_ssel, /* optional arg */ struct cmise_buffer *p_calling_tsel, /* optional arg */ struct cmise_buffer *p_calling_nsap, /* optional arg */ long int *p_calling_apiid, /* optional arg */ long int *p_calling_aeiid, /* optional arg */ long int *p_called_apiid, /* optional arg */ long int *p_called_aeiid, /* optional arg */ cmise_pres_context *p_pres_cont_def_list, struct cmise_buffer *p_sconnect_id, /* optional arg */ struct cmise_oid *p_appl_cont_name, struct cmise_oid *p_calling_aptitle, /* optional arg */ long int *p_calling_aequal, /* optional arg */ struct cmise_oid *p_called_aptitle, /* optional arg */ long int *p_called_aequal, /* optional arg */ long int *p_nsap_type, /* optional arg */ unsigned char *p_protocol_ver, unsigned char *p_cmise_fu, struct cmise_buffer *p_access_control, /* optional arg */ struct cmise_buffer *p_user_info ); /* optional arg */ extern int M_Initialize_Accept (struct cmise_port *p_connect_id, long int *p_responding_apiid, /* optional arg */ long int *p_responding_aeiid, /* optional arg */ cmise_pres_context *p_pres_cont_res_list, struct cmise_buffer *p_sconnect_id, /* optional arg */ struct cmise_oid *p_appl_cont_name, struct cmise_oid *p_responding_aptitle, /* optional arg */ long int *p_responding_aequal, /* optional arg */ unsigned char *p_protocol_ver, unsigned char *p_cmise_fu, struct cmise_buffer *p_access_control, /* optional arg */ struct cmise_buffer *p_user_info); /* optional arg */ extern int M_Initialize_Acc (struct cmise_port *p_connect_id, long int *p_responding_apiid, /* optional arg */ long int *p_responding_aeiid, /* optional arg */ cmise_pres_context *p_pres_cont_res_list, struct cmise_buffer *p_sconnect_id, /* optional arg */ struct cmise_oid *p_appl_cont_name, struct cmise_oid *p_responding_aptitle, /* optional arg */ long int *p_responding_aequal, /* optional arg */ unsigned char *p_protocol_ver, unsigned char *p_cmise_fu, struct cmise_buffer *p_access_control, /* optional arg */ struct cmise_buffer *p_user_info); /* optional arg */ extern int M_Initialize_Reject (struct cmise_port *p_connect_id, long int *p_responding_apiid, /* optional arg */ long int *p_responding_aeiid, /* optional arg */ cmise_pres_context *p_pres_cont_res_list, struct cmise_buffer *p_sconnect_id, /* optional arg */ struct cmise_oid *p_appl_cont_name, struct cmise_oid *p_responding_aptitle, /* optional arg */ long int *p_responding_aequal, /* optional arg */ long int *p_refuse_reason, unsigned char *p_protocol_ver, unsigned char *p_cmise_fu, struct cmise_buffer *p_access_control, /* optional arg */ struct cmise_buffer *p_user_info); /* optional arg */ extern int M_Initialize_Rej (struct cmise_port *p_connect_id, long int *p_responding_apiid, /* optional arg */ long int *p_responding_aeiid, /* optional arg */ cmise_pres_context *p_pres_cont_res_list, struct cmise_buffer *p_sconnect_id, /* optional arg */ struct cmise_oid *p_appl_cont_name, struct cmise_oid *p_responding_aptitle, /* optional arg */ long int *p_responding_aequal, /* optional arg */ long int *p_refuse_reason, unsigned char *p_protocol_ver, unsigned char *p_cmise_fu, struct cmise_buffer *p_access_control, /* optional arg */ struct cmise_buffer *p_user_info); /* optional arg */ extern int M_Terminate_Req (struct cmise_port *p_connect_id, unsigned char *p_urgency, struct cmise_buffer *p_user_info); extern int M_Terminate_Ind (struct cmise_port *p_connect_id, unsigned char *p_urgency, struct cmise_buffer *p_user_info); extern int M_Terminate_Accept (struct cmise_port *p_connect_id, unsigned long int *p_user_reason, struct cmise_buffer *p_user_info); extern int M_Terminate_Acc (struct cmise_port *p_connect_id, unsigned long int *p_user_reason, struct cmise_buffer *p_user_info); extern int M_Terminate_Reject (struct cmise_port *p_connect_id, unsigned long int *p_user_reason, struct cmise_buffer *p_user_info); extern int M_Terminate_Rej (struct cmise_port *p_connect_id, unsigned long int *p_user_reason, struct cmise_buffer *p_user_info); extern int M_U_Abort_Req ( struct cmise_port *p_connect_id, cmise_abort_context *p_abort_cont_id_list, struct cmise_buffer *p_user_info); extern int M_U_Abort_Ind ( struct cmise_port *p_connect_id, cmise_abort_context *p_abort_cont_id_list, struct cmise_buffer *p_user_info); extern int M_P_Abort_Ind ( struct cmise_port *p_connect_id, unsigned char *p_source_reason); extern int M_Reject_Resp ( struct cmise_port *p_connection_id, unsigned long int *p_invoke_id, /* optional arg */ unsigned long int *p_problem_type, unsigned long int *p_problem_number); extern int M_Reject_Cnf ( struct cmise_port *p_connection_id, unsigned long int *p_invoke_id, /* optional arg */ cmise_flag *p_flag, unsigned long int *p_problem_type, unsigned long int *p_problem_number); #define CMISE_FUNCTIONS_DEFINED 1 #endif