/* * Set the profile descriptor list attribute of a record. * * Each element in the list is an object of type * sdp_profile_desc_t which is a definition of the * Bluetooth profile that this service conforms to. */ int sdp_set_profile_descs(sdp_record_t *rec, const sdp_list_t *desc);
/* * Set URL attributes of a record. * * ClientExecutableURL: a URL to a client's platform specific (WinCE, * PalmOS) executable code that can be used to access this service. * * DocumentationURL: a URL pointing to service documentation * * IconURL: a URL to an icon that can be used to represent this service. * * Note: pass NULL for any URLs that you don't want to set or remove */ void sdp_set_url_attr(sdp_record_t *rec, const char *clientExecURL, const char *docURL, const char *iconURL);
/* * Set the ServiceID attribute of a service. */ void sdp_set_service_id(sdp_record_t *rec, uuid_t uuid);
/* * Set the GroupID attribute of a service */ void sdp_set_group_id(sdp_record_t *rec, uuid_t grouuuid);
/* * Set the information attributes of the service record. * The set of attributes comprises service name, description * and provider name */ void sdp_set_info_attr(sdp_record_t *rec, const char *name, const char *prov, const char *desc);
/* * Set the LanguageBase attributes to the values specified in list * (a linked list of sdp_lang_attr_t objects, one for each language in * which user-visible attributes are present). */ int sdp_set_lang_attr(sdp_record_t *rec, ref sdp_list_t list);
/* * NOTE that none of the functions below will update the SDP server, * unless the {register, update}sdp_record_t() function is invoked. * All functions which return an integer value, return 0 on success * or -1 on failure. */ /* * Create an attribute and add it to the service record's attribute list. * This consists of the data type descriptor of the attribute, * the value of the attribute and the attribute identifier. */ int sdp_attr_add_new(sdp_record_t *rec, uint16_t attr, uint8_t dtd, const void *p);
int sdp_set_uuidseq_attr(sdp_record_t *rec, uint16_t attr, sdp_list_t *seq);
void sdp_attr_replace(sdp_record_t *rec, uint16_t attr, sdp_data_t *data);
void sdp_attr_remove(sdp_record_t *rec, uint16_t attr);
int sdp_attr_add(sdp_record_t *rec, uint16_t attr, sdp_data_t *data);