summaryrefslogtreecommitdiff
path: root/bsdiff.c
diff options
context:
space:
mode:
authorGiuseppe Scrivano <gscrivan@redhat.com>2015-02-11 15:14:25 +0100
committerGiuseppe Scrivano <gscrivan@redhat.com>2015-03-26 09:34:26 +0100
commit119890b3a68746f8733676e3f544ef90e1c165c3 (patch)
treed0ee6c2f17b849da85535b75a88551056c559bc4 /bsdiff.c
parent95f126c7eec42de0dec71b93362b9ea05033c62d (diff)
downloadbsdiff-119890b3a68746f8733676e3f544ef90e1c165c3.tar.gz
build: split .c files into .c and .h
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
Diffstat (limited to 'bsdiff.c')
-rw-r--r--bsdiff.c21
1 files changed, 1 insertions, 20 deletions
diff --git a/bsdiff.c b/bsdiff.c
index 3857c01..5be4476 100644
--- a/bsdiff.c
+++ b/bsdiff.c
@@ -25,24 +25,7 @@
* POSSIBILITY OF SUCH DAMAGE.
*/
-#include <stddef.h>
-#include <stdint.h>
-
-struct bsdiff_stream
-{
- void* opaque;
-
- void* (*malloc)(size_t size);
- void (*free)(void* ptr);
- int (*write)(struct bsdiff_stream* stream, const void* buffer, int size);
-};
-
-int bsdiff(const uint8_t* old, int64_t oldsize, const uint8_t* new, int64_t newsize, struct bsdiff_stream* stream);
-
-#if !defined(BSDIFF_HEADER_ONLY)
-
-#include <limits.h>
-#include <string.h>
+#include "bsdiff.h"
#define MIN(x,y) (((x)<(y)) ? (x) : (y))
@@ -457,5 +440,3 @@ int main(int argc,char *argv[])
}
#endif
-
-#endif