summaryrefslogtreecommitdiff
path: root/priv.h
diff options
context:
space:
mode:
authorJustus Winter <4winter@informatik.uni-hamburg.de>2013-08-03 17:11:06 +0200
committerJustus Winter <4winter@informatik.uni-hamburg.de>2013-08-03 17:11:06 +0200
commitb71bdf9c357b562076f4ad21a8e52f160743ae49 (patch)
treeca4805d2ac0b23e0146989d877dde07486b4ff75 /priv.h
parentfe15c05b97dcd47643c774d720bbd632c38b2104 (diff)
Make reincarnation both a tool and a translator
Diffstat (limited to 'priv.h')
-rw-r--r--priv.h50
1 files changed, 50 insertions, 0 deletions
diff --git a/priv.h b/priv.h
new file mode 100644
index 0000000..d3e3dbe
--- /dev/null
+++ b/priv.h
@@ -0,0 +1,50 @@
+/* Reincarnation services for translators.
+
+ Copyright (C) 2013 Free Software Foundation, Inc.
+
+ Written by Justus Winter <4winter@informatik.uni-hamburg.de>
+
+ This file might one day be a part of the GNU Hurd.
+
+ This program 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.
+
+ This program 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 this program. If not, see <http://www.gnu.org/licenses/>. */
+
+#ifndef __REINCARNATION_PRIV_H__
+#define __REINCARNATION_PRIV_H__
+
+#include "reincarnation.h"
+
+/* The number of failures. */
+extern unsigned int failures;
+
+/* XXX currently we handle all messages on this port. */
+extern mach_port_t reincarnation_port;
+
+/* Our bootstrap port in case we are called as a translator. */
+extern mach_port_t our_bootstrap;
+
+/* The filesystem node we're putting a translator on. */
+extern file_t node;
+
+/* The control port for any active translator we start up. */
+extern fsys_t active_control;
+
+/* XXX */
+error_t
+register_dead_name_notification (void);
+
+/* XXX */
+error_t
+install_translator (void);
+
+#endif /* __REINCARNATION_PRIV_H__ */