summaryrefslogtreecommitdiff
path: root/src/internal/slibtool_symlink_impl.h
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2021-04-15 10:06:44 +0000
committermidipix <writeonce@midipix.org>2021-04-15 13:26:15 +0000
commitcc0827cebd811eab83d091ffde3780e5c0084160 (patch)
tree87209192602b7a0f61d774632e03339c9bffe9a7 /src/internal/slibtool_symlink_impl.h
parent1ce3d5d23f5c66c8223b5567f0d7d5b630e819e1 (diff)
downloadslibtool-cc0827cebd811eab83d091ffde3780e5c0084160.tar.bz2
slibtool-cc0827cebd811eab83d091ffde3780e5c0084160.tar.xz
internals: slbt_create_symlink(): properly handle absolute-path link targets.
Diffstat (limited to 'src/internal/slibtool_symlink_impl.h')
-rw-r--r--src/internal/slibtool_symlink_impl.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/internal/slibtool_symlink_impl.h b/src/internal/slibtool_symlink_impl.h
index 402208c..5619e75 100644
--- a/src/internal/slibtool_symlink_impl.h
+++ b/src/internal/slibtool_symlink_impl.h
@@ -4,12 +4,16 @@
#include <stdbool.h>
#include <slibtool/slibtool.h>
+#define SLBT_SYMLINK_DEFAULT 0x0000
+#define SLBT_SYMLINK_LITERAL 0x0001
+#define SLBT_SYMLINK_WRAPPER 0x0002
+
int slbt_create_symlink(
const struct slbt_driver_ctx * dctx,
struct slbt_exec_ctx * ectx,
const char * target,
const char * lnkname,
- bool flawrapper);
+ uint32_t options);
int slbt_symlink_is_a_placeholder(int fdcwd, char * lnkpath);