mirror of
https://github.com/sparkle-project/Sparkle
synced 2026-11-25 04:47:55 +00:00
The delta file is a custom format created from the xar container format. It describes the necessary modifications to transform the contents of the old directory in to the contents of the new. Binary diffs are used to compress the differences between large files such as Mach-O binaries. The binary diffs are generated by bsdiff and applied via bspatch, both from bsdiff 4.3, the source of which is included and used under a BSD-style license.
26 lines
625 B
Objective-C
26 lines
625 B
Objective-C
//
|
|
// SUBinaryDeltaCommon.h
|
|
// Sparkle
|
|
//
|
|
// Created by Mark Rowe on 2009-06-01.
|
|
// Copyright 2009 Mark Rowe. All rights reserved.
|
|
//
|
|
|
|
#ifndef SUBINARYDELTACOMMON_H
|
|
#define SUBINARYDELTACOMMON_H
|
|
|
|
#include <fts.h>
|
|
|
|
@class NSString;
|
|
@class NSData;
|
|
|
|
extern int compareFiles(const FTSENT **a, const FTSENT **b);
|
|
extern NSData *hashOfFile(FTSENT *ent);
|
|
extern NSString *hashOfTree(NSString *path);
|
|
extern void removeTree(NSString *path);
|
|
extern void copyTree(NSString *source, NSString *dest);
|
|
extern NSString *pathRelativeToDirectory(NSString *directory, NSString *path);
|
|
NSString *temporaryFilename(NSString *base);
|
|
|
|
#endif
|