iceoryx_doc  1.0.1
notification_info.h
1 // Copyright (c) 2020 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/internal/c2cpp_binding.h"
21 #include "iceoryx_binding_c/subscriber.h"
22 #include "iceoryx_binding_c/user_trigger.h"
23 
25 typedef const CLASS NotificationInfo* iox_notification_info_t;
26 
30 uint64_t iox_notification_info_get_notification_id(iox_notification_info_t const self);
31 
36 bool iox_notification_info_does_originate_from_subscriber(iox_notification_info_t const self,
37  iox_sub_t const subscriber);
38 
43 bool iox_notification_info_does_originate_from_user_trigger(iox_notification_info_t const self,
44  iox_user_trigger_t const user_trigger);
45 
49 iox_sub_t iox_notification_info_get_subscriber_origin(iox_notification_info_t const self);
50 
54 iox_user_trigger_t iox_notification_info_get_user_trigger_origin(iox_notification_info_t const self);
55 
58 void iox_notification_info_call(iox_notification_info_t const self);
59 
60 #endif
Definition: cpp2c_subscriber.hpp:28