#include <glib/gmacros.h>
+#include <glib/gmain.h>
+#ifdef ORBIT2 /* Prevent missing $(ORBIT_CFLAGS) outside of libcaptive/sandbox/ */
#include "sandbox.h"
#include "captive/client-vfs.h"
+#include "../client/vfs-parent.h"
+#endif
G_BEGIN_DECLS
+#ifdef ORBIT2 /* Prevent missing $(ORBIT_CFLAGS) outside of libcaptive/sandbox/ */
extern CORBA_Environment captive_corba_ev;
extern CORBA_ORB captive_corba_orb;
extern PortableServer_POA captive_corba_poa;
+#endif
-gboolean captive_sandbox_spawn(CaptiveVfsObject *child_captive_vfs_object,
- Captive_Vfs *corba_Vfs_object_return,Captive_GlibLogFunc *corba_GlibLogFunc_object_return,int *parentheart_fds_1_return);
-gboolean validate_CORBA_Environment(const CORBA_Environment *evp);
-GnomeVFSResult captive_sandbox_parent_return_from_CORBA_Environment(CORBA_Environment *evp);
-void captive_sandbox_child_GnomeVFSResultException_throw(CORBA_Environment *evp,GnomeVFSResult errvfsresult);
+void captive_corba_sandbox_child(const gchar *chrooted_orbit_dir);
+void sandbox_child_prepare_shutdown(void);
+void captive_sandbox_fd_closeup(int fd_first_to_delete);
void sandbox_child_shutdown(void);
+GMainLoop *captive_corba_get_loop(void);
+GMainContext *captive_corba_get_context(void);
+#ifdef ORBIT2 /* Prevent missing $(ORBIT_CFLAGS) outside of libcaptive/sandbox/ */
+gboolean captive_sandbox_spawn(CaptiveVfsParentObject *captive_vfs_parent_object);
+gboolean validate_CORBA_Environment(CORBA_Environment *evp);
+GnomeVFSResult captive_sandbox_parent_return_from_CORBA_Environment
+ (CORBA_Environment *evp,CaptiveVfsParentObject *captive_vfs_parent_object);
+void captive_sandbox_child_GnomeVFSResultException_throw(CORBA_Environment *evp,GnomeVFSResult errvfsresult);
+#endif
G_END_DECLS