46 lines
1.0 KiB
C
46 lines
1.0 KiB
C
/*
|
|
* Copyright 2020 Google LLC. All Rights Reserved. This file and proprietary
|
|
* source code may only be used and distributed under the Widevine Master
|
|
* License Agreement.
|
|
*/
|
|
|
|
/*
|
|
* Support functions for the OEMCrypto API functions, related to
|
|
* message handling
|
|
*/
|
|
|
|
#include <pthread.h>
|
|
|
|
#include "OEMCryptoCENC.h"
|
|
#include "bump_allocator.h"
|
|
#include "deserializer.h"
|
|
#include "marshaller_base.h"
|
|
#include "serializer.h"
|
|
#include "shared_memory_allocator.h"
|
|
#include "shared_memory_interface.h"
|
|
#include "special_cases.h"
|
|
#include "transport_interface.h"
|
|
|
|
#ifndef ODKITEE_API_SUPPORT_H_
|
|
#define ODKITEE_API_SUPPORT_H_
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
#define OEMCRYPTO_API __attribute__((visibility("default")))
|
|
|
|
extern pthread_mutex_t api_lock;
|
|
extern OEMCryptoResult api_result;
|
|
|
|
Message *API_InitializeRequest();
|
|
Message *API_Transact(Message *request);
|
|
OEMCryptoResult API_CheckResult(OEMCryptoResult unpacked_result);
|
|
void API_Terminate();
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif /* ODKITEE_API_SUPOPRT_H_ */
|