hal/doc/spec hal-spec.html,1.81,1.82 hal-spec.xml.in,1.67,1.68

David Zeuthen david at kemper.freedesktop.org
Tue Mar 7 21:15:49 PST 2006


Update of /cvs/hal/hal/doc/spec
In directory kemper:/tmp/cvs-serv3184/doc/spec

Modified Files:
	hal-spec.html hal-spec.xml.in 
Log Message:
2006-03-08  David Zeuthen  <davidz at redhat.com>

        * doc/spec/hal-spec.xml.in: Patch from Gabriel Burt
        <gabriel.burt at gmail.com>. Add some useful keys for
        portable_audio_player.



Index: hal-spec.html
===================================================================
RCS file: /cvs/hal/hal/doc/spec/hal-spec.html,v
retrieving revision 1.81
retrieving revision 1.82
diff -u -d -r1.81 -r1.82
--- hal-spec.html	8 Mar 2006 04:14:09 -0000	1.81
+++ hal-spec.html	8 Mar 2006 05:15:47 -0000	1.82
@@ -600,21 +600,21 @@
 ><DL
 ><DT
 ><A
-HREF="#AEN3784"
+HREF="#AEN3808"
 >Interface org.freedesktop.Hal.Manager</A
 ></DT
 ><DD
 ><DL
 ><DT
 ><A
-HREF="#AEN3795"
+HREF="#AEN3819"
 >Example</A
 ></DT
 ></DL
 ></DD
 ><DT
 ><A
-HREF="#AEN3803"
+HREF="#AEN3827"
 >Interface org.freedesktop.Hal.Device</A
 ></DT
 ></DL
@@ -7897,6 +7897,76 @@
 		the device is not capable of recording.
 	      </TD
 ></TR
+><TR
+><TD
+><TT
+CLASS="literal"
+>portable_audio_player.filepath_format</TT
+> (string)</TD
+><TD
+>examples: MUSIC/%Track or %Artist/%Album/%Track or mp3s/%Artist/%Album - %Track</TD
+><TD
+>No</TD
+><TD
+>&#13;                If portable_audio_player.access_method = "storage",
+                this may contain a string that will be used to format the file's name
+                and path before writing it to the device.  If audio files must be placed
+                in a particular subdirectory, or the device only allows one
+                sub-directory deep hierarchies, that information should be embedded
+                here. The variables available for this string are %Artist, %Album, and %Track.
+                Applications using this key are responsible for substituting the
+                appropriate values for these variables when formatting the file's path.
+	          </TD
+></TR
+><TR
+><TD
+><TT
+CLASS="literal"
+>portable_audio_player.audio_folders</TT
+> (strlist)</TD
+><TD
+>example: music/ voice/ linein/</TD
+><TD
+>No</TD
+><TD
+>&#13;                If portable_audio_player.access_method = "storage",
+                this may contain a string list of folders in which music
+                can be found.  Paths are relative to the mount point of the device.
+	          </TD
+></TR
+><TR
+><TD
+><TT
+CLASS="literal"
+>portable_audio_player.playlist_format</TT
+> (strlist)</TD
+><TD
+>example: audio/x-mpegurl audio/x-somethingelse</TD
+><TD
+>No</TD
+><TD
+>&#13;                A string list of the MIME-type of the playlist formats accepted by
+                this device.  Leave blank if none.
+	          </TD
+></TR
+><TR
+><TD
+><TT
+CLASS="literal"
+>portable_audio_player.playlist_path</TT
+> (string)</TD
+><TD
+>examples: playlists/%File or Playlist.m3u</TD
+><TD
+>No</TD
+><TD
+>&#13;                Set to the path to which playlists should be written.  Leave
+                blank if playlist files are not supported.  If the device supports a single playlist with a specific name/path,
+                set this to the path relative to the mount point that it should be saved to.  If it supports multiple
+                playlists, use the %File variable as needed.  Applications are responsible for substituting %File with the
+                desired playlist file name, noting that it's use in this string is optional.
+	          </TD
+></TR
 ></TBODY
 ></TABLE
 ><P
@@ -7928,7 +7998,7 @@
 ><P
 ></P
 ><A
-NAME="AEN2563"
+NAME="AEN2587"
 ></A
 ><TABLE
 BORDER="1"
@@ -8180,7 +8250,7 @@
 ><P
 ></P
 ><A
-NAME="AEN2659"
+NAME="AEN2683"
 ></A
 ><TABLE
 BORDER="1"
@@ -8422,7 +8492,7 @@
 ><P
 ></P
 ><A
-NAME="AEN2748"
+NAME="AEN2772"
 ></A
 ><TABLE
 BORDER="1"
@@ -8543,7 +8613,7 @@
 ><P
 ></P
 ><A
-NAME="AEN2790"
+NAME="AEN2814"
 ></A
 ><TABLE
 BORDER="1"
@@ -8623,7 +8693,7 @@
 ><P
 ></P
 ><A
-NAME="AEN2816"
+NAME="AEN2840"
 ></A
 ><TABLE
 BORDER="1"
@@ -8691,7 +8761,7 @@
 ><P
 ></P
 ><A
-NAME="AEN2836"
+NAME="AEN2860"
 ></A
 ><TABLE
 BORDER="1"
@@ -9562,7 +9632,7 @@
 ><P
 ></P
 ><A
-NAME="AEN3154"
+NAME="AEN3178"
 ></A
 ><TABLE
 BORDER="1"
