void win8centralplugin::write_descriptor(device& dev, const service& srv, const characteristic& chr, descriptor& desc, bool notify) { switch( desc.type() ) { case CLIENT_CHARACTERISTIC_CONFIGURATION: { // TODO break; } case SERVER_CHARACTERISTIC_CONFIGURATION: { // TODO break; } default: break; // TODO throw not_implemented } }
bool descriptor::operator == (const descriptor& other) const { return type_ == other.type() && handle_ == other.handle(); }