[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
notice mutations.h notice.c notice_mig.h
From: |
Samuel Thibault |
Subject: |
notice mutations.h notice.c notice_mig.h |
Date: |
Thu, 14 May 2015 10:53:26 +0000 |
CVSROOT: /cvsroot/hurdextras
Module name: notice
Changes by: Samuel Thibault <sthibaul> 15/05/14 10:53:26
Modified files:
. : mutations.h notice.c notice_mig.h
Log message:
Add payload support
* mutations.h (FS_NOTIFY_INTRAN_PAYLOAD): New macro
* notice.c (notice_payload_to_handle): New function
* notice_mig.h (notice_payload_to_handle): New declaration
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/notice/mutations.h?cvsroot=hurdextras&r1=1.1&r2=1.2
http://cvs.savannah.gnu.org/viewcvs/notice/notice.c?cvsroot=hurdextras&r1=1.2&r2=1.3
http://cvs.savannah.gnu.org/viewcvs/notice/notice_mig.h?cvsroot=hurdextras&r1=1.1&r2=1.2
Patches:
Index: mutations.h
===================================================================
RCS file: /cvsroot/hurdextras/notice/mutations.h,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -b -r1.1 -r1.2
--- mutations.h 13 Apr 2006 00:04:47 -0000 1.1
+++ mutations.h 14 May 2015 10:53:25 -0000 1.2
@@ -1,4 +1,5 @@
/* Let MiG do the work... */
#define FS_NOTIFY_INTRAN notice_handle_t notice_port_to_handle (fs_notify_t)
+#define FS_NOTIFY_INTRAN_PAYLOAD notice_handle_t notice_payload_to_handle
#define FS_NOTIFY_DESTRUCTOR ports_port_deref (notice_handle_t)
#define FS_NOTIFY_IMPORTS import "notice_mig.h";
Index: notice.c
===================================================================
RCS file: /cvsroot/hurdextras/notice/notice.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -b -r1.2 -r1.3
--- notice.c 8 Jul 2013 09:02:38 -0000 1.2
+++ notice.c 14 May 2015 10:53:26 -0000 1.3
@@ -191,6 +191,13 @@
return ports_lookup_port (bucket, port, NULL);
}
+/* Called by MiG. */
+struct notice_handle *
+notice_payload_to_handle (unsigned long payload)
+{
+ return ports_lookup_payload (bucket, payload, NULL);
+}
+
error_t
S_file_changed (struct notice_handle *notice, file_changed_type_t change,
off_t start, off_t end)
Index: notice_mig.h
===================================================================
RCS file: /cvsroot/hurdextras/notice/notice_mig.h,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -b -r1.1 -r1.2
--- notice_mig.h 13 Apr 2006 00:04:47 -0000 1.1
+++ notice_mig.h 14 May 2015 10:53:26 -0000 1.2
@@ -7,5 +7,8 @@
/* Intran function. */
notice_handle_t notice_port_to_handle (mach_port_t);
+/* Intran_payload function. */
+notice_handle_t notice_payload_to_handle (unsigned long payload);
+
/* For ports_port_deref (). */
#include <hurd/ports.h>
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- notice mutations.h notice.c notice_mig.h,
Samuel Thibault <=