tizen 2.3 release
[apps/home/minicontrol.git] / include / minicontrol-internal.h
1 /*
2  * Copyright (c)  2013-2015 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 #ifndef _MINICTRL_INTERNAL_H_
18 #define _MINICTRL_INTERNAL_H_
19
20 #include <dbus/dbus.h>
21 #include "minicontrol-type.h"
22 #include "minicontrol-internal-handler.h"
23 #include "minicontrol-handler.h"
24
25 #ifndef EXPORT_API
26 #define EXPORT_API __attribute__ ((visibility("default")))
27 #endif /* EXPORT_API */
28
29 #define MINICTRL_DBUS_SIG_START "minicontrol_start"
30 #define MINICTRL_DBUS_SIG_REALIZE "minicontrol_realize"
31 #define MINICTRL_DBUS_SIG_STOP "minicontrol_stop"
32 #define MINICTRL_DBUS_SIG_RESIZE "minicontrol_resize"
33 #define MINICTRL_DBUS_SIG_RUNNING_REQ "minicontrol_running_request"
34 #define MINICTRL_DBUS_SIG_REQUEST "minicontrol_request"
35
36 typedef struct _minictrl_sig_handle minictrl_sig_handle;
37
38 int _minictrl_provider_message_send(const char *sig_name, const char *svr_name,
39                                 unsigned int witdh, unsigned int height,
40                                 minicontrol_priority_e priority,
41                                 minicontrol_h handler);
42
43 int _minictrl_viewer_req_message_send(void);
44
45 minictrl_sig_handle *_minictrl_dbus_sig_handle_attach(const char *signal,
46                                 void (*callback) (void *data, DBusMessage *msg),
47                                 void *data);
48
49 void _minictrl_dbus_sig_handle_dettach(minictrl_sig_handle *handle);
50
51 int _minictrl_provider_proc_send(int type);
52
53 #endif /* _MINICTRL_INTERNAL_H_ */
54