mirror of
https://github.com/ByteWelder/Tactility.git
synced 2026-02-18 19:03:16 +00:00
TactilityC additions for: - C randomization functions - Tactility app paths - Tactility locks
14 lines
261 B
C++
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;
|
|
}
|
|
|
|
}
|