libgsf, GsfInfileZip



Hello,

This patch does:
* Implements zip file reading.
* Adds two tests for gsf-infile-zip.

Also included 3 new files (gsf/gsf-zip-impl.h, tests/test-cat-zip.c,
tests/test-ls-zip.c).

Also, while reading gsf-infile-msole, I wondered if this is correct:

...
static gboolean
ole_init_info (GsfInfileMSOle *ole, GError **err)
{
...
...

        if (err != NULL)
                *err = g_error_new (gsf_input_error (), 0,
                        "No OLE2 signature");
...
}


Doesn't g_error_new make a new GError? I used
g_error_set () instead of that in gsf-infile-zip.


Tambet

Attachment: diff
Description: Text document

Attachment: test-cat-zip.c
Description: Text Data

Attachment: test-ls-zip.c
Description: Text Data

Attachment: gsf-zip-impl.h
Description: Text Data



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]