/usr/include/sipxtapi/os/OsSysLogMsg.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 93 94 95 96 97 98 99 100 101 102 103 | //
// 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 _OsSysLogMsg_h_
#define _OsSysLogMsg_h_
// SYSTEM INCLUDES
// APPLICATION INCLUDES
#include "os/OsDefs.h"
#include "os/OsSysLog.h"
#include "os/OsMsg.h"
// DEFINES
// MACROS
// EXTERNAL FUNCTIONS
// EXTERNAL VARIABLES
// CONSTANTS
// STRUCTS
// TYPEDEFS
// FORWARD DECLARATIONS
//:Base class for message queue buffers
class OsSysLogMsg : public OsMsg
{
/* //////////////////////////// PUBLIC //////////////////////////////////// */
public:
enum SubMsgTypes
{
LOG = 0, // Log Message
ENABLE_CONSOLE, // Enable console output
DISABLE_CONSOLE, // Disable console output
HEAD, // Head the log
TAIL, // Tail the log
SET_FILE, // Set the target output file
ADD_SOCKET, // Add a target output socket
SET_FLUSH_PERIOD, // Set the flush period
FLUSH_LOG, // Flush the log (write to disk)
SET_CALLBACK // Set the callback function
} ;
//: Defines the various SysLog Msg Subtypes
//
//
//!enumcode: LOG - Log Message
//!enumcode: ENABLE_CONSOLE - Enable console output
//!enumcode: DISABLE_CONSOLE - Disable console output
//!enumcode: HEAD - Head the log
//!enumcode: TAIL - Tail the log
//!enumcode: SET_FILE - Set the target output file
//!enumcode: ADD_SOCKET - Add a target output socket
//!enumcode: SET_FLUSH_PERIOD - Set the flush period
//!enumcode: FLUSH_LOG - Flush the log (write to disk)
/* ============================ CREATORS ================================== */
OsSysLogMsg(const unsigned char msgSubType, const void* pData = NULL) ;
//:Constructor
OsSysLogMsg(const OsSysLogMsg& rOsSysLogMsg);
//:Copy constructor
virtual OsMsg* createCopy(void) const;
//:Create a copy of this msg object (which may be of a derived type)
virtual
~OsSysLogMsg();
//:Destructor
/* ============================ MANIPULATORS ============================== */
OsSysLogMsg& operator=(const OsSysLogMsg& rhs);
//:Assignment operator
/* ============================ ACCESSORS ================================= */
const void* getData() const ;
//:Get data associated with this message
/* ============================ INQUIRY =================================== */
/* //////////////////////////// PROTECTED ///////////////////////////////// */
protected:
/* //////////////////////////// PRIVATE /////////////////////////////////// */
private:
const void* mpData;
};
/* ============================ INLINE METHODS ============================ */
#endif /* _OsSysLogMsg_h_ */
|