[vlc-devel] [PATCH 6/7] objects: remove vlc_object_get_name

Thomas Guillem thomas at gllm.fr
Mon May 27 16:45:15 CEST 2019


---
 include/vlc_objects.h | 13 -------------
 1 file changed, 13 deletions(-)

diff --git a/include/vlc_objects.h b/include/vlc_objects.h
index 0292322e22..3e186281f5 100644
--- a/include/vlc_objects.h
+++ b/include/vlc_objects.h
@@ -192,19 +192,6 @@ static inline struct vlc_logger *vlc_object_logger(vlc_object_t *obj)
 }
 #define vlc_object_logger(o) vlc_object_logger(VLC_OBJECT(o))
 
-/**
- * Tries to get the name of module bound to an object.
- *
- * \warning This function is intrinsically race-prone, as a module may be
- * bound or unbound asynchronously by another thread.
- * Do not trust the result for any purpose other than debugging/tracing.
- *
- * \return Normally, this returns a heap-allocated nul-terminated string
- * which is the name of the module. If no module are bound to the object, it
- * returns NULL. It also returns NULL on error.
- */
-#define vlc_object_get_name(obj) var_GetString(obj, "module-name")
-
 void vlc_object_set_module(vlc_object_t *obj, const module_t *module);
 #define vlc_object_set_module(o, m) vlc_object_set_module(VLC_OBJECT(o), m)
 
-- 
2.20.1



More information about the vlc-devel mailing list