[vlc-devel] commit: libvlc_global_data_t: fix description ( Rémi Denis-Courmont )

git version control git at videolan.org
Sun May 4 19:54:03 CEST 2008


vlc | branch: master | Rémi Denis-Courmont <rem at videolan.org> | Sun May  4 19:48:59 2008 +0300| [aebd6a4333c175bd5cd00ced4b25586be74c3837]

libvlc_global_data_t: fix description

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

 include/vlc_common.h |    1 -
 src/libvlc.h         |   16 ++++++++--------
 2 files changed, 8 insertions(+), 9 deletions(-)

diff --git a/include/vlc_common.h b/include/vlc_common.h
index c10df66..1fdb7e2 100644
--- a/include/vlc_common.h
+++ b/include/vlc_common.h
@@ -122,7 +122,6 @@ static inline void __vlc_fourcc_to_char( vlc_fourcc_t fcc, char *psz_fourcc )
  *****************************************************************************/
 
 /* Internal types */
-typedef struct libvlc_global_data_t libvlc_global_data_t;
 typedef struct libvlc_int_t libvlc_int_t;
 typedef struct variable_t variable_t;
 typedef struct date_t date_t;
diff --git a/src/libvlc.h b/src/libvlc.h
index 6a31ff6..16ad761 100644
--- a/src/libvlc.h
+++ b/src/libvlc.h
@@ -98,14 +98,14 @@ extern void *
 vlc_custom_create (vlc_object_t *p_this, size_t i_size, int i_type,
                    const char *psz_type);
 
-/*****************************************************************************
+/**
  * libvlc_global_data_t (global variable)
- *****************************************************************************
- * This structure has an unique instance, statically allocated in main and
- * never accessed from the outside. It stores once-initialized data such as
- * the CPU capabilities or the global lock.
- *****************************************************************************/
-struct libvlc_global_data_t
+ *
+ * This structure has an unique instance, statically allocated in libvlc and
+ * never accessed from the outside. It stores process-wide VLC variables,
+ * mostly process-wide locks, and (currently) the module bank and objects tree.
+ */
+typedef struct libvlc_global_data_t
 {
     VLC_COMMON_MEMBERS
 
@@ -124,7 +124,7 @@ struct libvlc_global_data_t
 #elif defined( WIN32 )
     char *                 psz_vlcpath;
 #endif
-};
+} libvlc_global_data_t;
 
 
 libvlc_global_data_t *vlc_global (void);




More information about the vlc-devel mailing list