From b63d429c8f2c68994600d98bfaddf59ca16fc889 Mon Sep 17 00:00:00 2001 From: Dominik Riebeling Date: Tue, 1 Jan 2013 11:04:21 +0100 Subject: Provide dealloc function to ipodpatcher. On Windows the sector buffer is allocated using VirtualAlloc, thus releasing this buffer should be done using VirtualFree. Provide an additional function for deallocating the buffer so users of ipodpatcher do not need to know about this. Change-Id: Ibb0fc575a185148a389e63935e86a392bf8d180d --- rbutil/ipodpatcher/ipodio.h | 1 + 1 file changed, 1 insertion(+) (limited to 'rbutil/ipodpatcher/ipodio.h') diff --git a/rbutil/ipodpatcher/ipodio.h b/rbutil/ipodpatcher/ipodio.h index 8a2f06cf20..4f1a35dd09 100644 --- a/rbutil/ipodpatcher/ipodio.h +++ b/rbutil/ipodpatcher/ipodio.h @@ -107,6 +107,7 @@ int ipod_scsi_inquiry(struct ipod_t* ipod, int page_code, ssize_t ipod_read(struct ipod_t* ipod, int nbytes); ssize_t ipod_write(struct ipod_t* ipod, int nbytes); int ipod_alloc_buffer(struct ipod_t* ipod, int bufsize); +int ipod_dealloc_buffer(struct ipod_t* ipod); /* In fat32format.c */ int format_partition(struct ipod_t* ipod, int partition); -- cgit v1.2.3