Implemented CaptiveParentConnector sandbox restarts handling GInterface.
[captive.git] / src / libcaptive / sandbox / split.h
1 /* $Id$
2  * Include file for CORBA/ORBit split-mode initializer
3  * Copyright (C) 2003 Jan Kratochvil <project-captive@jankratochvil.net>
4  * 
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
8  * 
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.
13  * 
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
17  */
18
19
20 #ifndef _SERVER_SPLIT_H
21 #define _SERVER_SPLIT_H 1
22
23
24 #include <glib/gmacros.h>
25 #ifdef ORBIT2   /* Prevent missing $(ORBIT_CFLAGS) outside of libcaptive/sandbox/ */
26 #include "sandbox.h"
27 #include "captive/client-vfs.h"
28 #include "../client/vfs-parent.h"
29 #endif
30
31
32 G_BEGIN_DECLS
33
34 #ifdef ORBIT2   /* Prevent missing $(ORBIT_CFLAGS) outside of libcaptive/sandbox/ */
35 extern CORBA_Environment captive_corba_ev;
36 extern CORBA_ORB captive_corba_orb;
37 extern PortableServer_POA captive_corba_poa;
38 #endif
39
40 void captive_corba_sandbox_child(const gchar *chrooted_orbit_dir);
41 void sandbox_child_prepare_shutdown(void);
42 void captive_sandbox_fd_closeup(int fd_first_to_delete);
43 void sandbox_child_shutdown(void);
44 #ifdef ORBIT2   /* Prevent missing $(ORBIT_CFLAGS) outside of libcaptive/sandbox/ */
45 gboolean captive_sandbox_spawn(CaptiveVfsParentObject *captive_vfs_parent_object);
46 gboolean validate_CORBA_Environment(CORBA_Environment *evp);
47 GnomeVFSResult captive_sandbox_parent_return_from_CORBA_Environment
48                 (CORBA_Environment *evp,CaptiveVfsParentObject *captive_vfs_parent_object);
49 void captive_sandbox_child_GnomeVFSResultException_throw(CORBA_Environment *evp,GnomeVFSResult errvfsresult);
50 #endif
51
52 G_END_DECLS
53
54
55 #endif /* _SERVER_SPLIT_H */