SDK improvements (#352)
TactilityC additions for: - C randomization functions - Tactility app paths - Tactility locks
This commit is contained in:
committed by
GitHub
parent
6dc4f698c9
commit
c7621b5e4c
@@ -0,0 +1,13 @@
|
||||
#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;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user