This file is indexed.

/usr/include/x86_64-linux-gnu/alljoyn/about/AnnouncementRegistrar.h is in liballjoyn-dev-1604 16.04a-3.

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
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
/**
 * @file
 * Used to register an AnnounceHandler for the org.alljoyn.About Announce signal
 */
/******************************************************************************
 * Copyright AllSeen Alliance. All rights reserved.
 *
 *    Permission to use, copy, modify, and/or distribute this software for any
 *    purpose with or without fee is hereby granted, provided that the above
 *    copyright notice and this permission notice appear in all copies.
 *
 *    THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
 *    WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
 *    MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
 *    ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
 *    WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
 *    ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
 *    OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
 ******************************************************************************/

#ifndef ANNOUNCEHANDLERIMPL_H_
#define ANNOUNCEHANDLERIMPL_H_

#include <signal.h>

#include <qcc/Log.h>
#include <alljoyn/version.h>
#include <alljoyn/BusAttachment.h>
#include <alljoyn/about/AnnounceHandler.h>
#include <alljoyn/about/AboutClient.h>
#include <alljoyn/about/AboutIconClient.h>

namespace ajn {
namespace services {
/**
 *  AnnouncementRegistrar is a helper class enable the Application to register
 *  AnnounceHandlers to receive org.alljoyn.about Announce signals.
 *
 * @deprecated The AnnouncementRegistrar class has been deprecated please see the
 * BusAttachment class for similar functionality as the AnnouncementRegistrar class.
 */
class AnnouncementRegistrar {

  public:
    /**
     * Registers a handler to receive the org.alljoyn.about Announce signal.
     *
     * The handler is only called if all the interfaces are implemented.
     * For example, if the handler should be called if both "com.example.Audio"
     * <em>and</em> "com.example.Video" are implemented then call
     * addAnnouncementHandler once:
     * @code
     * const char* interfaces[] = {"com.example.Audio", "com.example.Video"};
     * RegisterAnnounceHandler(busAttachment, handler, interfaces,
     *                         sizeof(interfaces) / sizeof(interfaces[0]));
     * @endcode
     *
     * If the handler should be called if "com.example.Audio" <em>or</em>
     * "com.example.Video" is implemented then call
     * addAnnouncementHandler multiple times:
     * @code
     * const char* audioInterface[] = {"com.example.Audio"};
     * RegisterAnnounceHandler(busAttachment, handler, audioInterface,
     *                         sizeof(audioInterface) / sizeof(audioInterface[0]));
     * const char* videoInterface[] = {"com.example.Video"};
     * RegisterAnnounceHandler(busAttachment, handler, videoInterface,
     *                         sizeof(videoInterface) / sizeof(videoInterface[0]));
     * @endcode
     *
     * The interface name may be a prefix followed by a `*`.  Using
     * this, the example above could be written as:
     * @code
     * const char* exampleInterface[] = {"com.example.*"};
     * RegisterAnnounceHandler(busAttachment, handler, exampleInterface,
     *                         sizeof(exampleInterface) / sizeof(exampleInterface[0]));
     * @endcode
     *
     * The handler will receive any announcement that implements an interface
     * beginning with the "com.example." name.
     *
     * If RegisterAnnounceHandler is called with lists of interfaces that overlap
     * then multiple Announcements will be occur.
     * For example given the following
     *
     * * @code
     * const char* audioInterface[] = {"com.example.Audio"};
     * RegisterAnnounceHandler(busAttachment, handler, audioInterface,
     *                         sizeof(audioInterface) / sizeof(audioInterface[0]));
     * const char* audioVideoInterface[] = {"com.example.Audio", "com.example.Video"};
     * RegisterAnnounceHandler(busAttachment, handler, audioVideoInterface,
     *                         sizeof(audioVideoInterface) / sizeof(audioVideoInterface[0]));
     * @endcode
     *
     * If a BusAttachment is found that implements both `com.example.Audio`  and
     * interface `com.example.Video` the announce handler will be called twice.
     * Once for the first registration that is looking for `com.example.Audio` and
     * again for the second registration that is looking for both audio and video
     * interfaces.
     *
     * If the same handler is used for for multiple interfaces then it is the
     * handlers responsibility to parse through the reported interfaces to
     * figure out what should be done in response to the Announce signal.
     *
     * Note: specifying NULL for the implementsInterfaces parameter could have
     * significant impact on network performance and should be avoided unless
     * its known that all announcements are needed.
     *
     * @deprecated The AnnouncementRegistrar::RegisterAnnounceHandler function
     * has been deprecated please see the BusAttachment::RegisterAboutListener
     * function and the BusAttachment::WhoImplements function.
     *
     * @param[in] bus reference to BusAttachment
     * @param[in] handler reference to AnnounceHandler
     * @param[in] implementsInterfaces a list of interfaces that the Announce
     *               signal reports as implemented. NULL to receive all Announce
     *               signals regardless of interfaces
     * @param[in] numberInterfaces the number of interfaces in the
     *               implementsInterfaces list
     * @return status
     */
    QCC_DEPRECATED(static QStatus RegisterAnnounceHandler(ajn::BusAttachment & bus, AnnounceHandler & handler, const char** implementsInterfaces, size_t numberInterfaces));

