For context, see cl/578224540
This CL is produced via
- Do the removal
- `$ /google/src/head/depot/google3/devtools/scripts/csearch_apply --includefile 'video/widevine/export/common/oemcrypto_core_message/' --search='Copyright \d{4} Google LLC. All rights reserved.' --apply='s,\ All rights reserved\.,,g'`
- Manually deleted a few periods. I.e., for cases where the comment is ONLY "Copyright <year> Google LLC.", I removed the period at the end.
PiperOrigin-RevId: 580020267
Change-Id: I4b2f647d6e3bbb34868e1822591bc953a94cca42
48 lines
1.8 KiB
C
48 lines
1.8 KiB
C
// Copyright 2019 Google LLC. This file and proprietary
|
|
// source code may only be used and distributed under the Widevine
|
|
// License Agreement.
|
|
|
|
#ifndef WIDEVINE_ODK_SRC_SERIALIZATION_BASE_H_
|
|
#define WIDEVINE_ODK_SRC_SERIALIZATION_BASE_H_
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
#include <stddef.h>
|
|
#include <stdint.h>
|
|
|
|
#include "OEMCryptoCENCCommon.h"
|
|
#include "odk_message.h"
|
|
|
|
void Pack_enum(ODK_Message* message, int value);
|
|
void Pack_bool(ODK_Message* message, const bool* value);
|
|
void Pack_uint8_t(ODK_Message* message, const uint8_t* value);
|
|
void Pack_uint16_t(ODK_Message* message, const uint16_t* value);
|
|
void Pack_uint32_t(ODK_Message* message, const uint32_t* value);
|
|
void Pack_uint64_t(ODK_Message* message, const uint64_t* value);
|
|
void PackArray(ODK_Message* message, const uint8_t* base, size_t size);
|
|
void Pack_OEMCrypto_Substring(ODK_Message* message,
|
|
const OEMCrypto_Substring* obj);
|
|
|
|
void Unpack_OEMCrypto_LicenseType(ODK_Message* message,
|
|
OEMCrypto_LicenseType* value);
|
|
void Unpack_OEMCrypto_PrivateKeyType(ODK_Message* message,
|
|
OEMCrypto_PrivateKeyType* value);
|
|
void Unpack_OEMCrypto_TimerDelayBase(ODK_Message* message,
|
|
OEMCrypto_TimerDelayBase* value);
|
|
void Unpack_bool(ODK_Message* message, bool* value);
|
|
void Unpack_uint8_t(ODK_Message* message, uint8_t* value);
|
|
void Unpack_uint16_t(ODK_Message* message, uint16_t* value);
|
|
void Unpack_uint32_t(ODK_Message* message, uint32_t* value);
|
|
void Unpack_uint64_t(ODK_Message* message, uint64_t* value);
|
|
void UnpackArray(ODK_Message* message, uint8_t* address,
|
|
size_t size); /* copy out */
|
|
void Unpack_OEMCrypto_Substring(ODK_Message* message, OEMCrypto_Substring* obj);
|
|
|
|
#ifdef __cplusplus
|
|
} // extern "C"
|
|
#endif
|
|
|
|
#endif // WIDEVINE_ODK_SRC_SERIALIZATION_BASE_H_
|