(CaptiveFileParentObject *captive_file_parent_object,GnomeVFSSeekPosition whence,GnomeVFSFileOffset offset)
{
GnomeVFSResult r;
-xmlNode *xml_action=NULL;
CaptiveVfsParentObject *captive_vfs_parent_object;
g_return_val_if_fail(CAPTIVE_FILE_PARENT_IS_OBJECT(captive_file_parent_object),GNOME_VFS_ERROR_BAD_PARAMETERS);
captive_vfs_parent_object=CAPTIVE_VFS_PARENT_OBJECT(CAPTIVE_FILE_OBJECT(captive_file_parent_object)->vfs);
- if (captive_vfs_parent_object->corba_bug_action) {
- xml_action=xmlNewTextChild(captive_vfs_parent_object->corba_bug_action,NULL,"file_seek",NULL);
- xmlNewProp(xml_action,"object",captive_printf_alloca("%p",captive_file_parent_object));
- xmlNewProp(xml_action,"whence",
- (whence==GNOME_VFS_SEEK_START ? "start" :
- (whence==GNOME_VFS_SEEK_CURRENT ? "current" :
- (whence==GNOME_VFS_SEEK_END ? "end" : captive_printf_alloca("%lu",(unsigned long)whence)))));
- xmlNewProp(xml_action,"offset",captive_printf_alloca("%" G_GINT64_FORMAT,(gint64)offset));
- }
+ /* Do not produce 'xml_action' here as we use only 'slave' point of view
+ * for captive-bug-replay(1).
+ */
switch (whence) {
case GNOME_VFS_SEEK_START:
r=GNOME_VFS_ERROR_BAD_PARAMETERS;
}
- if (xml_action)
- xmlNewProp(xml_action,"result",gnome_vfs_result_to_string(r));
if (r!=GNOME_VFS_OK)
return r;
GnomeVFSResult captive_sandbox_parent_file_tell(CaptiveFileParentObject *captive_file_parent_object,GnomeVFSFileOffset *offset_return)
{
GnomeVFSResult r;
-xmlNode *xml_action=NULL;
CaptiveVfsParentObject *captive_vfs_parent_object;
g_return_val_if_fail(CAPTIVE_FILE_PARENT_IS_OBJECT(captive_file_parent_object),GNOME_VFS_ERROR_BAD_PARAMETERS);
captive_vfs_parent_object=CAPTIVE_VFS_PARENT_OBJECT(CAPTIVE_FILE_OBJECT(captive_file_parent_object)->vfs);
- if (captive_vfs_parent_object->corba_bug_action) {
- xml_action=xmlNewTextChild(captive_vfs_parent_object->corba_bug_action,NULL,"file_tell",NULL);
- xmlNewProp(xml_action,"object",captive_printf_alloca("%p",captive_file_parent_object));
- }
+ /* Do not produce 'xml_action' here as we use only 'slave' point of view
+ * for captive-bug-replay(1).
+ */
*offset_return=captive_file_parent_object->offset;
r=GNOME_VFS_OK;
- if (xml_action)
- xmlNewProp(xml_action,"result",gnome_vfs_result_to_string(r));
+
if (r!=GNOME_VFS_OK)
return r;
- if (xml_action)
- xmlNewProp(xml_action,"offset_return",captive_printf_alloca("%" G_GINT64_FORMAT,(gint64)*offset_return));
-
return GNOME_VFS_OK;
}