comments: add a few comments to the sparsely documented plugin loader
authorStefan Kost <ensonic@users.sf.net>
Wed, 9 Jun 2010 09:06:16 +0000 (12:06 +0300)
committerStefan Kost <ensonic@users.sf.net>
Wed, 9 Jun 2010 09:15:52 +0000 (12:15 +0300)
gst/gstpluginloader.c

index d971a3f..dacdd0b 100644 (file)
@@ -61,12 +61,14 @@ static gboolean plugin_loader_free (GstPluginLoader * loader);
 static gboolean plugin_loader_load (GstPluginLoader * loader,
     const gchar * filename, off_t file_size, time_t file_mtime);
 
+/* functions used in GstRegistry scanning */
 const GstPluginLoaderFuncs _priv_gst_plugin_loader_funcs = {
   plugin_loader_new, plugin_loader_free, plugin_loader_load
 };
 
 typedef struct _PendingPluginEntry
 {
+  /* sequence number */
   guint32 tag;
   gchar *filename;
   off_t file_size;
@@ -92,6 +94,7 @@ struct _GstPluginLoader
   guint tx_buf_write;
   guint tx_buf_read;
 
+  /* next sequence number (for PendingPluginEntry) */
   guint32 next_tag;
 
   guint8 *rx_buf;