This file is indexed.

/usr/include/ola/rdm/AckTimerResponder.h is in libola-dev 0.10.3.nojsmin-2+deb9u1.

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
/*
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2.1 of the License, or (at your option) any later version.
 *
 * This library 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
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
 *
 * AckTimerResponder.h
 * Copyright (C) 2013 Simon Newton
 */

/**
 * @addtogroup rdm_resp
 * @{
 * @file AckTimerResponder.h
 * @brief This responder implements the code needed to deal with AckTimers
 * @}
 */

#ifndef INCLUDE_OLA_RDM_ACKTIMERRESPONDER_H_
#define INCLUDE_OLA_RDM_ACKTIMERRESPONDER_H_

#include <ola/Clock.h>
#include <ola/rdm/RDMControllerInterface.h>
#include <ola/rdm/RDMEnums.h>
#include <ola/rdm/ResponderOps.h>
#include <ola/rdm/ResponderPersonality.h>
#include <ola/rdm/UID.h>

#include <queue>
#include <string>
#include <vector>

namespace ola {
namespace rdm {

/**
 * A responder that ACK_TIMERs certain GETs / SETs.
 */
class AckTimerResponder: public RDMControllerInterface {
 public:
  explicit AckTimerResponder(const UID &uid);
  ~AckTimerResponder();

  void SendRDMRequest(RDMRequest *request, RDMCallback *callback);

 private:
  /**
   * The RDM Operations for the AckTimerResponder.
   */
  class RDMOps : public ResponderOps<AckTimerResponder> {
   public:
    static RDMOps *Instance() {
      if (!instance)
        instance = new RDMOps();
      return instance;
    }

   private:
    RDMOps() : ResponderOps<AckTimerResponder>(PARAM_HANDLERS) {}

    static RDMOps *instance;
  };

  /**
   * The personalities
   */
  class Personalities : public PersonalityCollection {
   public:
    static const Personalities *Instance();

   private:
    explicit Personalities(const PersonalityList &personalities) :
      PersonalityCollection(personalities) {
    }

    static Personalities *instance;
  };

  // The actual queue of messages to be collected.
  typedef std::queue<class QueuedResponse*> ResponseQueue;

  // The list of responses which aren't available yet. When they become
  // valid they are moved to the ResponseQueue,
  typedef std::vector<class QueuedResponse*> PendingResponses;

  const UID m_uid;
  uint16_t m_start_address;
  bool m_identify_mode;
  PersonalityManager m_personality_manager;

  ResponseQueue m_queued_messages;
  PendingResponses m_upcoming_queued_messages;
  std::auto_ptr<class QueuedResponse> m_last_queued_message;
  ola::Clock m_clock;

  uint16_t Footprint() const {
    return m_personality_manager.ActivePersonalityFootprint();
  }

  uint8_t QueuedMessageCount() const;
  void QueueAnyNewMessages();

  RDMResponse *ResponseFromQueuedMessage(
      const RDMRequest *request,
      const class QueuedResponse *queued_response);
  RDMResponse *EmptyStatusMessage(const RDMRequest *request);
  RDMResponse *GetQueuedMessage(const RDMRequest *request);
  RDMResponse *GetDeviceInfo(const RDMRequest *request);
  RDMResponse *GetPersonality(const RDMRequest *request);
  RDMResponse *SetPersonality(const RDMRequest *request);
  RDMResponse *GetPersonalityDescription(const RDMRequest *request);
  RDMResponse *GetDmxStartAddress(const RDMRequest *request);
  RDMResponse *SetDmxStartAddress(const RDMRequest *request);
  RDMResponse *GetIdentify(const RDMRequest *request);
  RDMResponse *SetIdentify(const RDMRequest *request);
  RDMResponse *GetManufacturerLabel(const RDMRequest *request);
  RDMResponse *GetDeviceLabel(const RDMRequest *request);
  RDMResponse *GetDeviceModelDescription(const RDMRequest *request);
  RDMResponse *GetSoftwareVersionLabel(const RDMRequest *request);

  static const ResponderOps<AckTimerResponder>::ParamHandler PARAM_HANDLERS[];
  static const uint16_t ACK_TIMER_MS;
};
}  // namespace rdm
}  // namespace ola
#endif  // INCLUDE_OLA_RDM_ACKTIMERRESPONDER_H_