예제 #1
0
파일: sdp.c 프로젝트: kim0051/HIDSlave
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);
}
예제 #2
0
/**
 * 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__);
		}
	}

}
예제 #3
0
파일: connection.c 프로젝트: Aldup/droidcam
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);
}
예제 #4
0
void dun_sdp_unregister(void) 
{
	if (record && sdp_record_unregister(session, record))
		syslog(LOG_ERR, "Service record unregistration failed.");
	sdp_close(session);
}