2 * Copyright (c) 2019 Samsung Electronics Co., Ltd.
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
8 * http://www.apache.org/licenses/LICENSE-2.0
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.
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"
44 #define LOG_TAG "NOTIFICATION_EX"
49 #define EXPORT_API __attribute__((visibility("default")))
52 using namespace notification::item;
54 extern "C" EXPORT_API int noti_ex_action_app_control_create(
55 noti_ex_action_h *handle, app_control_h app_control,
60 extern "C" EXPORT_API int noti_ex_action_app_control_set(
61 noti_ex_action_h handle, app_control_h app_control) {
65 extern "C" EXPORT_API int noti_ex_action_app_control_get(
66 noti_ex_action_h handle, app_control_h *app_control) {
70 extern "C" EXPORT_API int noti_ex_item_button_create(noti_ex_item_h *handle,
71 const char *id, const char *title) {
75 extern "C" EXPORT_API int noti_ex_item_button_get_title(noti_ex_item_h handle,
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) {
87 extern "C" EXPORT_API int noti_ex_item_chat_message_get_name(
88 const noti_ex_item_h *text) {
92 extern "C" EXPORT_API int noti_ex_item_chat_message_get_text(
93 const noti_ex_item_h *text) {
97 extern "C" EXPORT_API int noti_ex_item_chat_message_get_image(
98 const noti_ex_item_h *image) {
102 extern "C" EXPORT_API int noti_ex_item_chat_message_get_time(
103 const noti_ex_item_h *time) {
107 extern "C" EXPORT_API int noti_ex_item_chat_message_get_message_type(
108 noti_ex_item_chat_message_type_e *message_type) {