Steve Lhomme pushed to branch master at VideoLAN / VLC
Commits: ab58ea1b by Lyndon Brown at 2021-06-24T08:08:04+00:00 modules: inline module_exists() - - - - - 3 changed files: - include/vlc_modules.h - src/libvlccore.sym - src/modules/modules.c Changes: ===================================== include/vlc_modules.h ===================================== @@ -124,15 +124,6 @@ static inline module_t *module_need_var(vlc_object_t *obj, const char *cap, VLC_API void module_unneed( vlc_object_t *, module_t * ); #define module_unneed(a,b) module_unneed(VLC_OBJECT(a),b) -/** - * Checks if a module exists. - * - * \param name name of the module - * \retval true if the module exists - * \retval false if the module does not exist (in the running installation) - */ -VLC_API bool module_exists(const char *) VLC_USED; - /** * Get a pointer to a module_t given it's name. * @@ -141,6 +132,18 @@ VLC_API bool module_exists(const char *) VLC_USED; */ VLC_API module_t *module_find(const char *name) VLC_USED; +/** + * Checks if a module exists. + * + * \param name name of the module + * \retval true if the module exists + * \retval false if the module does not exist (in the running installation) + */ +VLC_USED static inline bool module_exists(const char * name) +{ + return module_find(name) != NULL; +} + /** * Gets the table of module configuration items. * ===================================== src/libvlccore.sym ===================================== @@ -252,7 +252,6 @@ vlc_uri_fixup vlc_tick_now module_config_free module_config_get -module_exists module_find module_get_capability module_get_help ===================================== src/modules/modules.c ===================================== @@ -329,11 +329,6 @@ module_t *module_find (const char *name) return NULL; } -bool module_exists (const char * psz_name) -{ - return module_find (psz_name) != NULL; -} - module_config_t *module_config_get( const module_t *module, unsigned *restrict psize ) { const vlc_plugin_t *plugin = module->plugin; View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/ab58ea1ba5d8a9f8eac353db23138d49ecf48846 -- View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/ab58ea1ba5d8a9f8eac353db23138d49ecf48846 You're receiving this email because of your account on code.videolan.org.
_______________________________________________ vlc-commits mailing list vlc-commits@videolan.org https://mailman.videolan.org/listinfo/vlc-commits