summaryrefslogtreecommitdiff
path: root/libports/mig-decls.h
diff options
context:
space:
mode:
authorJustus Winter <4winter@informatik.uni-hamburg.de>2014-04-08 23:40:26 +0200
committerJustus Winter <4winter@informatik.uni-hamburg.de>2014-12-07 15:38:17 +0100
commitf8ce37835ad53f67da245db6fed7d2a028514b01 (patch)
tree6823403b7186854774bde6c5c7c78623c3c18110 /libports/mig-decls.h
parent92b49a0fc6f24cbd970f8a9f79cf2513cd58a1b3 (diff)
libports: add a payload-aware intrans function
* libports/mig-decls.h (begin_using_port_info_payload): New function. * libports/mig-mutate.h: Add mutator.
Diffstat (limited to 'libports/mig-decls.h')
-rw-r--r--libports/mig-decls.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/libports/mig-decls.h b/libports/mig-decls.h
index f8c4f15c..c88ff261 100644
--- a/libports/mig-decls.h
+++ b/libports/mig-decls.h
@@ -30,6 +30,12 @@ begin_using_port_info_port (mach_port_t port)
return ports_lookup_port (0, port, 0);
}
+static inline struct port_info * __attribute__ ((unused))
+begin_using_port_info_payload (unsigned long payload)
+{
+ return ports_lookup_payload (0, payload, 0);
+}
+
static inline void __attribute__ ((unused))
end_using_port_info (struct port_info *p)
{