@@ -9676,7 +9746,7 @@
 ><P
 ></P
 ><A
-NAME="AEN3198"
+NAME="AEN3222"
 ></A
 ><TABLE
 BORDER="1"
@@ -9744,7 +9814,7 @@
 ><P
 ></P
 ><A
-NAME="AEN3219"
+NAME="AEN3243"
 ></A
 ><TABLE
 BORDER="1"
@@ -9838,7 +9908,7 @@
 ><P
 ></P
 ><A
-NAME="AEN3251"
+NAME="AEN3275"
 ></A
 ><TABLE
 BORDER="1"
@@ -9949,7 +10019,7 @@
 ><P
 ></P
 ><A
-NAME="AEN3293"
+NAME="AEN3317"
 ></A
 ><TABLE
 BORDER="1"
@@ -10088,7 +10158,7 @@
 ><P
 ></P
 ><A
-NAME="AEN3349"
+NAME="AEN3373"
 ></A
 ><TABLE
 BORDER="1"
@@ -10199,7 +10269,7 @@
 ><P
 ></P
 ><A
-NAME="AEN3384"
+NAME="AEN3408"
 ></A
 ><TABLE
 BORDER="1"
@@ -10291,7 +10361,7 @@
 ><P
 ></P
 ><A
-NAME="AEN3412"
+NAME="AEN3436"
 ></A
 ><TABLE
 BORDER="1"
@@ -10450,7 +10520,7 @@
 ><P
 ></P
 ><A
-NAME="AEN3464"
+NAME="AEN3488"
 ></A
 ><TABLE
 BORDER="1"
@@ -10579,7 +10649,7 @@
 ><P
 ></P
 ><A
-NAME="AEN3505"
+NAME="AEN3529"
 ></A
 ><TABLE
 BORDER="1"
@@ -11540,7 +11610,7 @@
 ><P
 ></P
 ><A
-NAME="AEN3742"
+NAME="AEN3766"
 ></A
 ><TABLE
 BORDER="1"
@@ -11703,7 +11773,7 @@
 ><HR><H2
 CLASS="sect1"
 ><A
-NAME="AEN3784"
+NAME="AEN3808"
 >Interface org.freedesktop.Hal.Manager</A
 ></H2
 ><P
@@ -11819,7 +11889,7 @@
 ><HR><H3
 CLASS="sect2"
 ><A
-NAME="AEN3795"
+NAME="AEN3819"
 >Example</A
 ></H3
 ><P
@@ -11937,7 +12007,7 @@
 ><HR><H2
 CLASS="sect1"
 ><A
-NAME="AEN3803"
+NAME="AEN3827"
 >Interface org.freedesktop.Hal.Device</A
 ></H2
 ><P

Index: hal-spec.xml.in
===================================================================
RCS file: /cvs/hal/hal/doc/spec/hal-spec.xml.in,v
retrieving revision 1.67
retrieving revision 1.68
diff -u -d -r1.67 -r1.68
--- hal-spec.xml.in	3 Mar 2006 18:46:32 -0000	1.67
+++ hal-spec.xml.in	8 Mar 2006 05:15:47 -0000	1.68
@@ -3829,6 +3829,56 @@
 	      </entry>
             </row>
 
+            <row>
+              <entry><literal>portable_audio_player.filepath_format</literal> (string)</entry>
+              <entry>examples: MUSIC/%Track or %Artist/%Album/%Track or mp3s/%Artist/%Album - %Track</entry>
+              <entry>No</entry>
+              <entry>
+                If portable_audio_player.access_method = "storage",
+                this may contain a string that will be used to format the file's name
+                and path before writing it to the device.  If audio files must be placed
+                in a particular subdirectory, or the device only allows one
+                sub-directory deep hierarchies, that information should be embedded
+                here. The variables available for this string are %Artist, %Album, and %Track.
+                Applications using this key are responsible for substituting the
+                appropriate values for these variables when formatting the file's path.
+	          </entry>
+            </row>
+
+            <row>
+              <entry><literal>portable_audio_player.audio_folders</literal> (strlist)</entry>
+              <entry>example: music/ voice/ linein/</entry>
+              <entry>No</entry>
+              <entry>
+                If portable_audio_player.access_method = "storage",
+                this may contain a string list of folders in which music
+                can be found.  Paths are relative to the mount point of the device.
+	          </entry>
+            </row>
+
+            <row>
+              <entry><literal>portable_audio_player.playlist_format</literal> (strlist)</entry>
+              <entry>example: audio/x-mpegurl audio/x-somethingelse</entry>
+              <entry>No</entry>
+              <entry>
+                A string list of the MIME-type of the playlist formats accepted by
+                this device.  Leave blank if none.
+	          </entry>
+            </row>
+
+            <row>
+              <entry><literal>portable_audio_player.playlist_path</literal> (string)</entry>
+              <entry>examples: playlists/%File or Playlist.m3u</entry>
+              <entry>No</entry>
+              <entry>
+                Set to the path to which playlists should be written.  Leave
+                blank if playlist files are not supported.  If the device supports a single playlist with a specific name/path,
+                set this to the path relative to the mount point that it should be saved to.  If it supports multiple
+                playlists, use the %File variable as needed.  Applications are responsible for substituting %File with the
+                desired playlist file name, noting that it's use in this string is optional.
+	          </entry>
+            </row>
+
           </tbody>
         </tgroup>
       </informaltable>




More information about the hal-commit mailing list