From b71bdf9c357b562076f4ad21a8e52f160743ae49 Mon Sep 17 00:00:00 2001 From: Justus Winter <4winter@informatik.uni-hamburg.de> Date: Sat, 3 Aug 2013 17:11:06 +0200 Subject: Make reincarnation both a tool and a translator --- priv.h | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 priv.h (limited to 'priv.h') 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 . */ + +#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__ */ -- cgit v1.2.3