blob: 42e37a755eef89cba6ab35a7bf4653ba0a6950da [file] [log] [blame]
// Copyright 2020 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Utility functions for the LorgnetteScannerManager.
#ifndef CHROME_BROWSER_ASH_SCANNING_LORGNETTE_SCANNER_MANAGER_UTIL_H_
#define CHROME_BROWSER_ASH_SCANNING_LORGNETTE_SCANNER_MANAGER_UTIL_H_
#include <string>
#include "chromeos/scanning/scanner.h"
namespace ash {
// Attempts to parse |scanner_name| to find an IP address and determine the scan
// protocol it corresponds to. If an IP address is found, it is returned in
// |ip_address_out|.
void ParseScannerName(const std::string& scanner_name,
std::string& ip_address_out,
chromeos::ScanProtocol& protocol_out);
} // namespace ash
#endif // CHROME_BROWSER_ASH_SCANNING_LORGNETTE_SCANNER_MANAGER_UTIL_H_