/usr/include/sipxtapi/tao/TaoDefs.h is in libsipxtapi-dev 3.3.0~test17-2.1.
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 | //
// Copyright (C) 2004-2006 SIPfoundry Inc.
// Licensed by SIPfoundry under the LGPL license.
//
// Copyright (C) 2004-2006 Pingtel Corp. All rights reserved.
// Licensed to SIPfoundry under a Contributor Agreement.
//
// $$
///////////////////////////////////////////////////////////////////////////////
#ifndef _TaoDefs_h_
#define _TaoDefs_h_
#include <os/OsIntTypes.h>
// Constants
#define MAXIMUM_INTEGER_STRING_LENGTH 20
#define DEF_TAO_VERY_BIG_NUMBER 2147483647
#define DEF_TAO_MSG_MAX_AGR_NUM 128 // default maximum number of argument in a TaoClientMsg
#define DEF_TAO_MAX_SOCKET_SIZE 1024
#define DEF_TAO_MAX_BUFFER_SIZE 128
#define DEF_TAO_MAX_CONNECTION 5 // max number of connection sockets on the
// TaoServer transport
#define DEF_TAO_LISTEN_PORT 9000
#define DEF_TAO_EVENT_PORT 9001
#define HTTP_READ_TIMEOUT_MSECS 30000
#define TAOMESSAGE_DELIMITER UtlString("$d$")
// TYPEDEFS
typedef uintptr_t TaoObjHandle;
//:An integer that has local meaning for a given TaoServer and represents
//:a PTAPI object or a TaoObject.
typedef unsigned int IPAddress;
//:A 32-bit value that contains an IP address. To convert this value to the a.b.c.d string
//:form of an IP address, map the high-order byte to a, the low-order byte to d, and so on.
//:Status codes returned by Pingtel API methods
enum TaoStatus
{
TAO_INVALID=0, // invalid status (not yet set)
TAO_SUCCESS, // success
TAO_FAILURE, // failure
// Name database
TAO_IN_USE, // requested object name is already in use
TAO_MORE_DATA,
TAO_NO_MORE_DATA, // no more data exists
// Resource management
TAO_DELETED, // object has been deleted
TAO_NOT_FOUND, // object not found
TAO_NOT_OWNER, // not the owner of the resource
TAO_LIMIT_REACHED, // resource limit reached
TAO_UNAVAILABLE,
TAO_EXISTS, // resource exists
// Synchronization
TAO_BUSY, // requested object is locked
TAO_IN_PROGRESS,
// Message queues
TAO_INVALID_LENGTH, // message is too long for this message queue
TAO_INVALID_STATE,
// Event Management
TAO_ALREADY_SIGNALED, // attempt to signal an already signaled event
TAO_NOT_SIGNALED, // attempt to clear a not-yet-signaled event
// Scheduling
TAO_INVALID_PRIORITY, // you requested an invalid priority level
TAO_NO_TASK_READY, // no task ready (when attempting to yield
// the remainder of a time slice)
// Task Management
TAO_TASK_NOT_STARTED, // task has not yet been started (or has been
// shut down)
// Memory Management
TAO_NO_MEMORY, // memory allocation error
// Other
TAO_INVALID_ARGUMENT, // invalid argument to subroutine
TAO_NOT_YET_IMPLEMENTED, // coming soon ...
TAO_AUTH_FAILED,
TAO_UNSPECIFIED // unspecified error
};
// TaoObjTypes defined for Tao objects or PTAPI objects
enum TaoObjTypes
{
UNSPECIFIED = 0,
TAO_OBJECT, // the Tao objects
PTAPI_OBJECT // PTAPI objects
};
// TaoObjSubTypes categories defined for use by the TaoObjectMap object
enum TaoObjSubTypes
{
TAO_SERVER, // the TaoServer object
TAO_CLIENT, // the TaoClient object
TAO_MESSAGE, // the TaoMessage object
TAO_MSGQ, // the TaoMsgQ object
TAO_TRANSPORT, // the TaoTransport object
TAO_CONNECTLISTENER // the TaoConnectionListener object
};
// PtObjSubTypes categories defined for use by the TaoObjectMap object
enum PtObjSubTypes
{
PTAPI_PROVIDER, // PtProvider
PTAPI_ADDRESS, // PtAddress
PTAPI_TERMINAL, // PtTerminal
PTAPI_CALL, // PtCall
PTAPI_CALLLISTENER, // PtCallListener
PTAPI_CONNECT // PtConnection
};
#endif // _TaoDefs_h_
|