speechd-discuss
[Top][All Lists]
Advanced

[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: Thu, 30 Sep 2010 21:09:17 +0200

Chris, could you please drop a look in this series as well?
Thanks, Andrei.

On Mon, Sep 27, 2010 at 8:39 PM, Andrei Kholodnyi
<andrei.kholodnyi at gmail.com> wrote:
> "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
>
>



-- 
Believe is not enough, you must know



reply via email to

[Prev in Thread] Current Thread [Next in Thread]