<?xml version="1.0"?>
<!-- This file was automatically generated from C sources - DO NOT EDIT!
To affect the contents of this file, edit the original C definitions,
and/or use gtk-doc annotations.  -->
<repository version="1.2"
            xmlns="http://www.gtk.org/introspection/core/1.0"
            xmlns:c="http://www.gtk.org/introspection/c/1.0"
            xmlns:doc="http://www.gtk.org/introspection/doc/1.0"
            xmlns:glib="http://www.gtk.org/introspection/glib/1.0">
  <include name="GObject" version="2.0"/>
  <include name="Gio" version="2.0"/>
  <include name="Grl" version="0.3"/>
  <c:include name="pls/grl-pls.h"/>
  <doc:format name="unknown"/>
  <namespace name="GrlPls"
             version="0.3"
             shared-library="libgrlpls-0.3.so.0"
             c:identifier-prefixes="GrlPls"
             c:symbol-prefixes="grl_pls">
    <callback name="FilterFunc" c:type="GrlPlsFilterFunc">
      <doc xml:space="preserve"
           filename="libs/pls/grl-pls.h"
           line="31">Callback type to filter, or modify #GrlMedia created
when parsing a playlist using one of grl_pls_browse(),
grl_pls_browse_sync() or grl_pls_browse_by_spec().

The callback is responsible for unreffing @media when returning %NULL or
another #GrlMedia.</doc>
      <source-position filename="libs/pls/grl-pls.h" line="47"/>
      <return-value transfer-ownership="full">
        <doc xml:space="preserve"
             filename="libs/pls/grl-pls.h"
             line="44">%NULL to not add this entry to the results,
  or a new #GrlMedia populated with metadata of your choice.</doc>
        <type name="Grl.Media" c:type="GrlMedia*"/>
      </return-value>
      <parameters>
        <parameter name="source" transfer-ownership="none">
          <doc xml:space="preserve"
               filename="libs/pls/grl-pls.h"
               line="33">the #GrlSource the browse call came from</doc>
          <type name="Grl.Source" c:type="GrlSource*"/>
        </parameter>
        <parameter name="media" transfer-ownership="full">
          <doc xml:space="preserve"
               filename="libs/pls/grl-pls.h"
               line="34">a #GrlMedia to operate on</doc>
          <type name="Grl.Media" c:type="GrlMedia*"/>
        </parameter>
        <parameter name="user_data"
                   transfer-ownership="none"
                   nullable="1"
                   allow-none="1"
                   closure="2">
          <doc xml:space="preserve"
               filename="libs/pls/grl-pls.h"
               line="35">user data passed to the browse call</doc>
          <type name="gpointer" c:type="gpointer"/>
        </parameter>
      </parameters>
    </callback>
    <function name="browse" c:identifier="grl_pls_browse" version="0.2.0">
      <doc xml:space="preserve"
           filename="libs/pls/grl-pls.c"
           line="875">Browse into a playlist. The playlist entries are
returned via the @callback function as GrlMedia objects.
This function imitates the API and way of working of
#grl_source_browse.

The @playlist provided could be of any GrlMedia class,
as long as its URI points to a valid playlist file.

This function is asynchronous.

See #grl_source_browse() function for additional information
and sample code.</doc>
      <source-position filename="libs/pls/grl-pls.h" line="57"/>
      <return-value transfer-ownership="none">
        <doc xml:space="preserve"
             filename="libs/pls/grl-pls.c"
             line="899">the operation identifier</doc>
        <type name="guint" c:type="guint"/>
      </return-value>
      <parameters>
        <parameter name="source" transfer-ownership="none">
          <doc xml:space="preserve"
               filename="libs/pls/grl-pls.c"
               line="877">a source</doc>
          <type name="Grl.Source" c:type="GrlSource*"/>
        </parameter>
        <parameter name="playlist" transfer-ownership="none">
          <doc xml:space="preserve"
               filename="libs/pls/grl-pls.c"
               line="878">a playlist</doc>
          <type name="Grl.Media" c:type="GrlMedia*"/>
        </parameter>
        <parameter name="keys" transfer-ownership="none">
          <doc xml:space="preserve"
               filename="libs/pls/grl-pls.c"
               line="879">the #GList of
