diff options
author | Ken VanDine <ken.vandine@canonical.com> | 2011-01-27 16:13:08 -0500 |
---|---|---|
committer | Ken VanDine <ken.vandine@canonical.com> | 2011-01-27 16:13:08 -0500 |
commit | 5338c77428955cf6701b5fa9cad84e135f6522b2 (patch) | |
tree | 45b8dd1f84a772c6a031a760abc7592236346779 /src/common-defs.h | |
parent | 603ecf78d1f2e897ac60ecf585569c8758fe5d1e (diff) | |
parent | 759793a2dda77abd227921e119bb329271c36a55 (diff) | |
download | ayatana-indicator-sound-5338c77428955cf6701b5fa9cad84e135f6522b2.tar.gz ayatana-indicator-sound-5338c77428955cf6701b5fa9cad84e135f6522b2.tar.bz2 ayatana-indicator-sound-5338c77428955cf6701b5fa9cad84e135f6522b2.zip |
releasing version 0.5.7-0ubuntu1
Diffstat (limited to 'src/common-defs.h')
-rw-r--r-- | src/common-defs.h | 25 |
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 |