Tizen 2.1 base
[platform/core/multimedia/libmm-wfd.git] / src / include / wfd-stub.h
1 /*
2  * libmm-wfd
3  *
4  * Copyright (c) 2011 - 2013 Samsung Electronics Co., Ltd. All rights reserved.
5  *
6  * Contact: JongHyuk Choi <jhchoi.choi@samsung.com>, ByungWook Jang <bw.jang@samsung.com>,
7  * Manoj Kumar K <manojkumar.k@samsung.com>, Hyunil Park <hyunil46.park@samsung.com>
8  *
9  * Licensed under the Apache License, Version 2.0 (the "License");
10  * you may not use this file except in compliance with the License.
11  * You may obtain a copy of the License at
12  *
13  * http://www.apache.org/licenses/LICENSE-2.0
14  *
15  * Unless required by applicable law or agreed to in writing, software
16  * distributed under the License is distributed on an "AS IS" BASIS,
17  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18  * See the License for the specific language governing permissions and
19  * limitations under the License.
20  *
21  */
22
23 /* Generated by dbus-binding-tool; do not edit! */
24
25 #include <glib.h>
26 #include <dbus/dbus-glib.h>
27
28 G_BEGIN_DECLS
29
30 #ifndef _DBUS_GLIB_ASYNC_DATA_FREE
31 #define _DBUS_GLIB_ASYNC_DATA_FREE
32 static
33 #ifdef G_HAVE_INLINE
34 inline
35 #endif
36 void
37 _dbus_glib_async_data_free (gpointer stuff)
38 {
39   g_slice_free (DBusGAsyncData, stuff);
40 }
41 #endif
42
43 #ifndef DBUS_GLIB_CLIENT_WRAPPERS_com_samsung_wfd_server
44 #define DBUS_GLIB_CLIENT_WRAPPERS_com_samsung_wfd_server
45
46 static
47 #ifdef G_HAVE_INLINE
48 inline
49 #endif
50 gboolean
51 com_samsung_wfd_server_test_method (DBusGProxy *proxy, const gint IN_pid, const char * IN_test_name, gint* OUT_return_code, GError **error)
52
53 {
54   return dbus_g_proxy_call (proxy, "test_method", error, G_TYPE_INT, IN_pid, G_TYPE_STRING, IN_test_name, G_TYPE_INVALID, G_TYPE_INT, OUT_return_code, G_TYPE_INVALID);
55 }
56
57 typedef void (*com_samsung_wfd_server_test_method_reply) (DBusGProxy *proxy, gint OUT_return_code, GError *error, gpointer userdata);
58
59 static void
60 com_samsung_wfd_server_test_method_async_callback (DBusGProxy *proxy, DBusGProxyCall *call, void *user_data)
61 {
62   DBusGAsyncData *data = (DBusGAsyncData*) user_data;
63   GError *error = NULL;
64   gint OUT_return_code;
65   dbus_g_proxy_end_call (proxy, call, &error, G_TYPE_INT, &OUT_return_code, G_TYPE_INVALID);
66   (*(com_samsung_wfd_server_test_method_reply)data->cb) (proxy, OUT_return_code, error, data->userdata);
67   return;
68 }
69
70 static
71 #ifdef G_HAVE_INLINE
72 inline
73 #endif
74 DBusGProxyCall*
75 com_samsung_wfd_server_test_method_async (DBusGProxy *proxy, const gint IN_pid, const char * IN_test_name, com_samsung_wfd_server_test_method_reply callback, gpointer userdata)
76
77 {
78   DBusGAsyncData *stuff;
79   stuff = g_slice_new (DBusGAsyncData);
80   stuff->cb = G_CALLBACK (callback);
81   stuff->userdata = userdata;
82   return dbus_g_proxy_begin_call (proxy, "test_method", com_samsung_wfd_server_test_method_async_callback, stuff, _dbus_glib_async_data_free, G_TYPE_INT, IN_pid, G_TYPE_STRING, IN_test_name, G_TYPE_INVALID);
83 }
84 #endif /* defined DBUS_GLIB_CLIENT_WRAPPERS_com_samsung_wfd_server */
85
86 G_END_DECLS