aboutsummaryrefslogtreecommitdiff
path: root/src/common-defs.h
diff options
context:
space:
mode:
authorKen VanDine <ken.vandine@canonical.com>2011-01-27 10:57:41 -0500
committerBazaar Package Importer <james.westby@ubuntu.com>2011-01-27 10:57:41 -0500
commitca22323b4ff36f6bd0e76369056f362d900ef1c8 (patch)
tree45b8dd1f84a772c6a031a760abc7592236346779 /src/common-defs.h
parent6eac4d8a9359143ecc6120806e48176f654e2543 (diff)
parent5338c77428955cf6701b5fa9cad84e135f6522b2 (diff)
downloadayatana-indicator-sound-ca22323b4ff36f6bd0e76369056f362d900ef1c8.tar.gz
ayatana-indicator-sound-ca22323b4ff36f6bd0e76369056f362d900ef1c8.tar.bz2
ayatana-indicator-sound-ca22323b4ff36f6bd0e76369056f362d900ef1c8.zip
* New upstream release.
- Music control buttons flicker (LP: #684755) - Sound Menu should re-read playlists from MPRIS apps when PropertiesChanged is postec (LP: #707042) - Spotify crashes the service (LP: #707367) - Refactor service dbus code plus state handling (LP: #708793) - changing the volume is impossible while muted (LP: #558784) - Banshee icon changes to coloured icon once in use (LP: #692648)
Diffstat (limited to 'src/common-defs.h')
-rw-r--r--src/common-defs.h25
1 files changed, 19 insertions, 6 deletions
diff --git a/src/common-defs.h b/src/common-defs.h
index 8ec69e8..5458dc5 100644
--- a/src/common-defs.h
+++ b/src/common-defs.h
@@ -16,13 +16,21 @@ PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along
with this program. If not, see <http://www.gnu.org/licenses/>.
*/
+#ifndef __COMMON_DEFS_H__
+#define __COMMON_DEFS_H__
-/* constants used for signals on the dbus. This file is shared between client and server implementation */
-#define SIGNAL_SINK_INPUT_WHILE_MUTED "SinkInputWhileMuted"
-#define SIGNAL_SINK_VOLUME_UPDATE "SinkVolumeUpdate"
-#define SIGNAL_SINK_MUTE_UPDATE "SinkMuteUpdate"
-#define SIGNAL_SINK_AVAILABLE_UPDATE "SinkAvailableUpdate"
+typedef enum {
+ MUTED,
+ ZERO_LEVEL,
+ LOW_LEVEL,
+ MEDIUM_LEVEL,
+ HIGH_LEVEL,
+ BLOCKED,
+ UNAVAILABLE,
+ AVAILABLE
+}SoundState;
+
#define DBUSMENU_PROPERTY_EMPTY -1
@@ -30,6 +38,9 @@ with this program. If not, see <http://www.gnu.org/licenses/>.
#define DBUSMENU_VOLUME_MENUITEM_TYPE "x-canonical-ido-volume-type"
#define DBUSMENU_VOLUME_MENUITEM_LEVEL "x-canonical-ido-volume-level"
+#define DBUSMENU_MUTE_MENUITEM_TYPE "x-canonical-sound-menu-mute-type"
+#define DBUSMENU_MUTE_MENUITEM_VALUE "x-canonical-sound-menu-mute-value"
+
#define DBUSMENU_TRANSPORT_MENUITEM_TYPE "x-canonical-sound-menu-player-transport-type"
#define DBUSMENU_TRANSPORT_MENUITEM_PLAY_STATE "x-canonical-sound-menu-player-transport-state"
@@ -51,4 +62,6 @@ with this program. If not, see <http://www.gnu.org/licenses/>.
#define DBUSMENU_PLAYLISTS_MENUITEM_TYPE "x-canonical-sound-menu-player-playlists-type"
#define DBUSMENU_PLAYLISTS_MENUITEM_TITLE "x-canonical-sound-menu-player-playlists-title"
-#define DBUSMENU_PLAYLISTS_MENUITEM_PLAYLISTS "x-canonical-sound-menu-player-playlists-playlists" \ No newline at end of file
+#define DBUSMENU_PLAYLISTS_MENUITEM_PLAYLISTS "x-canonical-sound-menu-player-playlists-playlists"
+
+#endif