/*
* resourced
*
- * Copyright (c) 2000 - 2017 Samsung Electronics Co., Ltd. All rights reserved.
+ * Copyright (c) 2000 - 2019 Samsung Electronics Co., Ltd. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
const char *interface, const char *method,
const char *sig, char *param[])
{
- int ret;
- GVariant *reply = NULL;
GVariant *gv = NULL;
if (sig || param) {
}
}
+ return d_bus_call_method_sync_gvariant(dest, path, interface, method, gv);
+}
+
+int d_bus_call_method_sync_gvariant(const char *dest, const char *path,
+ const char *interface, const char *method,
+ GVariant *gv)
+{
+ int ret;
+ GVariant *reply = NULL;
+
reply = g_dbus_connection_call_sync(d_bus_get_connection(), dest, path,
interface, method, gv, NULL, G_DBUS_CALL_FLAGS_NONE, -1, NULL, NULL);
if (!reply) {
_E("Failed to build g_variant");
return -EPERM;
}
+ return d_bus_call_method_async_gvariant(dest, path, interface, method, gv);
+}
+int d_bus_call_method_async_gvariant(const char *dest, const char *path,
+ const char *interface, const char *method, GVariant *gv)
+{
g_dbus_connection_call(d_bus_get_connection(), dest, path, interface, method,
gv, NULL, G_DBUS_CALL_FLAGS_NONE, -1, NULL, NULL, NULL);
/*
* resourced
*
- * Copyright (c) 2013 - 2017 Samsung Electronics Co., Ltd. All rights reserved.
+ * Copyright (c) 2013 - 2019 Samsung Electronics Co., Ltd. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
void serialize_params(char *params[], size_t n, ...);
+int d_bus_call_method_sync_gvariant(const char *dest, const char *path,
+ const char *interface, const char *method,
+ GVariant *gv);
+
int d_bus_call_method_sync(const char *dest, const char *path,
const char *interface, const char *method,
const char *sig, char *param[]);
+int d_bus_call_method_async_gvariant(const char *dest, const char *path,
+ const char *interface, const char *method,
+ GVariant *gv);
+
int d_bus_call_method_async(const char *dest, const char *path,
const char *interface, const char *method,
const char *sig, char *param[]);