diff options
author | Justus Winter <4winter@informatik.uni-hamburg.de> | 2013-11-28 14:12:25 +0100 |
---|---|---|
committer | Justus Winter <4winter@informatik.uni-hamburg.de> | 2014-12-07 15:38:18 +0100 |
commit | d3bbc5f4309b85e36e260e9c0ece006b131db3f5 (patch) | |
tree | 5b25f6faeb2c658a4491a55cdb560b847b6a6ee9 /libcons/priv.h | |
parent | 0095490a7918ba60483d656214dd9080601e886f (diff) |
libcons: add a payload-aware intrans function
* libcons/mutations.h: Add mutator.
* libcons/priv.h (begin_using_notify_payload): New function.
Diffstat (limited to 'libcons/priv.h')
-rw-r--r-- | libcons/priv.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libcons/priv.h b/libcons/priv.h index 38971ff8..6cdf3dbc 100644 --- a/libcons/priv.h +++ b/libcons/priv.h @@ -80,6 +80,12 @@ begin_using_notify_port (fs_notify_t port) return ports_lookup_port (cons_port_bucket, port, cons_port_class); } +static inline cons_notify_t +begin_using_notify_payload (unsigned long payload) +{ + return ports_lookup_payload (cons_port_bucket, payload, cons_port_class); +} + /* Called by MiG after server routines have been run; this balances begin_using_notify_port, and is arranged for the fs_notify interfaces by mutations.h. */ |