[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 1/3] fix set notification all for libspeechd
From: |
Andrei Kholodnyi |
Subject: |
[PATCH 1/3] fix set notification all for libspeechd |
Date: |
Mon, 27 Sep 2010 20:39:46 +0200 |
"set notification all" is supported by SSIP on the server side
but was not implemented in libspeechd
---
src/api/c/libspeechd.c | 1 +
src/api/c/libspeechd.h | 4 +++-
2 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/src/api/c/libspeechd.c b/src/api/c/libspeechd.c
index 53247ba..0698ddd 100644
--- a/src/api/c/libspeechd.c
+++ b/src/api/c/libspeechd.c
@@ -1064,6 +1064,7 @@ spd_set_notification(SPDConnection *connection,
SPDNotification notification, co
NOTIFICATION_SET(SPD_CANCEL, "cancel");
NOTIFICATION_SET(SPD_PAUSE, "pause");
NOTIFICATION_SET(SPD_RESUME, "resume");
+ NOTIFICATION_SET(SPD_ALL, "all");
pthread_mutex_unlock(connection->ssip_mutex);
diff --git a/src/api/c/libspeechd.h b/src/api/c/libspeechd.h
index 62a8348..2ac3a91 100644
--- a/src/api/c/libspeechd.h
+++ b/src/api/c/libspeechd.h
@@ -88,7 +88,9 @@ typedef enum{
SPD_INDEX_MARKS = 4,
SPD_CANCEL = 8,
SPD_PAUSE = 16,
- SPD_RESUME = 32
+ SPD_RESUME = 32,
+
+ SPD_ALL = 0x3F
}SPDNotification;
typedef enum{
--
1.6.0.4
- [PATCH 1/3] fix set notification all for libspeechd,
Andrei Kholodnyi <=