summaryrefslogtreecommitdiffstats
path: root/remoting/client/client_util.h
blob: 8cad1d56f25626008980991df33eff2db91fc814 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
// Copyright (c) 2010 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.

#ifndef REMOTING_CLIENT_CLIENT_UTIL_H_
#define REMOTING_CLIENT_CLIENT_UTIL_H_

#include <string>

namespace remoting {

struct ClientConfig;

// Get the login info from the cmdline args (or request from the console if
// not present) and write values into |config|.
// Return true if successful.
bool GetLoginInfoFromArgs(int argc, char** argv, ClientConfig* config);

// Get the login info from the URL params and write values into |config|.
// Return true if successful.
bool GetLoginInfoFromUrlParams(const std::string& url, ClientConfig* config);

}  // namespace remoting

#endif  // REMOTING_CLIENT_CLIENT_UTIL_H_