blob: 39764b452519667ffd279ad71d2a368235736460 [file] [log] [blame]
Felipe Lemea9be4f32016-07-19 17:07:22 -07001/*
2 * Copyright (C) 2016 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17#ifndef COMMANDLINE_H
18#define COMMANDLINE_H
19
20#include "adb.h"
21
22int adb_commandline(int argc, const char** argv);
23int usage();
24
25// Connects to the device "shell" service with |command| and prints the
26// resulting output.
27int send_shell_command(TransportType transport_type, const char* serial, const std::string& command,
28 bool disable_shell_protocol, std::string* output = nullptr,
29 std::string* err = nullptr);
30
31#endif // COMMANDLINE_H