diff options
author | Johan Hedberg <johan.hedberg@intel.com> | 2011-08-30 12:32:00 +0300 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2012-12-04 22:22:02 +0100 |
commit | 003421aed298c52eacd5e58c120f877df5462ea0 (patch) | |
tree | 16e9dafe2daaffb5fa7d2e0b10f276761df10c20 /gobex/gobex-packet.h | |
parent | e12802a76b6a26d7556be8392aa9af75b8e983c5 (diff) | |
download | bluez-003421aed298c52eacd5e58c120f877df5462ea0.tar.gz |
gobex: Add OBEX packet header addition convenience functions
Diffstat (limited to 'gobex/gobex-packet.h')
-rw-r--r-- | gobex/gobex-packet.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gobex/gobex-packet.h b/gobex/gobex-packet.h index ff6dcd295..6bdfcf039 100644 --- a/gobex/gobex-packet.h +++ b/gobex/gobex-packet.h @@ -89,6 +89,12 @@ gboolean g_obex_packet_prepend_header(GObexPacket *pkt, GObexHeader *header); gboolean g_obex_packet_add_header(GObexPacket *pkt, GObexHeader *header); gboolean g_obex_packet_add_body(GObexPacket *pkt, GObexDataProducer func, gpointer user_data); +gboolean g_obex_packet_add_unicode(GObexPacket *pkt, guint8 id, + const char *str); +gboolean g_obex_packet_add_bytes(GObexPacket *pkt, guint8 id, + const void *data, gsize len); +gboolean g_obex_packet_add_uint8(GObexPacket *pkt, guint8 id, guint8 val); +gboolean g_obex_packet_add_uint32(GObexPacket *pkt, guint8 id, guint32 val); 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, gsize *len); |