[vlc-commits] vlc_module_(start|stop): constify

Rémi Denis-Courmont git at videolan.org
Mon Aug 15 19:45:26 CEST 2011


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Mon Aug 15 19:05:18 2011 +0300| [d89f287b13af203d43615ba02af5570240221dec] | committer: Rémi Denis-Courmont

vlc_module_(start|stop): constify

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

 include/vlc_modules.h |    4 ++--
 src/modules/modules.c |    4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/include/vlc_modules.h b/include/vlc_modules.h
index 68160d7..6249d15 100644
--- a/include/vlc_modules.h
+++ b/include/vlc_modules.h
@@ -45,9 +45,9 @@ VLC_API void module_unneed( vlc_object_t *, module_t * );
 VLC_API bool module_exists(const char *) VLC_USED;
 VLC_API module_t * module_find(const char *) VLC_USED;
 
-int module_start(vlc_object_t *, module_t *);
+int module_start(vlc_object_t *, const module_t *);
 #define module_start(o, m) module_start(VLC_OBJECT(o),m)
-void module_stop(vlc_object_t *, module_t *);
+void module_stop(vlc_object_t *, const module_t *);
 #define module_stop(o, m) module_stop(VLC_OBJECT(o),m)
 
 VLC_API module_config_t * module_config_get( const module_t *, unsigned * ) VLC_USED;
diff --git a/src/modules/modules.c b/src/modules/modules.c
index 28b6f52..7ea3965 100644
--- a/src/modules/modules.c
+++ b/src/modules/modules.c
@@ -292,7 +292,7 @@ void module_release (module_t *m)
 }
 
 #undef module_start
-int module_start (vlc_object_t *obj, module_t *m)
+int module_start (vlc_object_t *obj, const module_t *m)
 {
    int (*activate) (vlc_object_t *) = m->pf_activate;
 
@@ -300,7 +300,7 @@ int module_start (vlc_object_t *obj, module_t *m)
 }
 
 #undef module_stop
-void module_stop (vlc_object_t *obj, module_t *m)
+void module_stop (vlc_object_t *obj, const module_t *m)
 {
    void (*deactivate) (vlc_object_t *) = m->pf_deactivate;
 



More information about the vlc-commits mailing list