Changes to adapter + gyp to support v15
Bug: b/117558570 Test: Android, CE CDM, and Linux tests Merge of http://go/wvgerrit/67566 This CL adds changes to support the Level 3 upgrade to v15 with both the dynamic and static adapters. It also rearranges the wvcrc.cpp files so that the tests have their own copy and Level 3 can just use the one in ref/src. Change-Id: Ieee2859601881aa1800622454e6ce0345eb94aa7
This commit is contained in:
@@ -7,6 +7,8 @@
|
||||
#include <arpa/inet.h>
|
||||
#include "wvcrc32.h"
|
||||
|
||||
namespace wvoec_ref {
|
||||
|
||||
#define INIT_CRC32 0xffffffff
|
||||
|
||||
uint32_t wvrunningcrc32(const uint8_t* p_begin, int i_count, uint32_t i_crc) {
|
||||
@@ -102,3 +104,5 @@ uint32_t wvcrc32Cont(const uint8_t* p_begin, int i_count, uint32_t prev_crc) {
|
||||
uint32_t wvcrc32n(const uint8_t* p_begin, int i_count) {
|
||||
return htonl(wvrunningcrc32(p_begin, i_count, INIT_CRC32));
|
||||
}
|
||||
|
||||
} // namespace wvoec_ref
|
||||
|
||||
@@ -9,6 +9,8 @@
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
namespace wvoec_ref {
|
||||
|
||||
uint32_t wvcrc32(const uint8_t* p_begin, int i_count);
|
||||
uint32_t wvcrc32Init();
|
||||
uint32_t wvcrc32Cont(const uint8_t* p_begin, int i_count, uint32_t prev_crc);
|
||||
@@ -16,4 +18,6 @@ uint32_t wvcrc32Cont(const uint8_t* p_begin, int i_count, uint32_t prev_crc);
|
||||
// Convert to network byte order
|
||||
uint32_t wvcrc32n(const uint8_t* p_begin, int i_count);
|
||||
|
||||
} // namespace wvoec_ref
|
||||
|
||||
#endif // WVCRC32_H_
|
||||
|
||||
Reference in New Issue
Block a user