diff options
author | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2011-11-15 15:27:54 +0200 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@intel.com> | 2011-11-16 15:41:07 +0200 |
commit | 5e24938677cdd556f7ece2be889b01cdf5a53e48 (patch) | |
tree | 903039a501346ea758c4d7f749a1d8c0b4235523 /plugins | |
parent | 4494df4cef64e969d62c3837d51a7bbb51b16a8c (diff) | |
download | obexd-5e24938677cdd556f7ece2be889b01cdf5a53e48.tar.gz |
Introduce obex_get_non_header_data
This function remove the need of calling OBEX_ObjectGetNonHdrData in the
plugins.
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/ftp.c | 4 | ||||
-rw-r--r-- | plugins/mas.c | 4 | ||||
-rw-r--r-- | plugins/pbap.c | 4 |
3 files changed, 6 insertions, 6 deletions
diff --git a/plugins/ftp.c b/plugins/ftp.c index 0586326..7a736ae 100644 --- a/plugins/ftp.c +++ b/plugins/ftp.c @@ -255,13 +255,13 @@ int ftp_setpath(struct obex_session *os, obex_object_t *obj, void *user_data) { struct ftp_session *ftp = user_data; const char *root_folder, *name; - uint8_t *nonhdr; + const uint8_t *nonhdr; char *fullname; struct stat dstat; gboolean root; int err; - if (OBEX_ObjectGetNonHdrData(obj, &nonhdr) != 2) { + if (obex_get_non_header_data(os, &nonhdr) != 2) { error("Set path failed: flag and constants not found!"); return -EBADMSG; } diff --git a/plugins/mas.c b/plugins/mas.c index 7d3d553..7d47212 100644 --- a/plugins/mas.c +++ b/plugins/mas.c @@ -410,10 +410,10 @@ static int mas_setpath(struct obex_session *os, obex_object_t *obj, void *user_data) { const char *name; - uint8_t *nonhdr; + const uint8_t *nonhdr; struct mas_session *mas = user_data; - if (OBEX_ObjectGetNonHdrData(obj, &nonhdr) != 2) { + if (obex_get_non_header_data(os, &nonhdr) != 2) { error("Set path failed: flag and constants not found!"); return -EBADR; } diff --git a/plugins/pbap.c b/plugins/pbap.c index fb82766..2e607b3 100644 --- a/plugins/pbap.c +++ b/plugins/pbap.c @@ -698,11 +698,11 @@ static int pbap_setpath(struct obex_session *os, obex_object_t *obj, { struct pbap_session *pbap = user_data; const char *name; - uint8_t *nonhdr; + const uint8_t *nonhdr; char *fullname; int err; - if (OBEX_ObjectGetNonHdrData(obj, &nonhdr) != 2) { + if (obex_get_non_header_data(os, &nonhdr) != 2) { error("Set path failed: flag and constants not found!"); return -EBADMSG; } |