#GrlKeyID&lt;!-- --&gt;s to request</doc>
          <type name="GLib.List" c:type="const GList*">
            <type name="Grl.KeyID"/>
          </type>
        </parameter>
        <parameter name="options" transfer-ownership="none">
          <doc xml:space="preserve"
               filename="libs/pls/grl-pls.c"
               line="881">options wanted for that operation</doc>
          <type name="Grl.OperationOptions" c:type="GrlOperationOptions*"/>
        </parameter>
        <parameter name="filter_func"
                   transfer-ownership="none"
                   nullable="1"
                   allow-none="1"
                   scope="async">
          <doc xml:space="preserve"
               filename="libs/pls/grl-pls.c"
               line="882">A filter function, or %NULL</doc>
          <type name="FilterFunc" c:type="GrlPlsFilterFunc"/>
        </parameter>
        <parameter name="callback"
                   transfer-ownership="none"
                   scope="notified"
                   closure="6">
          <doc xml:space="preserve"
               filename="libs/pls/grl-pls.c"
               line="883">the user defined callback</doc>
          <type name="Grl.SourceResultCb" c:type="GrlSourceResultCb"/>
        </parameter>
        <parameter name="user_data"
                   transfer-ownership="none"
                   nullable="1"
                   allow-none="1">
          <doc xml:space="preserve"
               filename="libs/pls/grl-pls.c"
               line="884">the user data to pass in the callback</doc>
          <type name="gpointer" c:type="gpointer"/>
        </parameter>
      </parameters>
    </function>
    <function name="browse_by_spec"
              c:identifier="grl_pls_browse_by_spec"
              version="0.2.0">
      <doc xml:space="preserve"
           filename="libs/pls/grl-pls.c"
           line="774">Browse into a playlist. The playlist entries are
returned via the bs-&gt;callback function as GrlMedia objects.
This function is more suitable to be called from plugins, which by
design get the GrlSourceBrowseSpec already filled in.

The bs-&gt;playlist provided could be of any GrlMedia class,
as long as its URI points to a valid playlist file.

This function is asynchronous.

See #grl_pls_browse() and #grl_source_browse() function for additional
information and sample code.</doc>
      <source-position filename="libs/pls/grl-pls.h" line="53"/>
      <return-value transfer-ownership="none">
        <type name="none" c:type="void"/>
      </return-value>
      <parameters>
        <parameter name="source" transfer-ownership="none">
          <doc xml:space="preserve"
               filename="libs/pls/grl-pls.c"
               line="776">a source</doc>
          <type name="Grl.Source" c:type="GrlSource*"/>
        </parameter>
        <parameter name="filter_func"
                   transfer-ownership="none"
                   nullable="1"
                   allow-none="1"
                   scope="async">
          <doc xml:space="preserve"
               filename="libs/pls/grl-pls.c"
               line="777">A filter function, or %NULL</doc>
          <type name="FilterFunc" c:type="GrlPlsFilterFunc"/>
        </parameter>
        <parameter name="bs" transfer-ownership="none">
          <doc xml:space="preserve"
               filename="libs/pls/grl-pls.c"
               line="778">a GrlSourceBrowseSpec structure with details of the browsing operation</doc>
          <type name="Grl.SourceBrowseSpec" c:type="GrlSourceBrowseSpec*"/>
        </parameter>
      </parameters>
    </function>
    <function name="browse_sync"
              c:identifier="grl_pls_browse_sync"
              version="0.2.0"
              throws="1">
      <doc xml:space="preserve"
           filename="libs/pls/grl-pls.c"
           line="946">Browse into a playlist. The playlist entries are
returned via the @callback function as GrlMedia objects.
This function imitates the API and way of working of
#grl_source_browse_sync.

The filter function @filter_func will be used for plugins
or applications to be able to refuse particular entries from
being listed.

If a %NULL filter function is passed, the media will be added
with only the metadata coming from the playlist included.

This function is synchronous.

See #grl_source_browse_sync() function for additional information
and sample code.</doc>
      <source-position filename="libs/pls/grl-pls.h" line="65"/>
      <return-value transfer-ownership="full">
        <doc xml:space="preserve"
             filename="libs/pls/grl-pls.c"
             line="973">a #GList with #GrlMedia
elements. After use g_object_unref() every element and g_list_free() the
list.</doc>
        <type name="GLib.List" c:type="GList*">
          <type name="Grl.Media"/>
        </type>
      </return-value>
      <parameters>
        <parameter name="source" transfer-ownership="none">
          <doc xml:space="preserve"
               filename="libs/pls/grl-pls.c"
               line="948">a source</doc>
          <type name="Grl.Source" c:type="GrlSource*"/>
        </parameter>
        <parameter name="playlist" transfer-ownership="none">
          <doc xml:space="preserve"
               filename="libs/pls/grl-pls.c"
               line="949">a playlist</doc>
          <type name="Grl.Media" c:type="GrlMedia*"/>
        </parameter>
        <parameter name="keys" transfer-ownership="none">
          <doc xml:space="preserve"
               filename="libs/pls/grl-pls.c"
               line="950">the #GList of
