Implement a notification response wait/send API 93/30093/2 accepted/tizen/common/20141114.144141 accepted/tizen/ivi/20141119.063311 submit/tizen_common/20141114.091625 submit/tizen_ivi/20141119.000000 submit/tizen_ivi/20141119.111111 submit/tizen_mobile/20141120.000000
authorManuel Bachmann <manuel.bachmann@open.eurogiciel.org>
Mon, 10 Nov 2014 13:33:19 +0000 (14:33 +0100)
committerManuel Bachmann <manuel.bachmann@open.eurogiciel.org>
Mon, 10 Nov 2014 14:27:10 +0000 (15:27 +0100)
commitca4ab014da6920b269d1792f8fdb84cc57885f2b
tree502eabb1ffdd02275b7f40e489558bef26093c44
parent38111fc05f2895d4bdaa7f2bcc5e495564cb0095
Implement a notification response wait/send API

Currently, interactive responses for notifications (done in
notification-display-service) are sent using a framework-
dependent mechanism. This is prone to become unmaintainable
as the scope of GUI notifications broadens.

There is a need for a generic way to wait for notifications
responses on one side, and to send such a response on
another side. We introduce 2 new functions here :

- notification_wait_response() : retrieves an integer and
a char* from the response, with an optional timeout value.

- notification_send_response() : send a response under the
form of an integer and an optional char*.

Communication is done with sockets using a TID (thread ID)
as an identifier.

Bug-Tizen: TC-996

Change-Id: I86d9d4bc3399dddff03b7f6c7eacbe2f842c5019
Signed-off-by: Manuel Bachmann <manuel.bachmann@open.eurogiciel.org>
CMakeLists.txt
include/notification.h
src/notification.c