libgsf - Child by name returns only GsfInput

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

libgsf - Child by name returns only GsfInput

GnuMeric mailing list

Hi,

 

I'm using libgsf library to create a structed file with some nested childs.

 

for example: A(root) -> B( dir) -> C (dir) A is the root, B is a child directory and of a and C is child directory of B.

 

later on, when I have only the root I want to add a child to C so I want to open the path up to C, but if I open C it returns it as GsfInputFile.

 

GsfInput* gsf_infile_child_by_name (GsfInfile *infile, char const *name);

In order to add child to C I need it to be GsfOutFile, but I can only get c as inputFile.

 

GsfOutput* gsf_outfile_new_child (GsfOutfile *outfile, char const *name, gboolean is_dir);

Any thoughts?

 

Thanks

Yogev Drami

 


_______________________________________________
gnumeric-list mailing list
[hidden email]
https://mail.gnome.org/mailman/listinfo/gnumeric-list
Reply | Threaded
Open this post in threaded view
|

Re: libgsf - Child by name returns only GsfInput

Morten Welinder-2
The GsfOutfile interface is write-once for files and directories.
Therefore you must hold on to the GstOutfile from the C was created
and use that.

M.
_______________________________________________
gnumeric-list mailing list
[hidden email]
https://mail.gnome.org/mailman/listinfo/gnumeric-list