summaryrefslogtreecommitdiffstats
path: root/src/suspend_no.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2010-04-27 09:03:05 +0200
committerChristophe Grenier <grenier@cgsecurity.org>2010-04-27 09:03:05 +0200
commitd88cbb2bb02c3f89e5b0d55510c649e82632111e (patch)
tree7c0d5b797d621cb91986ea6bb8c6275204556fde /src/suspend_no.c
parentc1afbdf78024f1590b7805244ddc40ba16297379 (diff)
PhotoRec: improve jpg file recovery in brute-force mode
Diffstat (limited to 'src/suspend_no.c')
-rw-r--r--src/suspend_no.c22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/suspend_no.c b/src/suspend_no.c
new file mode 100644
index 0000000..a5bdc30
--- /dev/null
+++ b/src/suspend_no.c
@@ -0,0 +1,22 @@
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
+
+#if defined(HAVE_LIBJPEG) && defined(HAVE_JPEGLIB_H)
+#include <stdio.h>
+#ifdef HAVE_STDLIB_H
+#include <stdlib.h>
+#endif
+#include <jpeglib.h>
+#include "suspend.h"
+
+void suspend_memory(j_common_ptr cinfo) {
+};
+
+int resume_memory(j_common_ptr cinfo)
+{
+ /* Can't resume */
+ return -1;
+};
+#endif