add web notification feature, but not enabled yet
[apps/native/position-finder-server.git] / src / controller_internal.c
1 /*
2  * Copyright (c) 2017 Samsung Electronics Co., Ltd.
3  *
4  * Contact: Jin Yoon <jinny.yoon@samsung.com>
5  *          Geunsun Lee <gs86.lee@samsung.com>
6  *          Eunyoung Lee <ey928.lee@samsung.com>
7  *          Junkyu Han <junkyu.han@samsung.com>
8  *          Jeonghoon Park <jh1979.park@samsung.com>
9  *
10  * Licensed under the Flora License, Version 1.1 (the License);
11  * you may not use this file except in compliance with the License.
12  * You may obtain a copy of the License at
13  *
14  * http://floralicense.org/license/
15  *
16  * Unless required by applicable law or agreed to in writing, software
17  * distributed under the License is distributed on an AS IS BASIS,
18  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19  * See the License for the specific language governing permissions and
20  * limitations under the License.
21  */
22
23 #include <iotcon.h>
24
25 #include "log.h"
26 #include "connectivity.h"
27 #include "resource.h"
28 #ifdef ENABLE_WEBNOTIFY
29 #include "webnotify.h"
30 #endif /* ENABLE_WEBNOTIFY */
31
32
33 void controller_init_internal_functions(void)
34 {
35         connectivity_init();
36 #ifdef ENABLE_WEBNOTIFY
37         web_notify_init();
38 #endif /* ENABLE_WEBNOTIFY */
39 }
40
41 void controller_fini_internal_functions(void)
42 {
43         _I("Terminating...");
44         resource_close_all();
45         connectivity_fini();
46 #ifdef ENABLE_WEBNOTIFY
47         web_notify_fini();
48 #endif /* ENABLE_WEBNOTIFY */
49 }