From: Slawomir Bochenski <lkslawek@gmail.com>
To: linux-bluetooth@vger.kernel.org
Cc: Slawomir Bochenski <lkslawek@gmail.com>
Subject: [PATCH obexd v3 2/3] MAP: Initial outgoing parameters support
Date: Tue, 27 Mar 2012 14:59:26 +0200 [thread overview]
Message-ID: <1332853167-13676-2-git-send-email-lkslawek@gmail.com> (raw)
In-Reply-To: <1332853167-13676-1-git-send-email-lkslawek@gmail.com>
---
plugins/mas.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/plugins/mas.c b/plugins/mas.c
index f6d4799..ea2b4b2 100644
--- a/plugins/mas.c
+++ b/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;
--
1.7.4.1
next prev parent reply other threads:[~2012-03-27 12:59 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-03-27 12:59 [PATCH obexd v3 1/3] MAP: Add implementation of map_ap_encode() Slawomir Bochenski
2012-03-27 12:59 ` Slawomir Bochenski [this message]
2012-03-27 12:59 ` [PATCH obexd v3 3/3] MAP: Output parameters in folder listing reply Slawomir Bochenski
2012-03-28 9:38 ` [PATCH obexd v3 1/3] MAP: Add implementation of map_ap_encode() Johan Hedberg
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1332853167-13676-2-git-send-email-lkslawek@gmail.com \
--to=lkslawek@gmail.com \
--cc=linux-bluetooth@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox