2 * Include file for CORBA/ORBit split-mode initializer
3 * Copyright (C) 2003 Jan Kratochvil <project-captive@jankratochvil.net>
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; exactly version 2 of June 1991 is required
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, write to the Free Software
16 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
20 #ifndef _SERVER_SPLIT_H
21 #define _SERVER_SPLIT_H 1
24 #include <glib/gmacros.h>
25 #include <glib/gmain.h>
26 #ifdef ORBIT2 /* Prevent missing $(ORBIT_CFLAGS) outside of libcaptive/sandbox/ */
28 #include "captive/client-vfs.h"
29 #include "../client/vfs-parent.h"
35 #ifdef ORBIT2 /* Prevent missing $(ORBIT_CFLAGS) outside of libcaptive/sandbox/ */
36 extern CORBA_Environment captive_corba_ev;
37 extern CORBA_ORB captive_corba_orb;
38 extern PortableServer_POA captive_corba_poa;
41 void captive_corba_sandbox_child(const gchar *chrooted_orbit_dir);
42 void sandbox_child_prepare_shutdown(void);
43 void captive_sandbox_fd_closeup(int fd_first_to_delete);
44 void sandbox_child_shutdown(void);
45 GMainLoop *captive_corba_get_loop(void);
46 GMainContext *captive_corba_get_context(void);
47 #ifdef ORBIT2 /* Prevent missing $(ORBIT_CFLAGS) outside of libcaptive/sandbox/ */
48 gboolean captive_sandbox_spawn(CaptiveVfsParentObject *captive_vfs_parent_object);
49 gboolean validate_CORBA_Environment(CORBA_Environment *evp);
50 GnomeVFSResult captive_sandbox_parent_return_from_CORBA_Environment
51 (CORBA_Environment *evp,CaptiveVfsParentObject *captive_vfs_parent_object);
52 void captive_sandbox_child_GnomeVFSResultException_throw(CORBA_Environment *evp,GnomeVFSResult errvfsresult);
58 #endif /* _SERVER_SPLIT_H */