commit-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[hurd] 38/64: libports: add a payload-aware intrans function


From: Samuel Thibault
Subject: [hurd] 38/64: libports: add a payload-aware intrans function
Date: Wed, 10 Dec 2014 15:17:06 +0000

This is an automated email from the git hooks/post-receive script.

sthibault pushed a commit to branch upstream
in repository hurd.

commit f8ce37835ad53f67da245db6fed7d2a028514b01
Author: Justus Winter <address@hidden>
Date:   Tue Apr 8 23:40:26 2014 +0200

    libports: add a payload-aware intrans function
    
    * libports/mig-decls.h (begin_using_port_info_payload): New function.
    * libports/mig-mutate.h: Add mutator.
---
 libports/mig-decls.h  | 6 ++++++
 libports/mig-mutate.h | 4 ++++
 2 files changed, 10 insertions(+)

diff --git a/libports/mig-decls.h b/libports/mig-decls.h
index f8c4f15..c88ff26 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)
 {
diff --git a/libports/mig-mutate.h b/libports/mig-mutate.h
index 4c011b6..1c96fea 100644
--- a/libports/mig-mutate.h
+++ b/libports/mig-mutate.h
@@ -19,6 +19,8 @@
 
 #define NOTIFY_INTRAN                                          \
   port_info_t begin_using_port_info_port (mach_port_t)
+#define NOTIFY_INTRAN_PAYLOAD                                  \
+  port_info_t begin_using_port_info_payload
 #define NOTIFY_DESTRUCTOR                                      \
   end_using_port_info (port_info_t)
 #define NOTIFY_IMPORTS                                         \
@@ -26,6 +28,8 @@
 
 #define INTERRUPT_INTRAN                                       \
   port_info_t begin_using_port_info_port (mach_port_t)
+#define INTERRUPT_INTRAN_PAYLOAD                               \
+  port_info_t begin_using_port_info_payload
 #define INTERRUPT_DESTRUCTOR                                   \
   end_using_port_info (port_info_t)
 #define INTERRUPT_IMPORTS                                      \

-- 
Alioth's /usr/local/bin/git-commit-notice on 
/srv/git.debian.org/git/pkg-hurd/hurd.git



reply via email to

[Prev in Thread] Current Thread [Next in Thread]