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

Privatize p_interaction

parent 973f2f06
...@@ -47,8 +47,6 @@ struct libvlc_int_t ...@@ -47,8 +47,6 @@ struct libvlc_int_t
playlist_t *p_playlist; ///< playlist object playlist_t *p_playlist; ///< playlist object
vlc_object_t *p_interaction; ///< interface interaction object
void *p_stats_computer; ///< Input thread computing stats (needs cleanup) void *p_stats_computer; ///< Input thread computing stats (needs cleanup)
global_stats_t *p_stats; ///< Global statistics global_stats_t *p_stats; ///< Global statistics
......
...@@ -180,7 +180,7 @@ libvlc_int_t * libvlc_InternalCreate( void ) ...@@ -180,7 +180,7 @@ libvlc_int_t * libvlc_InternalCreate( void )
priv = libvlc_priv (p_libvlc); priv = libvlc_priv (p_libvlc);
p_libvlc->p_playlist = NULL; p_libvlc->p_playlist = NULL;
p_libvlc->p_interaction = NULL; priv->p_interaction = NULL;
priv->p_vlm = NULL; priv->p_vlm = NULL;
p_libvlc->psz_object_name = strdup( "libvlc" ); p_libvlc->psz_object_name = strdup( "libvlc" );
...@@ -740,7 +740,7 @@ int libvlc_InternalInit( libvlc_int_t *p_libvlc, int i_argc, ...@@ -740,7 +740,7 @@ int libvlc_InternalInit( libvlc_int_t *p_libvlc, int i_argc,
p_libvlc->p_hotkeys ); p_libvlc->p_hotkeys );
/* Initialize interaction */ /* Initialize interaction */
p_libvlc->p_interaction = interaction_Init( p_libvlc ); priv->p_interaction = interaction_Init( p_libvlc );
/* Initialize playlist and get commandline files */ /* Initialize playlist and get commandline files */
playlist_ThreadCreate( p_libvlc ); playlist_ThreadCreate( p_libvlc );
...@@ -988,7 +988,7 @@ int libvlc_InternalCleanup( libvlc_int_t *p_libvlc ) ...@@ -988,7 +988,7 @@ int libvlc_InternalCleanup( libvlc_int_t *p_libvlc )
/* Free interaction */ /* Free interaction */
msg_Dbg( p_libvlc, "removing interaction" ); msg_Dbg( p_libvlc, "removing interaction" );
vlc_object_release( p_libvlc->p_interaction ); vlc_object_release( priv->p_interaction );
stats_TimersDumpAll( p_libvlc ); stats_TimersDumpAll( p_libvlc );
stats_TimersCleanAll( p_libvlc ); stats_TimersCleanAll( p_libvlc );
......
...@@ -223,7 +223,7 @@ typedef struct libvlc_priv_t ...@@ -223,7 +223,7 @@ typedef struct libvlc_priv_t
module_t *p_memcpy_module; ///< Fast memcpy plugin used module_t *p_memcpy_module; ///< Fast memcpy plugin used
vlm_t *p_vlm; ///< VLM if created from libvlc-common.c vlm_t *p_vlm; ///< VLM if created from libvlc-common.c
vlc_object_t *p_interaction; ///< interface interaction object
httpd_t *p_httpd; ///< HTTP daemon (src/network/httpd.c) httpd_t *p_httpd; ///< HTTP daemon (src/network/httpd.c)
} libvlc_priv_t; } libvlc_priv_t;
......
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