2 * Copyright 2012 Samsung Electronics Co., Ltd
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
8 * http://www.tizenopensource.org/license
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.
17 #ifndef _MINICTRL_INTERNAL_H_
18 #define _MINICTRL_INTERNAL_H_
20 #include <dbus/dbus.h>
21 #include "minicontrol-type.h"
24 #define EXPORT_API __attribute__ ((visibility("default")))
25 #endif /* EXPORT_API */
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"
32 typedef struct _minictrl_sig_handle minictrl_sig_handle;
34 int _minictrl_provider_message_send(const char *sig_name, const char *svr_name,
35 unsigned int witdh, unsigned int height,
36 minicontrol_priority_e priority);
38 int _minictrl_viewer_req_message_send(void);
40 minictrl_sig_handle *_minictrl_dbus_sig_handle_attach(const char *signal,
41 void (*callback) (void *data, DBusMessage *msg),
44 void _minictrl_dbus_sig_handle_dettach(minictrl_sig_handle *handle);
46 #endif /* _MINICTRL_INTERNAL_H_ */