summaryrefslogtreecommitdiff
path: root/auth/mig-decls.h
diff options
context:
space:
mode:
authorJustus Winter <4winter@informatik.uni-hamburg.de>2013-11-28 14:43:31 +0100
committerJustus Winter <4winter@informatik.uni-hamburg.de>2014-12-07 15:38:18 +0100
commitedfeb493f9d95e64b747a11abb528d81da47b16a (patch)
tree4e7b3297939afeb1879ae3defa1cae1571506202 /auth/mig-decls.h
parentd3bbc5f4309b85e36e260e9c0ece006b131db3f5 (diff)
auth: add a payload-aware intrans function
* auth/mig-mutate.h: Add mutator. * auth/mig-decls.h (auth_payload_to_handle): New function.
Diffstat (limited to 'auth/mig-decls.h')
-rw-r--r--auth/mig-decls.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/auth/mig-decls.h b/auth/mig-decls.h
index 09c7c70a..fa7b06d3 100644
--- a/auth/mig-decls.h
+++ b/auth/mig-decls.h
@@ -32,6 +32,12 @@ auth_port_to_handle (mach_port_t auth)
return ports_lookup_port (auth_bucket, auth, authhandle_portclass);
}
+static inline struct authhandle * __attribute__ ((unused))
+auth_payload_to_handle (unsigned long payload)
+{
+ return ports_lookup_payload (auth_bucket, payload, authhandle_portclass);
+}
+
static inline void __attribute__ ((unused))
end_using_authhandle (struct authhandle *auth)
{