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: notify_cb.cpp
24 Abstract: Notification drivers.
27 Author: E. Scott Daniels
33 #include "config_cb.hpp"
40 Config_cb::Config_cb( notify_callback ufun, void* user_data ) :
47 there is nothing to be done from a destruction perspective, so no
48 destruction function needed at the moment.
52 Drive_cb will invoke the callback and pass along the stuff passed here.
53 User_data may be nil which causes the data registered with the callback
56 void xapp::Config_cb::Drive_cb( xapp::Config& c, void* user_data ) const {
57 if( user_fun != NULL ) {
58 user_fun( c, user_data == NULL ? udata : user_data );