diff options
author | Slawomir Bochenski <lkslawek@gmail.com> | 2012-03-27 14:59:26 +0200 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2012-12-04 22:48:56 +0100 |
commit | 832a725f355e222169727f282c8996536cca1c17 (patch) | |
tree | c9a1e4337208932d472259777439eea50ffbd1e9 /obexd/plugins | |
parent | 3e48e93775a2c54b114ae3cec91aedfdd74cc3e4 (diff) | |
download | bluez-832a725f355e222169727f282c8996536cca1c17.tar.gz |
obexd: Initial outgoing parameters support
Diffstat (limited to 'obexd/plugins')
-rw-r--r-- | obexd/plugins/mas.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/obexd/plugins/mas.c b/obexd/plugins/mas.c index f6d479980..ea2b4b2a6 100644 --- a/obexd/plugins/mas.c +++ b/obexd/plugins/mas.c @@ -110,6 +110,7 @@ struct mas_session { gboolean nth_call; GString *buffer; map_ap_t *inparams; + map_ap_t *outparams; }; static const uint8_t MAS_TARGET[TARGET_SIZE] = { @@ -131,6 +132,8 @@ static int get_params(struct obex_session *os, struct mas_session *mas) return -EBADR; } + mas->outparams = map_ap_new(); + return 0; } @@ -143,6 +146,8 @@ static void reset_request(struct mas_session *mas) map_ap_free(mas->inparams); mas->inparams = NULL; + map_ap_free(mas->outparams); + mas->outparams = NULL; mas->nth_call = FALSE; mas->finished = FALSE; |