• Home
  • Raw
  • Download

Lines Matching refs:attrib

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