Initialize Tizen 2.3
[apps/home/minicontrol.git] / include / minicontrol-internal.h
1 /*
2  * Copyright 2012  Samsung Electronics Co., Ltd
3  *
4  * Licensed under the Flora License, Version 1.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.tizenopensource.org/license
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
23 #ifndef EXPORT_API
24 #define EXPORT_API __attribute__ ((visibility("default")))
25 #endif /* EXPORT_API */
26
27 #define MINICTRL_DBUS_SIG_START "minicontrol_start"
28 #define MINICTRL_DBUS_SIG_STOP "minicontrol_stop"
29 #define MINICTRL_DBUS_SIG_RESIZE "minicontrol_resize"
30 #define MINICTRL_DBUS_SIG_RUNNING_REQ "minicontrol_running_request"
31 #define MINICTRL_DBUS_SIG_REQUEST "minicontrol_request"
32
33 typedef struct _minictrl_sig_handle minictrl_sig_handle;
34
35 int _minictrl_provider_message_send(const char *sig_name, const char *svr_name,
36                                 unsigned int witdh, unsigned int height,
37                                 minicontrol_priority_e priority);
38
39 int _minictrl_viewer_req_message_send(void);
40
41 minictrl_sig_handle *_minictrl_dbus_sig_handle_attach(const char *signal,
42                                 void (*callback) (void *data, DBusMessage *msg),
43                                 void *data);
44
45 void _minictrl_dbus_sig_handle_dettach(minictrl_sig_handle *handle);
46
47 int _minictrl_provider_proc_send(int type);
48
49 #endif /* _MINICTRL_INTERNAL_H_ */
50