aboutsummaryrefslogtreecommitdiff
path: root/vapi/common-defs.vapi
diff options
context:
space:
mode:
authorConor Curran <conor.curran@canonical.com>2011-03-09 14:17:12 +0000
committerConor Curran <conor.curran@canonical.com>2011-03-09 14:17:12 +0000
commit017cbc3be8b4bf1e365d013ede94c848e774d5ef (patch)
tree89030ddcaf650f030d40ad7fa3018ca2a0181d1b /vapi/common-defs.vapi
parent5bae6af22449e60aa0c3eaf0dd08a518979f2df9 (diff)
downloadayatana-indicator-sound-017cbc3be8b4bf1e365d013ede94c848e774d5ef.tar.gz
ayatana-indicator-sound-017cbc3be8b4bf1e365d013ede94c848e774d5ef.tar.bz2
ayatana-indicator-sound-017cbc3be8b4bf1e365d013ede94c848e774d5ef.zip
refactored transport enums so as both vala and c are using the same definitions in common defs
Diffstat (limited to 'vapi/common-defs.vapi')
-rw-r--r--vapi/common-defs.vapi22
1 files changed, 19 insertions, 3 deletions
diff --git a/vapi/common-defs.vapi b/vapi/common-defs.vapi
index 7b38e9c..03a8e4c 100644
--- a/vapi/common-defs.vapi
+++ b/vapi/common-defs.vapi
@@ -40,14 +40,14 @@ namespace DbusmenuTitle{
public const string MENUITEM_RUNNING;
}
-[CCode (cheader_filename = "common-defs.h")]
+/**[CCode (cheader_filename = "common-defs.h")]
namespace DbusmenuScrub{
public const string MENUITEM_TYPE;
public const string MENUITEM_POSITION;
public const string MENUITEM_DURATION;
public const string MENUITEM_PLAY_STATE;
}
-
+**/
[CCode (cheader_filename = "common-defs.h")]
namespace DbusmenuPlaylists{
public const string MENUITEM_TYPE;
@@ -57,4 +57,20 @@ namespace DbusmenuPlaylists{
[CCode (cheader_filename = "common-defs.h")]
namespace DbusmenuPlaylist{
public const string MENUITEM_PATH;
-} \ No newline at end of file
+}
+
+
+[CCode (cprefix ="Transport", cheader_filename = "common-defs.h")]
+namespace Transport{
+ public enum Action{
+ PREVIOUS,
+ PLAY_PAUSE,
+ NEXT,
+ REWIND,
+ FORWIND
+ }
+ public enum State{
+ PLAYING,
+ PAUSED
+ }
+}