diff options
Diffstat (limited to 'firmware/include')
| -rw-r--r-- | firmware/include/buflib.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/firmware/include/buflib.h b/firmware/include/buflib.h index 9cd7c0b..6c9ccf7 100644 --- a/firmware/include/buflib.h +++ b/firmware/include/buflib.h @@ -103,6 +103,12 @@ struct buflib_callbacks { * at least shrinkable */ int (*shrink_callback)(int handle, unsigned hints, void* start, size_t old_size); + /** + * This is called when special steps must be taken for synchronization + * both before the move_callback is called and after the data has been + * moved. + */ + void (*sync_callback)(int handle, bool sync_on); }; #define BUFLIB_SHRINK_POS_MASK ((1<<0|1<<1)<<30) |