Make dbus method name shorter
[apps/native/tizen-things-daemon.git] / lib / things-service-worker / src / ttd-worker-lib.c
index 2cfc86c..9dcc343 100644 (file)
@@ -34,7 +34,7 @@ struct _ttd_worker_report_s {
 
 typedef struct {
        GCancellable *cancellable;
-       TtdWorkerDbus *dbus_object;
+       TtdWorker *dbus_object;
        unsigned int ref_count;
 } worker_dbus_handle;
 
@@ -91,7 +91,7 @@ static int __ref_dbus_connection(void)
        handle->cancellable = g_cancellable_new();
 
        handle->dbus_object =
-               ttd_worker_dbus_proxy_new_for_bus_sync(G_BUS_TYPE_SYSTEM,
+               ttd_worker_proxy_new_for_bus_sync(G_BUS_TYPE_SYSTEM,
                        G_DBUS_PROXY_FLAGS_NONE,
                        TTD_WORKER_DBUS_NAME,
                        TTD_WORKER_DBUS_OBJECT_PATH,
@@ -122,7 +122,7 @@ static void __submit_completed_cb(
        ttd_worker_submit_result_e result;
 
        _D("Send completed");
-       ret = ttd_worker_dbus_call_ttd_worker_submit_report_finish(
+       ret = ttd_worker_call_report_finish(
                        g_dbus_handle->dbus_object, &ret_val, res, &error);
        if (!ret) {
                _E("DBus proxy call is failed[%s]", error->message);
@@ -279,7 +279,7 @@ int ttd_worker_submit_report(ttd_worker_report *report,
        report->completed_cb = completed_cb;
        report->completed_cb_data = completed_cb_data;
 
-       ttd_worker_dbus_call_ttd_worker_submit_report(
+       ttd_worker_call_report(
                        g_dbus_handle->dbus_object,
                        report->cmd_id,
                        report->report_json,
@@ -308,7 +308,7 @@ int ttd_worker_submit_report_sync(
        retvm_if(!report->report_json, -1, "report data is NULL");
        retvm_if(report->state == TTD_WORKER_STATE_UNKNOWN, -1, "state is UNKNOWN");
 
-       ret = ttd_worker_dbus_call_ttd_worker_submit_report_sync(
+       ret = ttd_worker_call_report_sync(
                        g_dbus_handle->dbus_object,
                        report->cmd_id,
                        report->report_json,