static void test_cancel( void* param) { Test* test = param; MMS_DEBUG("Cancelling %s", test->id); mms_dispatcher_cancel(test->disp, test->id); }
static gboolean test_timeout( gpointer data) { Test* test = data; test->timeout_id = 0; test->ret = RET_TIMEOUT; MMS_INFO("%s TIMEOUT", test->desc->name); mms_connman_test_close_connection(test->cm); mms_dispatcher_cancel(test->disp, NULL); return FALSE; }
/* org.nemomobile.MmsEngine.cancel */ static gboolean mms_engine_handle_cancel( OrgNemomobileMmsEngine* proxy, GDBusMethodInvocation* call, int database_id, MMSEngine* engine) { char* id = NULL; if (database_id > 0) id = g_strdup_printf("%u", database_id); MMS_DEBUG_("%s", id); mms_dispatcher_cancel(engine->dispatcher, id); org_nemomobile_mms_engine_complete_cancel(proxy, call); g_free(id); return TRUE; }