![]() |
![]() |
![]() |
GCab Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy | Properties |
#include <libgcab.h> gboolean (*GCabFileCallback) (GCabFile *file
,gpointer user_data
); GCabFile; GCabFile * gcab_file_new_with_file (const gchar *name
,GFile *file
); GFile * gcab_file_get_file (GCabFile *file
); const gchar * gcab_file_get_name (GCabFile *file
); const gchar * gcab_file_get_extract_name (GCabFile *file
); void gcab_file_set_extract_name (GCabFile *file
,const gchar *name
);
"file" GFile* : Read / Write / Construct Only "name" gchar* : Read / Write / Construct Only
A GCabFile is a handle to a file inside a Cabinet archive.
It can either be a file that is already within an exisiting
archive, or a file that reference a file on disk that will be used
for a new archive creation. In the later case, gcab_file_get_file()
must return a valid handle.
gboolean (*GCabFileCallback) (GCabFile *file
,gpointer user_data
);
The type used for callback called when processing Cabinet archive files.
|
the file being processed |
|
user data passed to the callback. |
GCabFile * gcab_file_new_with_file (const gchar *name
,GFile *file
);
Create a GCabFile from a given GFile, to be added to a GCabCabinet for archive creation.
GFile * gcab_file_get_file (GCabFile *file
);
If the cabinet is being created, get the GFile associated with
file
. This must be an exisiting file that can be read, in order to
be added to the archive during cabinet creation.
If file
is from an existing cabinet, the fuction will return
NULL
.
const gchar * gcab_file_get_name (GCabFile *file
);
Get the file name within the cabinet.
|
a GCabFile |
Returns : |
the cabinet file name |
const gchar * gcab_file_get_extract_name (GCabFile *file
);
Get the file name to use for extraction, or NULL
.
|
a GCabFile |
Returns : |
a file name. [allow-none] |