mirror of https://github.com/oxen-io/session-ios
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
681 B
C
33 lines
681 B
C
5 years ago
|
//
|
||
|
// Copyright (c) 2018 Open Whisper Systems. All rights reserved.
|
||
|
//
|
||
|
|
||
4 years ago
|
#import <SessionMessagingKit/OWSStorage.h>
|
||
5 years ago
|
|
||
|
NS_ASSUME_NONNULL_BEGIN
|
||
|
|
||
|
@class YapDatabase;
|
||
|
|
||
|
@interface OWSStorage (Subclass)
|
||
|
|
||
|
@property (atomic, nullable, readonly) YapDatabase *database;
|
||
|
|
||
|
- (void)loadDatabase;
|
||
|
|
||
|
- (void)runSyncRegistrations;
|
||
|
// completion will be invoked _off_ the main thread.
|
||
|
- (void)runAsyncRegistrationsWithCompletion:(void (^_Nonnull)(void))completion;
|
||
|
|
||
|
- (BOOL)areAsyncRegistrationsComplete;
|
||
|
- (BOOL)areSyncRegistrationsComplete;
|
||
|
|
||
|
- (NSString *)databaseFilePath;
|
||
|
- (NSString *)databaseFilePath_SHM;
|
||
|
- (NSString *)databaseFilePath_WAL;
|
||
|
|
||
|
- (void)resetStorage;
|
||
|
|
||
|
@end
|
||
|
|
||
|
NS_ASSUME_NONNULL_END
|