summaryrefslogtreecommitdiff
path: root/platform/x11/x11_main.c
diff options
context:
space:
mode:
authorPaul Gardiner <paulg.artifex@glidos.net>2013-07-04 12:11:20 +0100
committerPaul Gardiner <paulg.artifex@glidos.net>2013-07-04 12:11:20 +0100
commitac84904af638b243284e24d5f401c3f1a21cb0ef (patch)
tree32e9f6b3b0d0ad83cb8f2dd0c41bc5e60b53ed3e /platform/x11/x11_main.c
parentb33b3b41100f2bb0b63dbf270bdd4401451c081a (diff)
downloadmupdf-ac84904af638b243284e24d5f401c3f1a21cb0ef.tar.xz
Update pdf_write_document to support incremental update
Diffstat (limited to 'platform/x11/x11_main.c')
-rw-r--r--platform/x11/x11_main.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/platform/x11/x11_main.c b/platform/x11/x11_main.c
index 481adce1..0bcb98f4 100644
--- a/platform/x11/x11_main.c
+++ b/platform/x11/x11_main.c
@@ -281,6 +281,17 @@ void winreplacefile(char *source, char *target)
rename(source, target);
}
+void wincopyfile(char *source, char *target)
+{
+ char *buf = malloc(strlen(source)+strlen(target)+4);
+ if (buf)
+ {
+ sprintf(buf, "cp %s %s", source, target);
+ system(buf);
+ free(buf);
+ }
+}
+
void cleanup(pdfapp_t *app)
{
fz_context *ctx = app->ctx;