Android-cuttlefish cvd tool
file_sync_client.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2018 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#pragma once
18
19#include <string>
20#include <vector>
21
22#include "file_sync_protocol.h"
23
24bool do_sync_ls(const char* path);
25bool do_sync_push(const std::vector<const char*>& srcs, const char* dst, bool sync,
26 CompressionType compression, bool dry_run, bool quiet);
27bool do_sync_pull(const std::vector<const char*>& srcs, const char* dst, bool copy_attrs,
28 CompressionType compression, const char* name = nullptr, bool quiet = false);
29
30bool do_sync_sync(const std::string& lpath, const std::string& rpath, bool list_only,
31 CompressionType compression, bool dry_run, bool quiet);
bool do_sync_ls(const char *path)
Definition: file_sync_client.cpp:1275
bool do_sync_sync(const std::string &lpath, const std::string &rpath, bool list_only, CompressionType compression, bool dry_run, bool quiet)
Definition: file_sync_client.cpp:1782
bool do_sync_push(const std::vector< const char * > &srcs, const char *dst, bool sync, CompressionType compression, bool dry_run, bool quiet)
Definition: file_sync_client.cpp:1448
bool do_sync_pull(const std::vector< const char * > &srcs, const char *dst, bool copy_attrs, CompressionType compression, const char *name=nullptr, bool quiet=false)
Definition: file_sync_client.cpp:1671
CompressionType
Definition: file_sync_protocol.h:102