diff options
author | wangbiao <biao716.wang@samsung.com> | 2023-11-16 18:17:42 +0900 |
---|---|---|
committer | wangbiao <biao716.wang@samsung.com> | 2023-11-16 18:17:42 +0900 |
commit | c30d127e8780dc678168ee121b9f2eeb1a8aaafa (patch) | |
tree | cdc9ddc3123edd5741e5151f3076c9bfc9535916 /lib/rpmlock.h | |
parent | 258ff2bdb80c458b743417c427f66fa5f27bf7c5 (diff) | |
download | librpm-tizen-c30d127e8780dc678168ee121b9f2eeb1a8aaafa.tar.gz librpm-tizen-c30d127e8780dc678168ee121b9f2eeb1a8aaafa.tar.bz2 librpm-tizen-c30d127e8780dc678168ee121b9f2eeb1a8aaafa.zip |
Upgrade version to 4.14tizen/4.14.1.1.tizen20230628
Change-Id: I21bf1a3a7c25cbec43022202cf2e5865b603a309
Signed-off-by: wangbiao <biao716.wang@samsung.com>
Diffstat (limited to 'lib/rpmlock.h')
-rw-r--r-- | lib/rpmlock.h | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/lib/rpmlock.h b/lib/rpmlock.h index aa85451d6..308794fea 100644 --- a/lib/rpmlock.h +++ b/lib/rpmlock.h @@ -5,12 +5,27 @@ typedef struct rpmlock_s * rpmlock; +enum { + RPMLOCK_READ = 1 << 0, + RPMLOCK_WRITE = 1 << 1, + RPMLOCK_WAIT = 1 << 2, +}; + #ifdef __cplusplus extern "C" { #endif RPM_GNUC_INTERNAL -rpmlock rpmlockAcquire(const char *lock_path, const char *descr); +rpmlock rpmlockNew(const char *lock_path, const char *descr); + +RPM_GNUC_INTERNAL +rpmlock rpmlockNewAcquire(const char *lock_path, const char *descr); + +RPM_GNUC_INTERNAL +int rpmlockAcquire(rpmlock lock); + +RPM_GNUC_INTERNAL +void rpmlockRelease(rpmlock lock); RPM_GNUC_INTERNAL rpmlock rpmlockFree(rpmlock lock); |