aboutsummaryrefslogtreecommitdiff
path: root/src/util.c
diff options
context:
space:
mode:
authorRaghuram Subramani <raghus2247@gmail.com>2025-07-29 21:31:45 +0530
committerRaghuram Subramani <raghus2247@gmail.com>2025-07-29 21:31:45 +0530
commitc88c251b899ca0e0b3fe34217bdf2d6ce1b677be (patch)
tree3c34b113779975d905d06c9667a085520b784a85 /src/util.c
parent46f3de7578f57a9839b92e9e5194fe22730588bd (diff)
util: get_wrapped()
Diffstat (limited to 'src/util.c')
-rw-r--r--src/util.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/util.c b/src/util.c
index faa73c9..4e3dfc9 100644
--- a/src/util.c
+++ b/src/util.c
@@ -34,3 +34,9 @@ wrap_ptr(void *ptr)
wrapper->ptr = ptr;
return wrapper;
}
+
+void *
+get_wrapped(ptr_wrapper_t *wrapper)
+{
+ return wrapper->ptr;
+}