[vlc-devel] [PATCH 3/4] objects: allow using DumpStructure in other parts of the core

Steve Lhomme robux4 at ycbcr.xyz
Wed Mar 13 09:01:17 CET 2019


---
 src/misc/objects.c   | 2 +-
 src/misc/variables.h | 1 +
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/misc/objects.c b/src/misc/objects.c
index 42adaefa40..1df5988c7a 100644
--- a/src/misc/objects.c
+++ b/src/misc/objects.c
@@ -117,7 +117,7 @@ static void PrintObject(vlc_object_t *obj, FILE *output)
     vlc_restorecancel (canc);
 }
 
-static void DumpStructureLocked(vlc_object_t *obj, FILE *output, unsigned level)
+void DumpStructureLocked(vlc_object_t *obj, FILE *output, unsigned level)
 {
     PrintObject(obj, output);
 
diff --git a/src/misc/variables.h b/src/misc/variables.h
index b850553687..ce3f27de31 100644
--- a/src/misc/variables.h
+++ b/src/misc/variables.h
@@ -60,6 +60,7 @@ struct vlc_object_internals
 # define vlc_externals( priv ) ((vlc_object_t *)((priv) + 1))
 
 void DumpVariables(vlc_object_t *obj);
+void DumpStructureLocked(vlc_object_t *obj, FILE *output, unsigned level);
 
 extern void var_DestroyAll( vlc_object_t * );
 
-- 
2.17.1



More information about the vlc-devel mailing list