Get the udc-widevine-dev Android branch and oemcrypto-v18 cdm branch in sync. The commit ID for 18.4 on oemcrypto-v18 is https://widevine-internal.git.corp.google.com/cdm/+/a2f23a2281e5e06dc2867585bdc516fa132b639. Merged from go/wvgerrit/190151 Bug: 290252845 Test: unit tests passing on Panther device Change-Id: I63fa3f1c784f737ca1480e5febe4f3f5a8a49948
34 lines
975 B
C++
34 lines
975 B
C++
// Copyright 2018 Google LLC. All Rights Reserved. This file and proprietary
|
|
// source code may only be used and distributed under the Widevine
|
|
// License Agreement.
|
|
|
|
/*********************************************************************
|
|
* level3_file_system.h
|
|
*
|
|
* File system for OEMCrypto Level3 file operations.
|
|
*********************************************************************/
|
|
|
|
#ifndef LEVEL3_FILE_SYSTEM_H_
|
|
#define LEVEL3_FILE_SYSTEM_H_
|
|
|
|
#include <stdlib.h>
|
|
|
|
#include "platform.h"
|
|
|
|
namespace wvoec3 {
|
|
|
|
class OEMCrypto_Level3FileSystem {
|
|
public:
|
|
virtual ~OEMCrypto_Level3FileSystem() {}
|
|
virtual ssize_t Read(const char *filename, void *buffer, size_t size) = 0;
|
|
virtual ssize_t Write(const char *filename, const void *buffer,
|
|
size_t size) = 0;
|
|
virtual bool Exists(const char *filename) = 0;
|
|
virtual ssize_t FileSize(const char *filename) = 0;
|
|
virtual bool Remove(const char *filename) = 0;
|
|
};
|
|
|
|
} // namespace wvoec3
|
|
|
|
#endif
|