summaryrefslogtreecommitdiff
path: root/libports/extern-inline.c
diff options
context:
space:
mode:
authorJustus Winter <4winter@informatik.uni-hamburg.de>2013-11-23 16:19:08 +0100
committerJustus Winter <4winter@informatik.uni-hamburg.de>2014-12-07 15:38:17 +0100
commit92b49a0fc6f24cbd970f8a9f79cf2513cd58a1b3 (patch)
tree6e0105a70e498ca059433e87d679dc82f065015a /libports/extern-inline.c
parent9a5ede46033e225b870cd289221ac0608540a6d3 (diff)
libports: add `ports_lookup_payload' and `ports_payload_get_name'
These two functions map payloads to objects and port names. The former can be used like `ports_lookup_port' to look up objects, the latter to map payloads to port names if the server function expects a `mach_port_t'. * libports/ports.h: Add function ports_payload_get_name. * libports/lookup-payload.c: New file. * libports/ports.h (ports_lookup_payload): Add declaration. * libports/Makefile (SRCS): Add lookup-payload.c.
Diffstat (limited to 'libports/extern-inline.c')
-rw-r--r--libports/extern-inline.c22
1 files changed, 22 insertions, 0 deletions
diff --git a/libports/extern-inline.c b/libports/extern-inline.c
new file mode 100644
index 00000000..fbc9e539
--- /dev/null
+++ b/libports/extern-inline.c
@@ -0,0 +1,22 @@
+/* Run time callable functions for extern inlines.
+ Copyright (C) 2014 Free Software Foundation, Inc.
+
+ Written by Justus Winter <4winter@informatik.uni-hamburg.de>
+
+ This file is part of the GNU Hurd.
+
+ The GNU Hurd is free software; you can redistribute it and/or
+ modify it under the terms of the GNU General Public License as
+ published by the Free Software Foundation; either version 2, or (at
+ your option) any later version.
+
+ The GNU Hurd is distributed in the hope that it will be useful, but
+ WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with the GNU Hurd. If not, see <http://www.gnu.org/licenses/>. */
+
+#define PORTS_DEFINE_EI
+#include "ports.h"