From 119890b3a68746f8733676e3f544ef90e1c165c3 Mon Sep 17 00:00:00 2001 From: Giuseppe Scrivano Date: Wed, 11 Feb 2015 15:14:25 +0100 Subject: build: split .c files into .c and .h Signed-off-by: Giuseppe Scrivano --- bspatch.c | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) (limited to 'bspatch.c') diff --git a/bspatch.c b/bspatch.c index b850db7..881d7e3 100644 --- a/bspatch.c +++ b/bspatch.c @@ -25,17 +25,7 @@ * POSSIBILITY OF SUCH DAMAGE. */ -#include - -struct bspatch_stream -{ - void* opaque; - int (*read)(const struct bspatch_stream* stream, void* buffer, int length); -}; - -int bspatch(const uint8_t* old, int64_t oldsize, uint8_t* new, int64_t newsize, struct bspatch_stream* stream); - -#if !defined(BSPATCH_HEADER_ONLY) +#include "bspatch.h" static int64_t offtin(uint8_t *buf) { @@ -195,4 +185,3 @@ int main(int argc,char * argv[]) } #endif -#endif -- cgit v1.2.1