Home | History | Annotate | Download | only in attrib

Lines Matching defs:attrib

37 	GAttrib *attrib;
45 GAttrib *attrib;
56 g_attrib_unref(dp->attrib);
64 g_attrib_unref(dc->attrib);
133 buf = g_attrib_get_buffer(dp->attrib, &buflen);
140 g_attrib_send(dp->attrib, 0, buf[0], buf, oplen, primary_by_uuid_cb,
202 uint8_t *buf = g_attrib_get_buffer(dp->attrib, &buflen);
206 g_attrib_send(dp->attrib, 0, buf[0], buf, oplen, primary_all_cb,
217 guint gatt_discover_primary(GAttrib *attrib, bt_uuid_t *uuid, gatt_cb_t func,
222 uint8_t *buf = g_attrib_get_buffer(attrib, &buflen);
234 dp->attrib = g_attrib_ref(attrib);
244 return g_attrib_send(attrib, 0, buf[0], buf, plen, cb, dp, NULL);
304 buf = g_attrib_get_buffer(dc->attrib, &buflen);
314 g_attrib_send(dc->attrib, 0, buf[0], buf, oplen,
325 guint gatt_discover_char(GAttrib *attrib, uint16_t start, uint16_t end,
330 uint8_t *buf = g_attrib_get_buffer(attrib, &buflen);
345 dc->attrib = g_attrib_ref(attrib);
351 return g_attrib_send(attrib, 0, buf[0], buf, plen, char_discovered_cb,
355 guint gatt_read_char_by_uuid(GAttrib *attrib, uint16_t start, uint16_t end,
360 uint8_t *buf = g_attrib_get_buffer(attrib, &buflen);
367 return g_attrib_send(attrib, 0, ATT_OP_READ_BY_TYPE_REQ,
372 GAttrib *attrib;
421 buf = g_attrib_get_buffer(long_read->attrib, &buflen);
427 id = g_attrib_send(long_read->attrib, long_read->id,
448 uint8_t *buf = g_attrib_get_buffer(long_read->attrib, &buflen);
464 id = g_attrib_send(long_read->attrib, long_read->id,
479 guint gatt_read_char(GAttrib *attrib, uint16_t handle, uint16_t offset,
493 long_read->attrib = attrib;
498 buf = g_attrib_get_buffer(attrib, &buflen);
502 id = g_attrib_send(attrib, 0, ATT_OP_READ_BLOB_REQ, buf, plen,
506 id = g_attrib_send(attrib, 0, ATT_OP_READ_REQ, buf, plen,
520 guint gatt_write_char(GAttrib *attrib, uint16_t handle, uint8_t *value,
527 buf = g_attrib_get_buffer(attrib, &buflen);
533 return g_attrib_send(attrib, 0, buf[0], buf, plen, func,
537 guint gatt_exchange_mtu(GAttrib *attrib, uint16_t mtu, GAttribResultFunc func,
544 buf = g_attrib_get_buffer(attrib, &buflen);
546 return g_attrib_send(attrib, 0, ATT_OP_MTU_REQ, buf, plen, func,
550 guint gatt_find_info(GAttrib *attrib, uint16_t start, uint16_t end,
557 buf = g_attrib_get_buffer(attrib, &buflen);
562 return g_attrib_send(attrib, 0, ATT_OP_FIND_INFO_REQ, buf, plen, func,
566 guint gatt_write_cmd(GAttrib *attrib, uint16_t handle, uint8_t *value, int vlen,
573 buf = g_attrib_get_buffer(attrib, &buflen);
575 return g_attrib_send(attrib, 0, ATT_OP_WRITE_CMD, buf, plen, NULL,