typedef struct {
GCancellable *cancellable;
- TtdWorkerDbus *dbus_object;
+ TtdWorker *dbus_object;
unsigned int ref_count;
} worker_dbus_handle;
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,
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);
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,
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,