summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/utils.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/utils.c b/src/utils.c
index f1c1420..fa692a0 100644
--- a/src/utils.c
+++ b/src/utils.c
@@ -534,13 +534,12 @@ static void plist_node_print_to_stream(plist_t node, int* indent_level, FILE* st
}
}
-LIBIMOBILEDEVICE_GLUE_API void plist_print_to_stream(plist_t plist, FILE* stream)
+LIBIMOBILEDEVICE_GLUE_API void plist_print_to_stream_with_indentation(plist_t plist, FILE* stream, unsigned int indentation)
{
- int indent = 0;
-
if (!plist || !stream)
return;
+ int indent = indentation;
switch (plist_get_node_type(plist)) {
case PLIST_DICT:
plist_dict_print_to_stream(plist, &indent, stream);
@@ -552,3 +551,8 @@ LIBIMOBILEDEVICE_GLUE_API void plist_print_to_stream(plist_t plist, FILE* stream
plist_node_print_to_stream(plist, &indent, stream);
}
}
+
+LIBIMOBILEDEVICE_GLUE_API void plist_print_to_stream(plist_t plist, FILE* stream)
+{
+ plist_print_to_stream_with_indentation(plist, stream, 0);
+}