Browse Source

sync API: add new function sync_reinit()

ENGINE-1002--3.x
positron 6 months ago
parent
commit
351ef294cb
2 changed files with 21 additions and 0 deletions
  1. +10
    -0
      src/sync_api.c
  2. +11
    -0
      src/sync_api.h

+ 10
- 0
src/sync_api.c View File

@ -426,3 +426,13 @@ DYNAMIC_API PEP_STATUS disable_all_sync_channels(PEP_SESSION session)
return status;
}
DYNAMIC_API PEP_STATUS sync_reinit(PEP_SESSION session)
{
/* Check that the session is valid. */
assert(session);
if (!session)
return PEP_ILLEGAL_VALUE;
/* Go to the appropriate state. */
return signal_Sync_event(session, Sync_PR_keysync, CannotDecrypt, NULL);
}

+ 11
- 0
src/sync_api.h View File

@ -321,6 +321,17 @@ DYNAMIC_API PEP_STATUS disable_identity_for_sync(PEP_SESSION session,
DYNAMIC_API PEP_STATUS disable_all_sync_channels(PEP_SESSION session);
/**
* <!-- enter_device_group() -->
*
* @brief Explicitly reinitialize Sync. This is meant to be explicitly called
* from the application upon user request (of course through the
* adaptor).
*
* @param[in] session pEp session
*
*/
DYNAMIC_API PEP_STATUS sync_reinit(PEP_SESSION session);
#ifdef __cplusplus
}


Loading…
Cancel
Save