expose Replica::num_local_operations via FFI

This commit is contained in:
Dustin J. Mitchell
2022-04-23 19:19:14 +00:00
parent fd504b7d66
commit 20823b7a73
3 changed files with 20 additions and 0 deletions

View File

@@ -557,6 +557,11 @@ TCResult tc_replica_sync(struct TCReplica *rep, struct TCServer *server, bool av
*/
TCResult tc_replica_undo(struct TCReplica *rep, int32_t *undone_out);
/**
* Get the number of local, un-synchronized operations, or -1 on error
*/
int64_t tc_replica_num_local_operations(struct TCReplica *rep);
/**
* Add an UndoPoint, if one has not already been added by this Replica. This occurs automatically
* when a change is made. The `force` flag allows forcing a new UndoPoint even if one has already