summaryrefslogtreecommitdiff
path: root/pages.h
diff options
context:
space:
mode:
Diffstat (limited to 'pages.h')
-rw-r--r--pages.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/pages.h b/pages.h
index e141376..3c34d98 100644
--- a/pages.h
+++ b/pages.h
@@ -21,12 +21,18 @@
#include <unistd.h>
#include <sys/stat.h>
+struct fileorstring
+{
+ const char *file;
+ const char *str;
+};
+
/* helpers */
int createfile(const char *file);
long findstring(const char *file, const char *str);
int deletebytes(const char *file, long offset, size_t bytes);
-int writefileatbyte(const char *dest, const char *source, long offset);
-int replaceinpage(const char *outfile, const char *toreplace, const char *infile);
+int writeatbyte(const char *dest, struct fileorstring *source, long offset);
+int replaceinpage(const char *outfile, const char *toreplace, struct fileorstring *source);
char *gettime();
int createtmpfile(const char *name, const char *content, size_t size);