summaryrefslogtreecommitdiff
path: root/bspatch.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 /bspatch.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 'bspatch.c')
-rw-r--r--bspatch.c13
1 files changed, 1 insertions, 12 deletions
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 <stdint.h>
-
-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