Lines Matching refs:uuid

160 // Registers a service with the given |name|, |uuid|, and |channel| in the SDP
161 // database as a generic L2CAP RFCOMM protocol, storing its |uuid| as a service
163 static int add_sdp_by_uuid(const char *name, const uint8_t *uuid,
179 // Convert the |uuid| into a big-endian representation and add it as a
193 ARRAY_TO_BE_STREAM(tmp, uuid, UUID_MAX_LENGTH);
364 // Adds an RFCOMM SDP record for a service with the given |name|, |uuid|, and
366 // upon its |uuid|, and will override the |channel| with a reserved channel
367 // number if the |uuid| matches one of the preregistered bluez SDP records.
368 static int add_rfc_sdp_by_uuid(const char *name, const uint8_t *uuid,
385 int final_channel = get_reserved_rfc_channel(uuid);
393 if (UUID_MATCHES(UUID_OBEX_OBJECT_PUSH, uuid)) {
395 } else if (UUID_MATCHES(UUID_PBAP_PSE,uuid)) {
398 } else if (UUID_MATCHES(UUID_SPP, uuid)) {
400 } else if (UUID_MATCHES(UUID_MAP_MAS,uuid)) {
404 handle = add_sdp_by_uuid(name, uuid, final_channel);
420 int get_reserved_rfc_channel(const uint8_t *uuid) {
421 if (UUID_MATCHES(UUID_PBAP_PSE, uuid)) {
423 } else if (UUID_MATCHES(UUID_OBEX_OBJECT_PUSH, uuid)) {
430 // Adds an SDP record to the SDP database using the given |name|, |uuid|, and
431 // |channel|. Note that if the |uuid| is empty, the |uuid| will be set based
433 int add_rfc_sdp_rec(const char *name, const uint8_t *uuid, const int channel) {
434 if (is_uuid_empty(uuid)) {
437 uuid = UUID_PBAP_PSE;
441 uuid = UUID_OBEX_OBJECT_PUSH;
445 uuid = UUID_SPP;
450 return add_rfc_sdp_by_uuid(name, uuid, channel);