/usr/include/openh323/t38.h is in libh323plus-dev 1.24.0~dfsg2-1.3.
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 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 | //
// t38.h
//
// Code automatically generated by asnparse.
//
#if ! H323_DISABLE_T38
#ifndef __T38_H
#define __T38_H
#ifdef P_USE_PRAGMA
#pragma interface
#endif
#include <ptclib/asner.h>
//
// Type-of-msg
//
class T38_Type_of_msg_t30_indicator;
class T38_Type_of_msg_data;
class T38_Type_of_msg : public PASN_Choice
{
#ifndef PASN_LEANANDMEAN
PCLASSINFO(T38_Type_of_msg, PASN_Choice);
#endif
public:
T38_Type_of_msg(unsigned tag = 0, TagClass tagClass = UniversalTagClass);
enum Choices {
e_t30_indicator,
e_data
};
#if defined(__GNUC__) && __GNUC__ <= 2 && __GNUC_MINOR__ < 9
operator T38_Type_of_msg_t30_indicator &() const;
#else
operator T38_Type_of_msg_t30_indicator &();
operator const T38_Type_of_msg_t30_indicator &() const;
#endif
#if defined(__GNUC__) && __GNUC__ <= 2 && __GNUC_MINOR__ < 9
operator T38_Type_of_msg_data &() const;
#else
operator T38_Type_of_msg_data &();
operator const T38_Type_of_msg_data &() const;
#endif
PBoolean CreateObject();
PObject * Clone() const;
};
//
// Data-Field
//
class T38_Data_Field_subtype;
class T38_Data_Field : public PASN_Array
{
#ifndef PASN_LEANANDMEAN
PCLASSINFO(T38_Data_Field, PASN_Array);
#endif
public:
T38_Data_Field(unsigned tag = UniversalSequence, TagClass tagClass = UniversalTagClass);
PASN_Object * CreateObject() const;
T38_Data_Field_subtype & operator[](PINDEX i) const;
PObject * Clone() const;
};
//
// PreCorrigendum-Data-Field
//
class T38_PreCorrigendum_Data_Field_subtype;
class T38_PreCorrigendum_Data_Field : public PASN_Array
{
#ifndef PASN_LEANANDMEAN
PCLASSINFO(T38_PreCorrigendum_Data_Field, PASN_Array);
#endif
public:
T38_PreCorrigendum_Data_Field(unsigned tag = UniversalSequence, TagClass tagClass = UniversalTagClass);
PASN_Object * CreateObject() const;
T38_PreCorrigendum_Data_Field_subtype & operator[](PINDEX i) const;
PObject * Clone() const;
};
//
// Type-of-msg_t30-indicator
//
class T38_Type_of_msg_t30_indicator : public PASN_Enumeration
{
#ifndef PASN_LEANANDMEAN
PCLASSINFO(T38_Type_of_msg_t30_indicator, PASN_Enumeration);
#endif
public:
T38_Type_of_msg_t30_indicator(unsigned tag = UniversalEnumeration, TagClass tagClass = UniversalTagClass);
enum Enumerations {
e_no_signal,
e_cng,
e_ced,
e_v21_preamble,
e_v27_2400_training,
e_v27_4800_training,
e_v29_7200_training,
e_v29_9600_training,
e_v17_7200_short_training,
e_v17_7200_long_training,
e_v17_9600_short_training,
e_v17_9600_long_training,
e_v17_12000_short_training,
e_v17_12000_long_training,
e_v17_14400_short_training,
e_v17_14400_long_training
};
T38_Type_of_msg_t30_indicator & operator=(unsigned v);
PObject * Clone() const;
};
//
// Type-of-msg_data
//
class T38_Type_of_msg_data : public PASN_Enumeration
{
#ifndef PASN_LEANANDMEAN
PCLASSINFO(T38_Type_of_msg_data, PASN_Enumeration);
#endif
public:
T38_Type_of_msg_data(unsigned tag = UniversalEnumeration, TagClass tagClass = UniversalTagClass);
enum Enumerations {
e_v21,
e_v27_2400,
e_v27_4800,
e_v29_7200,
e_v29_9600,
e_v17_7200,
e_v17_9600,
e_v17_12000,
e_v17_14400
};
T38_Type_of_msg_data & operator=(unsigned v);
PObject * Clone() const;
};
//
// UDPTLPacket_error-recovery
//
class T38_UDPTLPacket_error_recovery_secondary_ifp_packets;
class T38_UDPTLPacket_error_recovery_fec_info;
class T38_UDPTLPacket_error_recovery : public PASN_Choice
{
#ifndef PASN_LEANANDMEAN
PCLASSINFO(T38_UDPTLPacket_error_recovery, PASN_Choice);
#endif
public:
T38_UDPTLPacket_error_recovery(unsigned tag = 0, TagClass tagClass = UniversalTagClass);
enum Choices {
e_secondary_ifp_packets,
e_fec_info
};
#if defined(__GNUC__) && __GNUC__ <= 2 && __GNUC_MINOR__ < 9
operator T38_UDPTLPacket_error_recovery_secondary_ifp_packets &() const;
#else
operator T38_UDPTLPacket_error_recovery_secondary_ifp_packets &();
operator const T38_UDPTLPacket_error_recovery_secondary_ifp_packets &() const;
#endif
#if defined(__GNUC__) && __GNUC__ <= 2 && __GNUC_MINOR__ < 9
operator T38_UDPTLPacket_error_recovery_fec_info &() const;
#else
operator T38_UDPTLPacket_error_recovery_fec_info &();
operator const T38_UDPTLPacket_error_recovery_fec_info &() const;
#endif
PBoolean CreateObject();
PObject * Clone() const;
};
//
// Data-Field_subtype_field-type
//
class T38_Data_Field_subtype_field_type : public PASN_Enumeration
{
#ifndef PASN_LEANANDMEAN
PCLASSINFO(T38_Data_Field_subtype_field_type, PASN_Enumeration);
#endif
public:
T38_Data_Field_subtype_field_type(unsigned tag = UniversalEnumeration, TagClass tagClass = UniversalTagClass);
enum Enumerations {
e_hdlc_data,
e_hdlc_sig_end,
e_hdlc_fcs_OK,
e_hdlc_fcs_BAD,
e_hdlc_fcs_OK_sig_end,
e_hdlc_fcs_BAD_sig_end,
e_t4_non_ecm_data,
e_t4_non_ecm_sig_end
};
T38_Data_Field_subtype_field_type & operator=(unsigned v);
PObject * Clone() const;
};
//
// PreCorrigendum-Data-Field_subtype_field-type
//
class T38_PreCorrigendum_Data_Field_subtype_field_type : public PASN_Enumeration
{
#ifndef PASN_LEANANDMEAN
PCLASSINFO(T38_PreCorrigendum_Data_Field_subtype_field_type, PASN_Enumeration);
#endif
public:
T38_PreCorrigendum_Data_Field_subtype_field_type(unsigned tag = UniversalEnumeration, TagClass tagClass = UniversalTagClass);
enum Enumerations {
e_hdlc_data,
e_hdlc_sig_end,
e_hdlc_fcs_OK,
e_hdlc_fcs_BAD,
e_hdlc_fcs_OK_sig_end,
e_hdlc_fcs_BAD_sig_end,
e_t4_non_ecm_data,
e_t4_non_ecm_sig_end
};
T38_PreCorrigendum_Data_Field_subtype_field_type & operator=(unsigned v);
PObject * Clone() const;
};
//
// UDPTLPacket_error-recovery_secondary-ifp-packets
//
class T38_UDPTLPacket_error_recovery_secondary_ifp_packets_subtype;
class T38_UDPTLPacket_error_recovery_secondary_ifp_packets : public PASN_Array
{
#ifndef PASN_LEANANDMEAN
PCLASSINFO(T38_UDPTLPacket_error_recovery_secondary_ifp_packets, PASN_Array);
#endif
public:
T38_UDPTLPacket_error_recovery_secondary_ifp_packets(unsigned tag = UniversalSequence, TagClass tagClass = UniversalTagClass);
PASN_Object * CreateObject() const;
T38_UDPTLPacket_error_recovery_secondary_ifp_packets_subtype & operator[](PINDEX i) const;
PObject * Clone() const;
};
//
// ArrayOf_PASN_OctetString
//
class T38_ArrayOf_PASN_OctetString : public PASN_Array
{
#ifndef PASN_LEANANDMEAN
PCLASSINFO(T38_ArrayOf_PASN_OctetString, PASN_Array);
#endif
public:
T38_ArrayOf_PASN_OctetString(unsigned tag = UniversalSequence, TagClass tagClass = UniversalTagClass);
PASN_Object * CreateObject() const;
PASN_OctetString & operator[](PINDEX i) const;
PObject * Clone() const;
};
//
// IFPPacket
//
class T38_IFPPacket : public PASN_Sequence
{
#ifndef PASN_LEANANDMEAN
PCLASSINFO(T38_IFPPacket, PASN_Sequence);
#endif
public:
T38_IFPPacket(unsigned tag = UniversalSequence, TagClass tagClass = UniversalTagClass);
enum OptionalFields {
e_data_field
};
T38_Type_of_msg m_type_of_msg;
T38_Data_Field m_data_field;
PINDEX GetDataLength() const;
PBoolean Decode(PASN_Stream & strm);
void Encode(PASN_Stream & strm) const;
#ifndef PASN_NOPRINTON
void PrintOn(ostream & strm) const;
#endif
Comparison Compare(const PObject & obj) const;
PObject * Clone() const;
};
//
// PreCorrigendum-IFPPacket
//
class T38_PreCorrigendum_IFPPacket : public PASN_Sequence
{
#ifndef PASN_LEANANDMEAN
PCLASSINFO(T38_PreCorrigendum_IFPPacket, PASN_Sequence);
#endif
public:
T38_PreCorrigendum_IFPPacket(unsigned tag = UniversalSequence, TagClass tagClass = UniversalTagClass);
enum OptionalFields {
e_data_field
};
T38_Type_of_msg m_type_of_msg;
T38_PreCorrigendum_Data_Field m_data_field;
PINDEX GetDataLength() const;
PBoolean Decode(PASN_Stream & strm);
void Encode(PASN_Stream & strm) const;
#ifndef PASN_NOPRINTON
void PrintOn(ostream & strm) const;
#endif
Comparison Compare(const PObject & obj) const;
PObject * Clone() const;
};
//
// Data-Field_subtype
//
class T38_Data_Field_subtype : public PASN_Sequence
{
#ifndef PASN_LEANANDMEAN
PCLASSINFO(T38_Data_Field_subtype, PASN_Sequence);
#endif
public:
T38_Data_Field_subtype(unsigned tag = UniversalSequence, TagClass tagClass = UniversalTagClass);
enum OptionalFields {
e_field_data
};
T38_Data_Field_subtype_field_type m_field_type;
PASN_OctetString m_field_data;
PINDEX GetDataLength() const;
PBoolean Decode(PASN_Stream & strm);
void Encode(PASN_Stream & strm) const;
#ifndef PASN_NOPRINTON
void PrintOn(ostream & strm) const;
#endif
Comparison Compare(const PObject & obj) const;
PObject * Clone() const;
};
//
// PreCorrigendum-Data-Field_subtype
//
class T38_PreCorrigendum_Data_Field_subtype : public PASN_Sequence
{
#ifndef PASN_LEANANDMEAN
PCLASSINFO(T38_PreCorrigendum_Data_Field_subtype, PASN_Sequence);
#endif
public:
T38_PreCorrigendum_Data_Field_subtype(unsigned tag = UniversalSequence, TagClass tagClass = UniversalTagClass);
enum OptionalFields {
e_field_data
};
T38_PreCorrigendum_Data_Field_subtype_field_type m_field_type;
PASN_OctetString m_field_data;
PINDEX GetDataLength() const;
PBoolean Decode(PASN_Stream & strm);
void Encode(PASN_Stream & strm) const;
#ifndef PASN_NOPRINTON
void PrintOn(ostream & strm) const;
#endif
Comparison Compare(const PObject & obj) const;
PObject * Clone() const;
};
//
// UDPTLPacket_primary-ifp-packet
//
class T38_UDPTLPacket_primary_ifp_packet : public PASN_OctetString
{
#ifndef PASN_LEANANDMEAN
PCLASSINFO(T38_UDPTLPacket_primary_ifp_packet, PASN_OctetString);
#endif
public:
T38_UDPTLPacket_primary_ifp_packet(unsigned tag = 0, TagClass tagClass = UniversalTagClass);
PBoolean DecodeSubType(T38_IFPPacket & obj) { return PASN_OctetString::DecodeSubType(obj); }
void EncodeSubType(const T38_IFPPacket & obj) { PASN_OctetString::EncodeSubType(obj); }
PObject * Clone() const;
};
//
// UDPTLPacket_error-recovery_fec-info
//
class T38_UDPTLPacket_error_recovery_fec_info : public PASN_Sequence
{
#ifndef PASN_LEANANDMEAN
PCLASSINFO(T38_UDPTLPacket_error_recovery_fec_info, PASN_Sequence);
#endif
public:
T38_UDPTLPacket_error_recovery_fec_info(unsigned tag = UniversalSequence, TagClass tagClass = UniversalTagClass);
PASN_Integer m_fec_npackets;
T38_ArrayOf_PASN_OctetString m_fec_data;
PINDEX GetDataLength() const;
PBoolean Decode(PASN_Stream & strm);
void Encode(PASN_Stream & strm) const;
#ifndef PASN_NOPRINTON
void PrintOn(ostream & strm) const;
#endif
Comparison Compare(const PObject & obj) const;
PObject * Clone() const;
};
//
// UDPTLPacket_error-recovery_secondary-ifp-packets_subtype
//
class T38_UDPTLPacket_error_recovery_secondary_ifp_packets_subtype : public PASN_OctetString
{
#ifndef PASN_LEANANDMEAN
PCLASSINFO(T38_UDPTLPacket_error_recovery_secondary_ifp_packets_subtype, PASN_OctetString);
#endif
public:
T38_UDPTLPacket_error_recovery_secondary_ifp_packets_subtype(unsigned tag = 0, TagClass tagClass = UniversalTagClass);
PBoolean DecodeSubType(T38_IFPPacket & obj) { return PASN_OctetString::DecodeSubType(obj); }
void EncodeSubType(const T38_IFPPacket & obj) { PASN_OctetString::EncodeSubType(obj); }
PObject * Clone() const;
};
//
// UDPTLPacket
//
class T38_UDPTLPacket : public PASN_Sequence
{
#ifndef PASN_LEANANDMEAN
PCLASSINFO(T38_UDPTLPacket, PASN_Sequence);
#endif
public:
T38_UDPTLPacket(unsigned tag = UniversalSequence, TagClass tagClass = UniversalTagClass);
PASN_Integer m_seq_number;
T38_UDPTLPacket_primary_ifp_packet m_primary_ifp_packet;
T38_UDPTLPacket_error_recovery m_error_recovery;
PINDEX GetDataLength() const;
PBoolean Decode(PASN_Stream & strm);
void Encode(PASN_Stream & strm) const;
#ifndef PASN_NOPRINTON
void PrintOn(ostream & strm) const;
#endif
Comparison Compare(const PObject & obj) const;
PObject * Clone() const;
};
#endif // __T38_H
#endif // if ! H323_DISABLE_T38
// End of t38.h
|