    /**
     * @deprecated This function has been deprecated please change your code
     * to use RegisterAnnounceHandler where you specify the interface(s) that you
     * are interested finding.
     *
     * Using this member function could have significant impact on network
     * performance.
     *
     * @see RegisterAnnounceHandler(ajn::BusAttachment&, AnnounceHandler&, const char**, size_t)
     *
     * Registers a handler to receive the org.alljoyn.about Announce signal.
     *
     * @deprecated The AnnouncementRegistrar::RegisterAnnounceHandler function
     * has been deprecated please see the BusAttachment::RegisterAboutListener
     * function and the BusAttachment::WhoImplements function.
     *
     * @param[in] bus reference to BusAttachment
     * @param[in] handler reference to AnnounceHandler
     *
     * @return status
     */
    QCC_DEPRECATED(static QStatus RegisterAnnounceHandler(ajn::BusAttachment & bus, AnnounceHandler & handler));
    /**
     * Unregisters the AnnounceHandler from receiving the org.alljoyn.about Announce signal.
     *
     * @deprecated The AnnouncementRegistrar::UnRegisterAnnounceHandler function
     * has been deprecated please see the BusAttachment::UnregisterAboutListener
     * function and the BusAttachment::CancelWhoImplements function.
     *
     * @param[in] bus reference to BusAttachment
     * @param[in] handler reference to AnnounceHandler
     * @param[in] implementsInterfaces a list of interfaces that the Announce signal
     *               reports as implmented. NULL to recieve all Announce signals
     *               regardless of interfaces
     * @param[in] numberInterfaces the number of interfaces in the
     *               implementsInterfaces list
     * @return status
     */
    QCC_DEPRECATED(static QStatus UnRegisterAnnounceHandler(ajn::BusAttachment & bus, AnnounceHandler & handler, const char** implementsInterfaces, size_t numberInterfaces));

    /**
     * @deprecated This function has been deprecated please change your code
     * to use UnRegisterAnnounceHandler where you specify the interface(s).
     *
     * @see UnRegisterAnnounceHandler(ajn::BusAttachment&, AnnounceHandler&, const char**, size_t)
     *
     * Unregisters the AnnounceHandler from receiving the org.alljoyn.about Announce signal.
     *
     * @deprecated The AnnouncementRegistrar::UnRegisterAnnounceHandler function
     * has been deprecated please see the BusAttachment::UnregisterAboutListener
     * function and the BusAttachment::CancelWhoImplements function.
     *
     * @param[in] bus reference to BusAttachment
     * @param[in] handler reference to AnnounceHandler
     *
     * @return status
     */
    QCC_DEPRECATED(static QStatus UnRegisterAnnounceHandler(ajn::BusAttachment & bus, AnnounceHandler & handler));

    /**
     * Unregisters all AnnounceHandlers from receiving any org.alljoyn.about Announce signal
     *
     * @deprecated The AnnouncementRegistrar::UnRegisterAnnounceHandler function
     * has been deprecated please see the BusAttachment::UnregisterAllAboutListeners
     * function and the BusAttachment::CancelWhoImplements function.
     *
     * @param[in] bus reference to BusAttachment
     * @return status
     */
    QCC_DEPRECATED(static QStatus UnRegisterAllAnnounceHandlers(ajn::BusAttachment & bus));
};

}
}
#endif /* ANNOUNCEHANDLERIMPL_H_ */