summaryrefslogtreecommitdiff
path: root/user/libimobiledevice/modern-libplist.patch
blob: eac8a774d112c2a7c3f8439c4a787dbb00c770fb (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
Patch-Source: https://github.com/archlinux/svntogit-packages/blob/2f17c7d5c91d164453ea71c28adea93499016af2/trunk/libplist-2.3.0.diff
--
diff --git i/common/utils.c w/common/utils.c
index 7f66ec2..7ebe997 100644
--- i/common/utils.c
+++ w/common/utils.c
@@ -314,7 +314,7 @@ int plist_read_from_filename(plist_t *plist, const char *filename)
 	return 1;
 }
 
-int plist_write_to_filename(plist_t plist, const char *filename, enum plist_format_t format)
+int plist_write_to_filename(plist_t plist, const char *filename, plist_format_t format)
 {
 	char *buffer = NULL;
 	uint32_t length;
diff --git i/common/utils.h w/common/utils.h
index 2c3acec..4faa5bd 100644
--- i/common/utils.h
+++ w/common/utils.h
@@ -51,13 +51,8 @@ char *generate_uuid(void);
 void buffer_read_from_filename(const char *filename, char **buffer, uint64_t *length);
 void buffer_write_to_filename(const char *filename, const char *buffer, uint64_t length);
 
-enum plist_format_t {
-	PLIST_FORMAT_XML,
-	PLIST_FORMAT_BINARY
-};
-
 int plist_read_from_filename(plist_t *plist, const char *filename);
-int plist_write_to_filename(plist_t plist, const char *filename, enum plist_format_t format);
+int plist_write_to_filename(plist_t plist, const char *filename, plist_format_t format);
 
 void plist_print_to_stream(plist_t plist, FILE* stream);