Re: omusicd
Hi, I'm writing the specs file and realized that I'm using ints at some points which are enums. Should i replace them by strings and use string marshalling? The methods are: [SIGNAL]org.freesmartphone.MusicPlayer.State( i:state ) //possible values: stopped =0, playing=1, paused=2 //possible values: normal=0,endless=1,random=2 [METHOD]org.freesmartphone.MusicPlayer.Playlist.GetMode() - ( i:result ) [METHOD]org.freesmartphone.MusicPlayer.Playlist.SetMode( i:m ) - () [SIGNAL]org.freesmartphone.MusicPlayer.Playlist.ModeChanged( i:mode ) I think FSO prefers the string version. Regards, Frederik -- IRC: playya @ Freenode, Gimpnet xmpp: pla...@draugr.de signature.asc Description: Digital signature ___ smartphones-standards mailing list smartphones-standards@linuxtogo.org http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/smartphones-standards
Re: omusicd
On Monday 14 September 2009 17:12:38 Frederik Sdun wrote: I'm writing the specs file and realized that I'm using ints at some points which are enums. Should i replace them by strings and use string marshalling? The methods are: [SIGNAL]org.freesmartphone.MusicPlayer.State( i:state ) //possible values: stopped =0, playing=1, paused=2 //possible values: normal=0,endless=1,random=2 [METHOD]org.freesmartphone.MusicPlayer.Playlist.GetMode() - ( i:result ) [METHOD]org.freesmartphone.MusicPlayer.Playlist.SetMode( i:m ) - () [SIGNAL]org.freesmartphone.MusicPlayer.Playlist.ModeChanged( i:mode ) I think FSO prefers the string version. Yes. Enums are not a good choice in DBus. Please convert them to all-lower- case-strings. We can use the libfso-glib way of string-via-enum-marshalling here to deal with enums for static dbus. :M: ___ smartphones-standards mailing list smartphones-standards@linuxtogo.org http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/smartphones-standards