int TvDeviceStop(void) { UpnpUnRegisterRootDevice(device_handle); UpnpFinish(); SampleUtil_Finish(); ithread_mutex_destroy(&TVDevMutex); return UPNP_E_SUCCESS; }
//////////////////////////////////////// //stop the client //////////////////////////////////////// int TvCtrlPointStop( void ) { TvCtrlPointRemoveAll( ); UpnpUnRegisterClient( ctrlpt_handle ); UpnpFinish( ); SampleUtil_Finish( ); return TV_SUCCESS; }