4 ==================================================================================
5 Copyright (c) 2020 Nokia
6 Copyright (c) 2020 AT&T Intellectual Property.
8 Licensed under the Apache License, Version 2.0 (the "License");
9 you may not use this file except in compliance with the License.
10 You may obtain a copy of the License at
12 http://www.apache.org/licenses/LICENSE-2.0
14 Unless required by applicable law or agreed to in writing, software
15 distributed under the License is distributed on an "AS IS" BASIS,
16 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17 See the License for the specific language governing permissions and
18 limitations under the License.
19 ==================================================================================
23 Mnemonic: callback.hpp
24 Abstract: Manages config notification callback data and such.
25 This is a bit of over kill because, unlike the message
26 receipt callbacks, there is only one potential callback
27 for the config. We could manage this inside of the conf
28 class, but if there is ever the need to have multiple
29 callbacks, the base is set.
32 Author: E. Scott Daniels
36 #ifndef _XAPP_CONF_CB_HPP
37 #define _XAPP_CONF_CB_HPP
46 Describes the user function that we will invoke
48 typedef void(*notify_callback)( xapp::Config& c, void* user_data );
53 notify_callback user_fun;
54 void* udata; // user data
57 Config_cb( notify_callback cbfun, void* user_data ); // builder
58 void Drive_cb( xapp::Config& c, void* user_data ) const; // invokers