bool MHSyncItemInfo::isLocallyAvailable() { // This is dirty, but at the moment this is the only way we can do it StringBuffer iD; iD.append(getId()); if (iD == getLuid()) { // This is the a file item return getLocalItemPath().empty() == false; } else { // This is a pix or video return getLuid().empty() == false; } }
void NetPlatform_flushAddresses(const char* deviceName, struct Except* eh) { NET_LUID luid = getLuid(deviceName, eh); MIB_UNICASTIPADDRESS_TABLE* table; WinFail_check(eh, GetUnicastIpAddressTable(AF_INET, &table)); LONG ret = flushAddresses(luid, table); FreeMibTable(table); if (ret) { WinFail_fail(eh, "DeleteUnicastIpAddressEntry(&table->Table[i])", ret); } WinFail_check(eh, GetUnicastIpAddressTable(AF_INET6, &table)); ret = flushAddresses(luid, table); FreeMibTable(table); if (ret) { WinFail_fail(eh, "DeleteUnicastIpAddressEntry(&table->Table[i])", ret); } }