void sdp_remove() { if (sdp_record && sdp_record_unregister(sdp_session, sdp_record)) { printf("%s: HID Device (Keyboard) Service Record unregistration failed\n", (char*)__func__); } sdp_close(sdp_session); }
/** * Removes SDP record identified by "handle". */ void sdp_remove(int handle) { if (sdp_session) { sdp_record_t * rec = get_sdp_record(sdp_session, handle); if (rec != NULL && sdp_record_unregister(sdp_session, rec)) { LOGE("%s: HID Device (Keyboard) Service Record unregistration failed\n", (char*)__func__); } } }
void connection_cleanup(){ if (btServerSocket != INVALID_SOCKET){ close(btServerSocket); btServerSocket = INVALID_SOCKET; } if(sdpRecord != NULL) { sdp_record_unregister(sdpSession, sdpRecord); sdpRecord = NULL; } if(sdpSession != NULL) { sdp_close(sdpSession); sdpSession = NULL; } if (wifiServerSocket != INVALID_SOCKET) close(wifiServerSocket); }
void dun_sdp_unregister(void) { if (record && sdp_record_unregister(session, record)) syslog(LOG_ERR, "Service record unregistration failed."); sdp_close(session); }