summaryrefslogtreecommitdiff
path: root/gobex/gobex-packet.h
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@intel.com>2011-06-29 11:04:12 +0300
committerMarcel Holtmann <marcel@holtmann.org>2012-12-04 22:21:57 +0100
commit1dc2ad6f0b7016fe8b61ef7c7314030823534139 (patch)
tree797e458c86741f0c0a3464d785cd4451003c2ddd /gobex/gobex-packet.h
parentd455694af22896a1a3608f44352eb5caa388a57c (diff)
downloadbluez-1dc2ad6f0b7016fe8b61ef7c7314030823534139.tar.gz
gobex: Use GLib size types
Diffstat (limited to 'gobex/gobex-packet.h')
-rw-r--r--gobex/gobex-packet.h12
1 files changed, 5 insertions, 7 deletions
diff --git a/gobex/gobex-packet.h b/gobex/gobex-packet.h
index ddce68607..908efac3d 100644
--- a/gobex/gobex-packet.h
+++ b/gobex/gobex-packet.h
@@ -22,8 +22,6 @@
#ifndef __GOBEX_PACKET_H
#define __GOBEX_PACKET_H
-#include <unistd.h>
-
#include <glib.h>
#include <gobex/gobex-defs.h>
@@ -45,15 +43,15 @@ typedef struct _GObexPacket GObexPacket;
GObexHeader *g_obex_packet_get_header(GObexPacket *pkt, guint8 id);
guint8 g_obex_packet_get_operation(GObexPacket *pkt, gboolean *final);
gboolean g_obex_packet_add_header(GObexPacket *pkt, GObexHeader *header);
-gboolean g_obex_packet_set_data(GObexPacket *pkt, const void *data, size_t len,
+gboolean g_obex_packet_set_data(GObexPacket *pkt, const void *data, gsize len,
GObexDataPolicy data_policy);
-const void *g_obex_packet_get_data(GObexPacket *pkt, size_t *len);
+const void *g_obex_packet_get_data(GObexPacket *pkt, gsize *len);
GObexPacket *g_obex_packet_new(guint8 opcode, gboolean final);
void g_obex_packet_free(GObexPacket *pkt);
-GObexPacket *g_obex_packet_decode(const void *data, size_t len,
- size_t header_offset,
+GObexPacket *g_obex_packet_decode(const void *data, gsize len,
+ gsize header_offset,
GObexDataPolicy data_policy);
-ssize_t g_obex_packet_encode(GObexPacket *pkt, guint8 *buf, size_t len);
+gssize g_obex_packet_encode(GObexPacket *pkt, guint8 *buf, gsize len);
#endif /* __GOBEX_PACKET_H */