Commit d89f287b authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

vlc_module_(start|stop): constify

parent 2458671a
...@@ -45,9 +45,9 @@ VLC_API void module_unneed( vlc_object_t *, module_t * ); ...@@ -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 bool module_exists(const char *) VLC_USED;
VLC_API module_t * module_find(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) #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) #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; VLC_API module_config_t * module_config_get( const module_t *, unsigned * ) VLC_USED;
......
...@@ -292,7 +292,7 @@ void module_release (module_t *m) ...@@ -292,7 +292,7 @@ void module_release (module_t *m)
} }
#undef module_start #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; int (*activate) (vlc_object_t *) = m->pf_activate;
...@@ -300,7 +300,7 @@ int module_start (vlc_object_t *obj, module_t *m) ...@@ -300,7 +300,7 @@ int module_start (vlc_object_t *obj, module_t *m)
} }
#undef module_stop #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; void (*deactivate) (vlc_object_t *) = m->pf_deactivate;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment