/usr/include/sipxtapi/ptapi/PtDefs.h is in libsipxtapi-dev 3.3.0~test17-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 | //
// 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 _PtDefs_h_
#define _PtDefs_h_
// SYSTEM INCLUDES
#include <string.h>
// APPLICATION INCLUDES
#include "os/OsDefs.h"
// DEFINES
//#define PTAPI_TEST
// MACROS
// EXTERNAL FUNCTIONS
// EXTERNAL VARIABLES
// CONSTANTS
#ifdef LONG_EVENT_RESPONSE_TIMEOUTS
# define PT_CONST_EVENT_WAIT_TIMEOUT 2592000 // 30 days in seconds
#else
# define PT_CONST_EVENT_WAIT_TIMEOUT 40 // time out, seconds
#endif
// STRUCTS
// TYPEDEFS
#undef PTAPI_DEBUG_TRACE
#ifdef PTAPI_DEBUG_TRACE
#define EVENT_TRACE(x) osPrintf(x)
#else
#define EVENT_TRACE(x) //* osPrintf(x) *//
#endif
// FORWARD DECLARATIONS
//:Status codes returned by Pingtel API methods.
enum PtStatus
{
PT_SUCCESS,
PT_AUTH_FAILED,
PT_FAILED,
PT_EXISTS,
PT_HOST_NOT_FOUND,
PT_IN_PROGRESS,
PT_INVALID_ARGUMENT,
PT_INVALID_PARTY,
PT_INVALID_STATE,
PT_INVALID_IP_ADDRESS,
PT_INVALID_SIP_DIRECTORY_SERVER,
PT_INVALID_SIP_URL,
PT_MORE_DATA,
PT_NO_MORE_DATA,
PT_NOT_FOUND,
PT_PROVIDER_UNAVAILABLE,
PT_RESOURCE_UNAVAILABLE,
PT_BUSY
};
typedef int PtBoolean;
#define PT_CLASS_INFO_MEMBERS static const char* sClassName;
#define PT_NO_PARENT_CLASS
#define PT_IMPLEMENT_CLASS_INFO(CHILD, PARENT) \
const char* CHILD::sClassName = #CHILD; \
PtBoolean isInstanceOf(const char* name); \
\
const char* CHILD::className() { return(sClassName);} \
\
PtBoolean CHILD::isClass(const char* name) { return(strcmp(name, className()) == 0);} \
\
PtBoolean CHILD::isInstanceOf(const char* name) \
{\
PtBoolean isInstance = isClass(name); \
if(!isInstance) isInstance = PARENT::isInstanceOf(name); \
return(isInstance); \
}
/* ============================ INLINE METHODS ============================ */
#endif // _PtDefs_h_
|