Fixed wrong log message
[platform/core/appfw/app-core.git] / src / watchdog / appcore_watchdog.c
1 /*
2  * Copyright (c) 2018 Samsung Electronics Co., Ltd. All rights reserved.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16
17
18 #define _GNU_SOURCE
19
20 #include <stdio.h>
21 #include <stdlib.h>
22 #include <string.h>
23 #include <stdbool.h>
24 #include <glib.h>
25 #include <aul.h>
26 #include <aul_watchdog.h>
27
28 #include "appcore_watchdog.h"
29 #include "appcore_watchdog_private.h"
30
31 EXPORT_API int appcore_watchdog_enable(void)
32 {
33         _W("[__APPCORE_WATCHDOG__] enable");
34         return aul_watchdog_enable();
35 }
36
37 EXPORT_API int appcore_watchdog_disable(void)
38 {
39         _W("[__APPCORE_WATCHDOG__] disable");
40         return aul_watchdog_disable();
41 }
42
43 EXPORT_API int appcore_watchdog_kick(void)
44 {
45         _W("[__APPCORE_WATCHDOG__] kick");
46         return aul_watchdog_kick();
47 }