#include "discovery_mgr_impl.h"
#include "discovery_provider/smartview_discovery_provider.h"
-#include "discovery_provider/ble_discovery_provider.h"
+#include "discovery_provider/wifi_direct_discovery_provider.h"
#include "discovery_provider/iotcon_discovery_provider.h"
#include "access_control/privilege.h"
{
_D("Discovery_Manager Init!!..");
register_provider(new(std::nothrow) conv::smartview_discovery_provider());
- register_provider(new(std::nothrow) conv::ble_discovery_provider());
+ register_provider(new(std::nothrow) conv::wifi_direct_discovery_provider());
register_provider(new(std::nothrow) conv::iotcon_discovery_provider());
request_map.clear();
* limitations under the License.
*/
-#include "ble_discovery_provider.h"
+#include "wifi_direct_discovery_provider.h"
#include "../discovery_mgr_impl.h"
#include <net_connection.h>
using namespace std;
-conv::ble_discovery_provider::ble_discovery_provider()
+conv::wifi_direct_discovery_provider::wifi_direct_discovery_provider()
{
}
-conv::ble_discovery_provider::~ble_discovery_provider()
+conv::wifi_direct_discovery_provider::~wifi_direct_discovery_provider()
{
}
#endif
#if 0 // TODO: make and notice if it's device support d2d
- conv::ble_discovery_provider* disc_provider = (conv::ble_discovery_provider*)user_data;
+ conv::wifi_direct_discovery_provider* disc_provider = (conv::wifi_direct_discovery_provider*)user_data;
conv::service *conv_service = new(std::nothrow) conv::service;
conv_service->setName(peer->device_name);
return result;
}
-int conv::ble_discovery_provider::init()
+int conv::wifi_direct_discovery_provider::init()
{
//init_wfd_client((void*)this);
- _D("ble_discovery_provider init done");
+ _D("wifi_direct_discovery_provider init done");
return CONV_ERROR_NONE;
}
-int conv::ble_discovery_provider::release()
+int conv::wifi_direct_discovery_provider::release()
{
return CONV_ERROR_NONE;
}
-int conv::ble_discovery_provider::start()
+int conv::wifi_direct_discovery_provider::start()
{
//return start_wfd_discovery();
return CONV_ERROR_NONE;
}
-int conv::ble_discovery_provider::stop()
+int conv::wifi_direct_discovery_provider::stop()
{
return CONV_ERROR_NONE;
}
-int conv::ble_discovery_provider::checkExistence(conv::service* conv_service)
+int conv::wifi_direct_discovery_provider::checkExistence(conv::service* conv_service)
{
// print conv_service Info..
_D("Check Existence : %s", conv_service->getName().c_str());
}
}
-int conv::ble_discovery_provider::notice_discovered(conv::service* conv_service)
+int conv::wifi_direct_discovery_provider::notice_discovered(conv::service* conv_service)
{
_D("Notice Discovered called with service[%x]", conv_service);
* limitations under the License.
*/
-#ifndef __BLE_DISCOVERY_PROVIDER_H__
-#define __BLE_DISCOVERY_PROVIDER_H__
+#ifndef __WIFI_DIRECT_DISCOVERY_PROVIDER_H__
+#define __WIFI_DIRECT_DISCOVERY_PROVIDER_H__
#include <iotcon.h>
#include <glib.h>
#include "smartview/service.h"
namespace conv {
- class ble_discovery_provider : public discovery_provider_base {
+ class wifi_direct_discovery_provider : public discovery_provider_base {
public:
- ble_discovery_provider();
- ~ble_discovery_provider();
+ wifi_direct_discovery_provider();
+ ~wifi_direct_discovery_provider();
int init();
int release();