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 #ifdef ORBIT2 /* Prevent missing $(ORBIT_CFLAGS) outside of libcaptive/sandbox/ */
27 #include "captive/client-vfs.h"
33 #ifdef ORBIT2 /* Prevent missing $(ORBIT_CFLAGS) outside of libcaptive/sandbox/ */
34 extern CORBA_Environment captive_corba_ev;
35 extern CORBA_ORB captive_corba_orb;
36 extern PortableServer_POA captive_corba_poa;
39 void captive_corba_sandbox_child(const gchar *chrooted_orbit_dir);
40 void sandbox_child_prepare_shutdown(void);
41 void captive_sandbox_fd_closeup(int fd_first_to_delete);
42 void sandbox_child_shutdown(void);
43 #ifdef ORBIT2 /* Prevent missing $(ORBIT_CFLAGS) outside of libcaptive/sandbox/ */
44 gboolean captive_sandbox_spawn(CaptiveVfsObject *child_captive_vfs_object,
45 Captive_Vfs *corba_Vfs_object_return,Captive_GLogFunc *corba_GLogFunc_object_return,
46 Captive_CaptiveIOChannel *corba_CaptiveIOChannel_object_return,GIOChannel **corba_parent_giochanel_blind_ptr,
47 int *parentheart_fds_1_return,pid_t *child_pid_return);
48 gboolean validate_CORBA_Environment(CORBA_Environment *evp);
49 GnomeVFSResult captive_sandbox_parent_return_from_CORBA_Environment(CORBA_Environment *evp);
50 void captive_sandbox_child_GnomeVFSResultException_throw(CORBA_Environment *evp,GnomeVFSResult errvfsresult);
51 gboolean captive_sandbox_parent_query_vfs_retry(CORBA_Environment *evp,CaptiveVfsObject *captive_vfs_object);
57 #endif /* _SERVER_SPLIT_H */