コード例 #1
0
ファイル: test_send.c プロジェクト: matthewvogt/mms-engine
static
void
test_cancel(
    void* param)
{
    Test* test = param;
    MMS_DEBUG("Cancelling %s", test->id);
    mms_dispatcher_cancel(test->disp, test->id);
}
コード例 #2
0
ファイル: test_read_ind.c プロジェクト: special/mms-engine
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;
}
コード例 #3
0
ファイル: mms_engine.c プロジェクト: matthewvogt/mms-engine
/* 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;
}