#GrlKeyID&lt;!-- --&gt;s to request</doc>
          <type name="GLib.List" c:type="const GList*">
            <type name="Grl.KeyID"/>
          </type>
        </parameter>
        <parameter name="options" transfer-ownership="none">
          <doc xml:space="preserve"
               filename="libs/pls/grl-pls.c"
               line="953">options wanted for that operation</doc>
          <type name="Grl.OperationOptions" c:type="GrlOperationOptions*"/>
        </parameter>
        <parameter name="filter_func"
                   transfer-ownership="none"
                   nullable="1"
                   allow-none="1"
                   scope="async">
          <doc xml:space="preserve"
               filename="libs/pls/grl-pls.c"
               line="952">A filter function, or %NULL</doc>
          <type name="FilterFunc" c:type="GrlPlsFilterFunc"/>
        </parameter>
      </parameters>
    </function>
    <function name="file_to_media"
              c:identifier="grl_pls_file_to_media"
              version="0.2.0">
      <doc xml:space="preserve"
           filename="libs/pls/grl-pls.c"
           line="1195">This function will update (if @content is non-%NULL) or create a
GrlMedia and populate it with information from @info.

If @info is %NULL, a call to g_file_query_info() will be made.

This function is useful for plugins that browse the local filesystem
and want to easily create GrlMedia from filesystem information.</doc>
      <source-position filename="libs/pls/grl-pls.h" line="72"/>
      <return-value transfer-ownership="full">
        <doc xml:space="preserve"
             filename="libs/pls/grl-pls.c"
             line="1212">a new #GrlMedia.</doc>
        <type name="Grl.Media" c:type="GrlMedia*"/>
      </return-value>
      <parameters>
        <parameter name="content" transfer-ownership="none">
          <doc xml:space="preserve"
               filename="libs/pls/grl-pls.c"
               line="1197">an existing #GrlMedia for the file, or %NULL</doc>
          <type name="Grl.Media" c:type="GrlMedia*"/>
        </parameter>
        <parameter name="file" transfer-ownership="none">
          <doc xml:space="preserve"
               filename="libs/pls/grl-pls.c"
               line="1198">a #GFile pointing to the file or directory in question</doc>
          <type name="Gio.File" c:type="GFile*"/>
        </parameter>
        <parameter name="info" transfer-ownership="none">
          <doc xml:space="preserve"
               filename="libs/pls/grl-pls.c"
               line="1199">an existing #GFileInfo, or %NULL</doc>
          <type name="Gio.FileInfo" c:type="GFileInfo*"/>
        </parameter>
        <parameter name="handle_pls" transfer-ownership="none">
          <doc xml:space="preserve"
               filename="libs/pls/grl-pls.c"
               line="1200">Whether playlists should be handled as containers</doc>
          <type name="gboolean" c:type="gboolean"/>
        </parameter>
        <parameter name="options" transfer-ownership="none">
          <doc xml:space="preserve"
               filename="libs/pls/grl-pls.c"
               line="1201">a #GrlOperationOptions representing the options to apply
  to this operation.</doc>
          <type name="Grl.OperationOptions" c:type="GrlOperationOptions*"/>
        </parameter>
      </parameters>
    </function>
    <function name="get_file_attributes"
              c:identifier="grl_pls_get_file_attributes"
              version="0.2.0">
      <doc xml:space="preserve"
           filename="libs/pls/grl-pls.c"
           line="1378">Returns the list of attributes to pass to
g_file_query_info() to make it possible to
populate a GrlMedia using grl_pls_file_to_media().

Do not free the result of this function.</doc>
      <source-position filename="libs/pls/grl-pls.h" line="78"/>
      <return-value transfer-ownership="none">
        <doc xml:space="preserve"
             filename="libs/pls/grl-pls.c"
             line="1387">a string containing the
list of attributes.</doc>
        <type name="utf8" c:type="const char*"/>
      </return-value>
    </function>
    <docsection name="grl-pls">
      <doc xml:space="preserve"
           filename="libs/pls/grl-pls.c"
           line="24">Grilo only deals with audio, video or image content, but not with
playlists. This library allow to identify playlists and browse into them
exposing playlist entries as GrlMedia objects.</doc>
    </docsection>
    <function name="media_is_playlist"
              c:identifier="grl_pls_media_is_playlist"
              version="0.2.0">
      <doc xml:space="preserve"
           filename="libs/pls/grl-pls.c"
           line="409">Check if a file identified by GrlMedia object is a playlist or not.
This function does blocking I/O.</doc>
      <source-position filename="libs/pls/grl-pls.h" line="51"/>
      <return-value transfer-ownership="none">
        <doc xml:space="preserve"
             filename="libs/pls/grl-pls.c"
             line="416">%TRUE if a GrlMedia is recognized as a playlist.</doc>
        <type name="gboolean" c:type="gboolean"/>
      </return-value>
      <parameters>
        <parameter name="media" transfer-ownership="none">
          <doc xml:space="preserve"
               filename="libs/pls/grl-pls.c"
               line="411">GrlMedia</doc>
          <type name="Grl.Media" c:type="GrlMedia*"/>
        </parameter>
      </parameters>
    </function>
  </namespace>
</repository>
