~ubuntu-branches/ubuntu/oneiric/bluez/oneiric-201105191013

« back to all changes in this revision

Viewing changes to attrib/att.h

  • Committer: Bazaar Package Importer
  • Author(s): Robert Ancell
  • Date: 2011-01-07 13:21:49 UTC
  • mfrom: (1.1.25 upstream)
  • Revision ID: james.westby@ubuntu.com-20110107132149-h5s1m62mgctaqdyu
Tags: 4.84-0ubuntu1
New upstream release

Show diffs side-by-side

added added

removed removed

Lines of Context:
137
137
        uint16_t end;
138
138
};
139
139
 
 
140
struct att_primary {
 
141
        char uuid[MAX_LEN_UUID_STR + 1];
 
142
        uint16_t start;
 
143
        uint16_t end;
 
144
};
 
145
 
140
146
/* These functions do byte conversion */
141
147
static inline uint8_t att_get_u8(const void *ptr)
142
148
{
202
208
uint16_t dec_write_req(const uint8_t *pdu, int len, uint16_t *handle,
203
209
                                                uint8_t *value, int *vlen);
204
210
uint16_t enc_read_req(uint16_t handle, uint8_t *pdu, int len);
 
211
uint16_t enc_read_blob_req(uint16_t handle, uint16_t offset, uint8_t *pdu,
 
212
                                                                        int len);
205
213
uint16_t dec_read_req(const uint8_t *pdu, int len, uint16_t *handle);
206
214
uint16_t enc_read_resp(uint8_t *value, int vlen, uint8_t *pdu, int len);
207
215
uint16_t dec_read_resp(const uint8_t *pdu, int len, uint8_t *value, int *vlen);