Add prototype for capi
[platform/core/api/notification.git] / notification-ex / stub.cc
1 /*
2  * Copyright (c) 2019 Samsung Electronics Co., Ltd.
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 #include <dlog.h>
18 #include <glib.h>
19 #include <unistd.h>
20
21 #include <list>
22
23 #include "api/notification_ex_app_control_action.h"
24 #include "api/notification_ex_button.h"
25 #include "api/notification_ex_chat_message.h"
26 #include "api/notification_ex_checkbox.h"
27 #include "api/notification_ex_entry.h"
28 #include "api/notification_ex_event_info.h"
29 #include "api/notification_ex_group.h"
30 #include "api/notification_ex_image.h"
31 #include "api/notification_ex_input_selector.h"
32 #include "api/notification_ex_item.h"
33 #include "api/notification_ex_manager.h"
34 #include "api/notification_ex_progress.h"
35 #include "api/notification_ex_reporter.h"
36 #include "api/notification_ex_text.h"
37 #include "api/notification_ex_time.h"
38 #include "api/notification_ex_visibility_action.h"
39 #include "notification-ex/reporter.h"
40
41 #ifdef LOG_TAG
42 #undef LOG_TAG
43 #endif
44 #define LOG_TAG "NOTIFICATION_EX"
45
46 #ifdef EXPORT_API
47 #undef EXPORT_API
48 #endif
49 #define EXPORT_API __attribute__((visibility("default")))
50
51 using namespace std;
52 using namespace notification::item;
53
54 extern "C" EXPORT_API int noti_ex_action_app_control_create(
55     noti_ex_action_h *handle, app_control_h app_control,
56     const char *extra) {
57   return 0;
58 }
59
60 extern "C" EXPORT_API int noti_ex_action_app_control_set(
61     noti_ex_action_h handle, app_control_h app_control) {
62   return 0;
63 }
64
65 extern "C" EXPORT_API int noti_ex_action_app_control_get(
66     noti_ex_action_h handle, app_control_h *app_control) {
67   return 0;
68 }
69
70 extern "C" EXPORT_API int noti_ex_item_button_create(noti_ex_item_h *handle,
71     const char *id, const char *title) {
72   return 0;
73 }
74
75 extern "C" EXPORT_API int noti_ex_item_button_get_title(noti_ex_item_h handle,
76     char **title) {
77   return 0;
78 }
79
80 extern "C" EXPORT_API int noti_ex_item_chat_message_create(
81     noti_ex_item_h *handle, const char *id, noti_ex_item_h name,
82     noti_ex_item_h text, noti_ex_item_h image, noti_ex_item_h time,
83     noti_ex_item_chat_message_type_e message_type) {
84   return 0;
85 }
86
87 extern "C" EXPORT_API int noti_ex_item_chat_message_get_name(
88     const noti_ex_item_h *text) {
89   return 0;
90 }
91
92 extern "C" EXPORT_API int noti_ex_item_chat_message_get_text(
93     const noti_ex_item_h *text) {
94   return 0;
95 }
96
97 extern "C" EXPORT_API int noti_ex_item_chat_message_get_image(
98     const noti_ex_item_h *image) {
99   return 0;
100 }
101
102 extern "C" EXPORT_API int noti_ex_item_chat_message_get_time(
103     const noti_ex_item_h *time) {
104   return 0;
105 }
106
107 extern "C" EXPORT_API int noti_ex_item_chat_message_get_message_type(
108     noti_ex_item_chat_message_type_e *message_type) {
109   return 0;
110 }