This file is indexed.

/usr/include/licq/logging/pluginlogsink.h is in licq-dev 1.8.1-2build1.

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
/*
 * This file is part of Licq, an instant messaging client for UNIX.
 * Copyright (C) 2010 Licq developers
 *
 * Licq is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * Licq is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with Licq; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
 */

#ifndef LICQ_PLUGINLOGSINK_H
#define LICQ_PLUGINLOGSINK_H

#include "logsink.h"
#include "../macro.h"

#include <boost/shared_ptr.hpp>

namespace Licq
{

class PluginLogSink : public AdjustableLogSink
{
public:
  typedef boost::shared_ptr<PluginLogSink> Ptr;

  PluginLogSink();
  ~PluginLogSink();

  /**
   * Get the file descriptor that will be readable when there is a new log
   * message to be poped (one byte per message). The returned fd can be used in
   * e.g. select().
   */
  int getReadPipe();

  /**
   * Removes the first message from the queue and returns it, optionally
   * reading a byte from the pipe.
   *
   * @param readPipe If true one byte will be read from the pipe. If the pipe
   * is read outside of this method, pass false here.
   * @return A log message or a null pointer on error.
   */
  Message::Ptr popMessage(bool readPipe = true);

  // LogSink
  bool isLogging(Log::Level level) const;
  bool isLoggingPackets() const;
  void log(Message::Ptr message);

  // AdjustableLogSink
  void setLogLevel(Log::Level level, bool enable);
  void setLogPackets(bool enable);
  void setAllLogLevels(bool enable);
  void setLogLevelsFromBitmask(unsigned int levels);
  unsigned int getLogLevelsBitmask() const;
 
private:
  LICQ_DECLARE_PRIVATE();
};

} // namespace Licq

#endif