Ken Van Hoeylandt c7621b5e4c
SDK improvements (#352)
TactilityC additions for:
- C randomization functions
- Tactility app paths
- Tactility locks
2025-09-29 22:45:14 +02:00

14 lines
261 B
C++

#include <tt_file.h>
#include <tt_lock_private.h>
#include <Tactility/file/FileLock.h>
extern "C" {
LockHandle tt_lock_alloc_for_file(const char* path) {
auto lock = tt::file::getLock(path);
auto holder = new LockHolder(lock);
return holder;
}
}