iceoryx_binding_c  2.0.2
notification_info.h
1 // Copyright (c) 2020 - 2022 by Apex.AI Inc. All rights reserved.
2 //
3 // Licensed under the Apache License, Version 2.0 (the "License");
4 // you may not use this file except in compliance with the License.
5 // You may obtain a copy of the License at
6 //
7 // http://www.apache.org/licenses/LICENSE-2.0
8 //
9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS,
11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 // See the License for the specific language governing permissions and
13 // limitations under the License.
14 //
15 // SPDX-License-Identifier: Apache-2.0
16 
17 #ifndef IOX_BINDING_C_EVENT_INFO_H
18 #define IOX_BINDING_C_EVENT_INFO_H
19 
20 #include "iceoryx_binding_c/client.h"
21 #include "iceoryx_binding_c/internal/c2cpp_binding.h"
22 #include "iceoryx_binding_c/server.h"
23 #include "iceoryx_binding_c/service_discovery.h"
24 #include "iceoryx_binding_c/subscriber.h"
25 #include "iceoryx_binding_c/user_trigger.h"
26 
28 typedef const CLASS NotificationInfo* iox_notification_info_t;
29 
33 uint64_t iox_notification_info_get_notification_id(iox_notification_info_t const self);
34 
39 bool iox_notification_info_does_originate_from_subscriber(iox_notification_info_t const self,
40  iox_sub_t const subscriber);
41 
46 bool iox_notification_info_does_originate_from_user_trigger(iox_notification_info_t const self,
47  iox_user_trigger_t const user_trigger);
48 
53 bool iox_notification_info_does_originate_from_client(iox_notification_info_t const self, iox_client_t const client);
54 
59 bool iox_notification_info_does_originate_from_server(iox_notification_info_t const self, iox_server_t const server);
60 
65 bool iox_notification_info_does_originate_from_service_discovery(iox_notification_info_t const self,
66  iox_service_discovery_t const serviceDiscovery);
67 
71 iox_sub_t iox_notification_info_get_subscriber_origin(iox_notification_info_t const self);
72 
76 iox_user_trigger_t iox_notification_info_get_user_trigger_origin(iox_notification_info_t const self);
77 
81 iox_client_t iox_notification_info_get_client_origin(iox_notification_info_t const self);
82 
86 iox_server_t iox_notification_info_get_server_origin(iox_notification_info_t const self);
87 
91 iox_service_discovery_t iox_notification_info_get_service_discovery_origin(iox_notification_info_t const self);
92 
95 void iox_notification_info_call(iox_notification_info_t const self);
96 
97 #endif