diff options
author | Simon Tatham <anakin@pobox.com> | 2017-05-18 19:00:07 +0100 |
---|---|---|
committer | Simon Tatham <anakin@pobox.com> | 2017-05-18 19:00:07 +0100 |
commit | 5e1f0d7e9fb3b05c5867c57c9dfee0363441feae (patch) | |
tree | 70dc283df890730d54003115722aca6d277a509a /readcab.c | |
parent | 8574dcc8c56971345a688a61a8d2022f4cc000cc (diff) | |
download | wix-on-linux-5e1f0d7e9fb3b05c5867c57c9dfee0363441feae.tar.gz wix-on-linux-5e1f0d7e9fb3b05c5867c57c9dfee0363441feae.tar.bz2 wix-on-linux-5e1f0d7e9fb3b05c5867c57c9dfee0363441feae.zip |
Move CAB-reading into its own file.
Diffstat (limited to 'readcab.c')
-rw-r--r-- | readcab.c | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/readcab.c b/readcab.c new file mode 100644 index 0000000..c9171ca --- /dev/null +++ b/readcab.c | |||
@@ -0,0 +1,41 @@ | |||
1 | #include <stdint.h> | ||
2 | #include <stdbool.h> | ||
3 | #include <uchar.h> | ||
4 | #include <err.h> | ||
5 | |||
6 | #include "memory.h" | ||
7 | #include "subproc.h" | ||
8 | #include "uchars.h" | ||
9 | |||
10 | uint32_t ExtractCabBegin(void) | ||
11 | { | ||
12 | return 0; | ||
13 | } | ||
14 | |||
15 | uint32_t ExtractCab(const char16_t *wzCabinet, const char16_t *wzExtractDir) | ||
16 | { | ||
17 | char *cab = ascii(wzCabinet, true), *dir = ascii(wzExtractDir, true); | ||
18 | warnx("ExtractCab(\"%s\", \"%s\"", cab, dir); | ||
19 | system_argv("cabextract", "-d", dir, cab, cNULL); | ||
20 | sfree(cab); | ||
21 | sfree(dir); | ||
22 | return 0; | ||
23 | } | ||
24 | |||
25 | void ExtractCabFinish(void) | ||
26 | { | ||
27 | } | ||
28 | |||
29 | uint32_t EnumerateCabBegin(void) | ||
30 | { | ||
31 | return 0; | ||
32 | } | ||
33 | |||
34 | uint32_t EnumerateCab(const char16_t *wzCabinet, void *pfnNotify) | ||
35 | { | ||
36 | return -1; /* we don't support this call */ | ||
37 | } | ||
38 | |||
39 | void EnumerateCabFinish(void) | ||
40 | { | ||
41 | } | ||