28 lines
807 B
C++
28 lines
807 B
C++
////////////////////////////////////////////////////////////////////////////////
|
|
// Copyright 2016 Google Inc.
|
|
//
|
|
// This software is licensed under the terms defined in the Widevine Master
|
|
// License Agreement. For a copy of this agreement, please contact
|
|
// widevine-licensing@google.com.
|
|
////////////////////////////////////////////////////////////////////////////////
|
|
|
|
// File util wrapper to be used in partner sdks. Implemented using generic file
|
|
// apis.
|
|
|
|
#ifndef COMMON_FILE_UTIL_H_
|
|
#define COMMON_FILE_UTIL_H_
|
|
|
|
#include <string>
|
|
|
|
namespace widevine {
|
|
|
|
// Read file to string.
|
|
bool GetContents(const std::string& file_name, std::string* contents);
|
|
|
|
// Write file.
|
|
bool SetContents(const std::string& file_name, const std::string& contents);
|
|
|
|
} // namespace widevine
|
|
|
|
#endif // COMMON_FILE_UTIL_H_
|