From 4fd90fb81a9ab329800c41473ba948af16bbda8e Mon Sep 17 00:00:00 2001 From: Matt Ranostay Date: Fri, 3 May 2019 02:43:24 -0700 Subject: binding: bluetooth-map: add message composition support Add message composition suppport for sending SMS/MMS messages in bMessage format. Bug-AGL: SPEC-2351 Change-Id: I5709c6619f44863e949ae61363f7d5fe54adcbfc Signed-off-by: Matt Ranostay --- binding/bluetooth-map-common.h | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'binding/bluetooth-map-common.h') diff --git a/binding/bluetooth-map-common.h b/binding/bluetooth-map-common.h index 4b43c7e..12fe35a 100644 --- a/binding/bluetooth-map-common.h +++ b/binding/bluetooth-map-common.h @@ -57,6 +57,16 @@ struct map_state { GHashTable *xfer_queue; }; +enum xfer_types { + XFER_NOTIFICATION, + XFER_SENTMSG, +}; + +struct xfer_tuple { + enum xfer_types type; + gpointer value; +}; + struct init_data { GCond cond; GMutex mutex; @@ -67,11 +77,12 @@ struct init_data { }; struct call_work { - struct bluetooth_state *ns; + struct map_state *ns; int id; gchar *access_type; gchar *type_arg; gchar *method; + gchar *bluez_method; struct bluez_pending_work *cpw; afb_req_t request; GDBusMethodInvocation *invocation; -- cgit 1.2.3-korg