[vlc-commits] objects: allow using DumpStructure in other parts of the core

Steve Lhomme git at videolan.org
Thu Mar 14 11:13:44 CET 2019


vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Tue Mar 12 09:02:40 2019 +0100| [92d04ffd9ab378e51d1e93620b4fa4e0395a16b0] | committer: Steve Lhomme

objects: allow using DumpStructure in other parts of the core

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=92d04ffd9ab378e51d1e93620b4fa4e0395a16b0
---

 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 52dc3cf36c..85d2bc8fab 100644
--- a/src/misc/objects.c
+++ b/src/misc/objects.c
@@ -125,7 +125,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 * );
 



More information about the vlc-commits mailing list