src/sync_driver.c
author Krista Grothoff <krista@pep-project.org>
Sat, 24 Sep 2016 18:09:18 +0200
branchENGINE-27
changeset 1185 4b01328f3cf2
parent 743 e4b613ebac2f
child 951 dec407deb10e
permissions -rw-r--r--
ENGINE-27: update_identity no longer pays attention to the input identity's fpr, but pulls one from elect_pubkey.
vb@623
     1
// Driver for DeviceState state machine
vb@623
     2
vb@623
     3
#include <assert.h>
vb@690
     4
#include "pEp_internal.h"
vb@623
     5
vb@623
     6
vb@743
     7
DYNAMIC_API PEP_STATUS fsm_DeviceState_inject(
vb@690
     8
        PEP_SESSION session,
vb@690
     9
        DeviceState_event event,
vb@690
    10
        Identity partner,
vb@690
    11
        DeviceState_state state_partner
vb@690
    12
    )
vb@623
    13
{
vb@623
    14
    PEP_STATUS status = PEP_STATUS_OK;
vb@623
    15
vb@690
    16
    session->sync_state = fsm_DeviceState(session, session->sync_state,
vb@690
    17
            event, partner, state_partner);
vb@624
    18
vb@623
    19
    return status;
vb@623
    20
}
vb@626
    21