Export media_cas_proxy_sdk
This commit is contained in:
27
common/file_util.h
Normal file
27
common/file_util.h
Normal file
@@ -0,0 +1,27 @@
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
// Copyright 2016 Google LLC.
|
||||
//
|
||||
// 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_
|
||||
Reference in New Issue
Block a user