• Home
  • Raw
  • Download

Lines Matching refs:sess

755 static int set_attrib(sdp_session_t *sess, uint32_t handle, uint16_t attrib, char *value)  in set_attrib()  argument
764 rec = sdp_service_attr_req(sess, handle, SDP_ATTR_REQ_RANGE, attrid_list); in set_attrib()
801 ret = sdp_device_record_update(sess, &interface, rec); in set_attrib()
825 sdp_session_t *sess; in cmd_setattr() local
848 sess = sdp_connect(BDADDR_ANY, BDADDR_LOCAL, 0); in cmd_setattr()
849 if (!sess) in cmd_setattr()
852 status = set_attrib(sess, handle, attrib, argv[2]); in cmd_setattr()
853 sdp_close(sess); in cmd_setattr()
964 sdp_session_t *sess; in cmd_setseq() local
990 sess = sdp_connect(BDADDR_ANY, BDADDR_LOCAL, 0); in cmd_setseq()
991 if (!sess) in cmd_setseq()
994 status = set_attribseq(sess, handle, attrib, argc, argv); in cmd_setseq()
995 sdp_close(sess); in cmd_setseq()
3434 int (*add)(sdp_session_t *sess, svc_info_t *si);
3496 sdp_session_t *sess; in add_service() local
3502 sess = sdp_connect(&interface, BDADDR_LOCAL, SDP_RETRY_IF_BUSY); in add_service()
3503 if (!sess) in add_service()
3509 ret = service[i].add(sess, si); in add_service()
3517 sdp_close(sess); in add_service()
3593 sdp_session_t *sess; in del_service() local
3601 sess = sdp_connect(&interface, BDADDR_LOCAL, SDP_RETRY_IF_BUSY); in del_service()
3602 if (!sess) { in del_service()
3609 rec = sdp_service_attr_req(sess, handle, SDP_ATTR_REQ_RANGE, attr); in del_service()
3614 sdp_close(sess); in del_service()
3618 if (sdp_device_record_unregister(sess, &interface, rec)) { in del_service()
3620 sdp_close(sess); in del_service()
3625 sdp_close(sess); in del_service()
3694 sdp_session_t *sess; in do_search() local
3701 sess = sdp_connect(&interface, bdaddr, SDP_RETRY_IF_BUSY); in do_search()
3703 if (!sess) { in do_search()
3717 if (sdp_service_search_attr_req(sess, search, SDP_ATTR_REQ_RANGE, attrid, &seq)) { in do_search()
3719 sdp_close(sess); in do_search()
3762 sdp_close(sess); in do_search()