summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Bugaev <bugaevc@gmail.com>2021-04-26 20:08:18 +0300
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2021-04-26 20:15:43 +0200
commit2dfc9328efbd744545586dee18ad0ee2ffa9eb9d (patch)
tree12da4814b9d2fbcc06ec8b5227dfd1ef46f35926
parentde3e9b35373bff3bd491c0a555cc825b6f22258d (diff)
Implement MiG intran payload support
This fixes a build error. Message-Id: <20210426170820.67042-2-bugaevc@gmail.com>
-rw-r--r--stow-mutations.h1
-rw-r--r--stow-priv.h4
-rw-r--r--stow.c9
3 files changed, 14 insertions, 0 deletions
diff --git a/stow-mutations.h b/stow-mutations.h
index d36280d..95c1e7f 100644
--- a/stow-mutations.h
+++ b/stow-mutations.h
@@ -21,6 +21,7 @@
/* Only CPP macro definitions should go in this file. */
#define FS_NOTIFY_INTRAN stow_notify_t begin_using_notify_port (fs_notify_t)
+#define FS_NOTIFY_INTRAN_PAYLOAD stow_notify_t begin_using_notify_port_payload
#define FS_NOTIFY_DESTRUCTOR end_using_notify_port (stow_notify_t)
#define FS_NOTIFY_IMPORTS import "stow-priv.h";
diff --git a/stow-priv.h b/stow-priv.h
index 2212ac9..eeae7b3 100644
--- a/stow-priv.h
+++ b/stow-priv.h
@@ -36,6 +36,10 @@ typedef struct stow_notify *stow_notify_t;
arranges for this to happen for the fs_notify interfaces. */
stow_notify_t begin_using_notify_port (fs_notify_t port);
+/* Called by MiG to translate ports into stow_notify_t when using the
+ protected payload feature. mutations.h arranges for this to happen
+ for the fs_notify interfaces. */
+stow_notify_t begin_using_notify_port_payload (unsigned long payload);
/* Called by MiG after server routines have been run; this balances
begin_using_notify_port, and is arranged for the fs_notify
diff --git a/stow.c b/stow.c
index be1cbad..812d33b 100644
--- a/stow.c
+++ b/stow.c
@@ -169,6 +169,15 @@ begin_using_notify_port (fs_notify_t port)
return ports_lookup_port (stow_port_bucket, port, stow_port_class);
}
+/* Called by MiG to translate ports into stow_notify_t when using the
+ protected payload feature. mutations.h arranges for this to happen
+ for the fs_notify interfaces. */
+stow_notify_t
+begin_using_notify_port_payload (unsigned long payload)
+{
+ return ports_lookup_payload (stow_port_bucket, payload, stow_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. */