/usr/include/osp/ospmsgattr.h is in libosptk-dev 4.13.0-1build1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 | /**************************************************************************
*** COPYRIGHT (c) 2002 by TransNexus, Inc. ***
*** ***
*** This software is property of TransNexus, Inc. ***
*** This software is freely available under license from TransNexus. ***
*** The license terms and conditions for free use of this software by ***
*** third parties are defined in the OSP Toolkit Software License ***
*** Agreement (LICENSE.txt). Any use of this software by third ***
*** parties, which does not comply with the terms and conditions of the ***
*** OSP Toolkit Software License Agreement is prohibited without ***
*** the prior, express, written consent of TransNexus, Inc. ***
*** ***
*** Thank you for using the OSP ToolKit(TM). Please report any bugs, ***
*** suggestions or feedback to support@transnexus.com ***
*** ***
**************************************************************************/
/* ospmsgattr.h - Definitions for OSP message attributes. */
#ifndef _OSPMSGATTR_H
#define _OSPMSGATTR_H
#include "osp/ospmsgdesc.h"
#include "osp/ospmsgpart.h"
/* Attributes defined by OSP */
typedef enum {
OSPC_MATTR_UNKNOWN = OSPC_MPART_UNKNOWN,
OSPC_MATTR_UNDEFINED,
/* Message attribute start */
OSPC_MATTR_START = OSPC_MPART_START,
OSPC_MATTR_MESSAGEID = OSPC_MATTR_START,
OSPC_MATTR_COMPONENTID,
OSPC_MATTR_RANDOM,
OSPC_MATTR_CRITICAL,
OSPC_MATTR_ENCODING,
OSPC_MATTR_TYPE,
OSPC_MATTR_DIR,
OSPC_MATTR_VERSION,
OSPC_MATTR_INDEX,
OSPC_MATTR_SERVICE,
OSPC_MATTR_REPORTER,
/* Number of message attribtes */
OSPC_MATTR_NUMBER
} OSPE_MSG_ATTR;
#define OSPC_MAX_ATTR 4
#define OSPC_MAX_INDEX 32
/* Signaling protocol types */
typedef enum {
OSPC_PROTTYPE_UNKNOWN = OSPC_MPART_UNKNOWN,
OSPC_PROTTYPE_UNDEFINED,
/* Message attribute start */
OSPC_PROTTYPE_START = OSPC_MPART_START,
OSPC_PROTTYPE_SOURCE = OSPC_PROTTYPE_START,
OSPC_PROTTYPE_DESTINATION,
OSPC_PROTTYPE_NA,
/* Number of protocol types */
OSPC_PROTTYPE_NUMBER
} OSPE_PROTOCOL_TYPE;
#define OSPM_VALIDATE_PROTTYPE(t) (((t>=OSPC_PROTTYPE_START)&&(t<OSPC_PROTTYPE_NUMBER)))
/* Codec types */
typedef enum {
OSPC_CODEC_UNKNOWN = OSPC_MPART_UNKNOWN,
OSPC_CODEC_UNDEFINED,
/* Message attribute start */
OSPC_CODEC_START = OSPC_MPART_START,
OSPC_CODEC_SOURCE = OSPC_CODEC_START,
OSPC_CODEC_DESTINATION,
/* Number of codec types */
OSPC_CODEC_NUMBER
} OSPE_CODEC_TYPE;
/* Session ID types */
typedef enum {
OSPC_SESSIONID_UNKNOWN = OSPC_MPART_UNKNOWN,
OSPC_SESSIONID_UNDEFINED,
/* Message attribute start */
OSPC_SESSIONID_START = OSPC_MPART_START,
OSPC_SESSIONID_SOURCE = OSPC_SESSIONID_START,
OSPC_SESSIONID_DESTINATION,
OSPC_SESSIONID_CORRELATION,
OSPC_SESSIONID_LOCAL,
OSPC_SESSIONID_REMOTE,
/* Number of session ID types */
OSPC_SESSIONID_NUMBER
} OSPE_SESSION_ID;
typedef enum {
OSPC_SERVICE_UNKNOWN = OSPC_MPART_UNKNOWN,
OSPC_SERVICE_UNDEFINED,
/* Message attribute start */
OSPC_SERVICE_START = OSPC_MPART_START,
OSPC_SERVICE_VOICE = OSPC_SERVICE_START,
OSPC_SERVICE_VIDEO,
OSPC_SERVICE_DATA,
OSPC_SERVICE_NPQUERY,
OSPC_SERVICE_CNAMQUERY,
/* Number of service types */
OSPC_SERVICE_NUMBER
} OSPE_SERVICE;
typedef enum {
OSPC_RELEASE_UNKNOWN = OSPC_MPART_UNKNOWN,
OSPC_RELEASE_UNDEFINED,
/* Message attribute start */
OSPC_RELEASE_START = OSPC_MPART_START,
OSPC_RELEASE_SOURCE = OSPC_SERVICE_START,
OSPC_RELEASE_DESTINATION,
OSPC_RELEASE_INTERNAL,
OSPC_RELEASE_EXTERNAL,
/* Number of release party types */
OSPC_RELEASE_NUMBER
} OSPE_RELEASE;
/* externally declared global variables */
extern const OSPT_MSG_DESC OSPV_MATTR_DESCS[];
extern const OSPT_MSG_DESC OSPV_STYPE_DESCS[];
/* Function Prototypes */
OSPE_MSG_ATTR OSPPMsgAttrGetPart(const char *);
const char *OSPPMsgAttrGetName(OSPE_MSG_ATTR);
OSPE_SERVICE OSPPServiceGetPart(const char *);
const char *OSPPServiceGetName(OSPE_SERVICE);
const char *OSPPReleaseGetName(OSPE_RELEASE);
#endif /* _OSPMSGATTR_H */
|