be27f2e9 | 16-Aug-2024 |
Patrick Williams <patrick@stwcx.xyz> |
clang-format: re-format for clang-18
clang-format-18 isn't compatible with the clang-format-17 output, so we need to reformat the code with the latest version. The way clang-18 handles lambda forma
clang-format: re-format for clang-18
clang-format-18 isn't compatible with the clang-format-17 output, so we need to reformat the code with the latest version. The way clang-18 handles lambda formatting also changed, so we have made changes to the organization default style format to better handle lambda formatting.
See I5e08687e696dd240402a2780158664b7113def0e for updated style. See Iea0776aaa7edd483fa395e23de25ebf5a6288f71 for clang-18 enablement.
Change-Id: I133f4f43d4955ba1b86b924fc741aa5a56f34239 Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
show more ...
|
da6e5573 | 13-Mar-2023 |
Nikhil Namjoshi <nikhilnamjoshi@google.com> |
Add libbej encoder wrapper for C++
Add unit tests and the test data files needed for unit tests. Move APIs from bej_decoder_test.cpp to a common file, to share those with bej_encoder_test.cpp
Teste
Add libbej encoder wrapper for C++
Add unit tests and the test data files needed for unit tests. Move APIs from bej_decoder_test.cpp to a common file, to share those with bej_encoder_test.cpp
Tested: Verified that encoding using the wrapper works well at runtime. Verified that the unit tests pass.
Change-Id: I61b7c17690eb7e7fefd1973a22d4316c6214267e Signed-off-by: Nikhil Namjoshi <nikhilnamjoshi@google.com>
show more ...
|
6f3082ea | 20-Oct-2023 |
Patrick Williams <patrick@stwcx.xyz> |
clang-format: copy latest and re-format
clang-format-17 has some backwards incompatible changes that require additional settings for best compatibility and re-running the formatter. Copy the latest
clang-format: copy latest and re-format
clang-format-17 has some backwards incompatible changes that require additional settings for best compatibility and re-running the formatter. Copy the latest .clang-format from the docs repository and reformat the repository.
Change-Id: If45530480fdd7acb46a6a1b116187bcfcd90ac83 Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
show more ...
|
bde1bfa1 | 18-Aug-2023 |
kasunath <kasunath@google.com> |
Get metadata for bejNull type
Signed-off-by: Kasun Athukorala <kasunath@google.com> Change-Id: I08d0c8f26e1ed64f67cfcf857fbdd8573dae75d4 |
061fbc6f | 01-Aug-2023 |
kasunath <kasunath@google.com> |
Get metadata for BEJ integer, string and bool
This change adds the support to derive bejInteger, bejString and bejBool node metadata.
Signed-off-by: Kasun Athukorala <kasunath@google.com> Change-Id
Get metadata for BEJ integer, string and bool
This change adds the support to derive bejInteger, bejString and bejBool node metadata.
Signed-off-by: Kasun Athukorala <kasunath@google.com> Change-Id: Ib6efcd29bf7cb2acc9913f95756e60ee65f16c6d
show more ...
|
f68be959 | 01-Aug-2023 |
kasunath <kasunath@google.com> |
Initialize a parent node metadata
This adds the support needed to initialize a parent node metadata properties.
Signed-off-by: Kasun Athukorala <kasunath@google.com> Change-Id: Ibb90665064904cc7fe1
Initialize a parent node metadata
This adds the support needed to initialize a parent node metadata properties.
Signed-off-by: Kasun Athukorala <kasunath@google.com> Change-Id: Ibb90665064904cc7fe1bde6dd5590545592f7d41
show more ...
|
99bd6c90 | 30-Jul-2023 |
kasunath <kasunath@google.com> |
Add the framework needed for BEJ encoding
This change adds the framework needed for BEJ encoding. Inorder to keep the patch smaller, I only added the basic framework needed to understand how the enc
Add the framework needed for BEJ encoding
This change adds the framework needed for BEJ encoding. Inorder to keep the patch smaller, I only added the basic framework needed to understand how the encoding is done. Rest of the functionality and testing will be added in the later patches.
Signed-off-by: Kasun Athukorala <kasunath@google.com> Change-Id: If2bd315fe5a3e6c7afff2af1750434042517790b
show more ...
|
dc3f214b | 31-Jan-2023 |
kasunath <kasunath@google.com> |
Add more support to bej_tree API
This change adds bejString, bejReal and bejBoolean node types, and also 2 new APIs, UpdateNodeFlags() and IsParentType().
Signed-off-by: Kasun Athukorala <kasunath@
Add more support to bej_tree API
This change adds bejString, bejReal and bejBoolean node types, and also 2 new APIs, UpdateNodeFlags() and IsParentType().
Signed-off-by: Kasun Athukorala <kasunath@google.com> Change-Id: I94d36a63dd95893acd3517d30790c8fe71917989
show more ...
|
2ebe82f5 | 31-Jan-2023 |
kasunath <kasunath@google.com> |
Add BEJ tree API.
This API allows us to represent a JSON object with a linked list representation.
Signed-off-by: Kasun Athukorala <kasunath@google.com> Change-Id: I7894e7c10e4db2ad02a79b01bb4d7a48
Add BEJ tree API.
This API allows us to represent a JSON object with a linked list representation.
Signed-off-by: Kasun Athukorala <kasunath@google.com> Change-Id: I7894e7c10e4db2ad02a79b01bb4d7a48d5a197cd
show more ...
|
435526a5 | 10-May-2023 |
Patrick Williams <patrick@stwcx.xyz> |
clang-format: copy latest and re-format
clang-format-16 has some backwards incompatible changes that require additional settings for best compatibility and re-running the formatter. Copy the latest
clang-format: copy latest and re-format
clang-format-16 has some backwards incompatible changes that require additional settings for best compatibility and re-running the formatter. Copy the latest .clang-format from the docs repository and reformat the repository.
Change-Id: I1ae768f5bd68d4eec70acab9964c43370423bf5e Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
show more ...
|
0aa36d82 | 23-Nov-2022 |
kasunath <kasunath@google.com> |
Rename rde_common to bej_common
bej_common.h is a more consistant name than rde_common.h.
Also this repo only contains code related to BEJ encoding and decoding. Therefore this change removes the r
Rename rde_common to bej_common
bej_common.h is a more consistant name than rde_common.h.
Also this repo only contains code related to BEJ encoding and decoding. Therefore this change removes the rde related structs defind in the bej_common.h. Those structs should be defined somewhere else (libpldm).
Signed-off-by: Kasun Athukorala <kasunath@google.com> Change-Id: Ic296ece11efc0967366e197a8609c3c88c325610
show more ...
|
80ad94fc | 31-Oct-2022 |
kasunath <kasunath@google.com> |
Move headers into libbej folder
This change moves the libbej headers into its own libbej folder (similar to libpldm) and install the headers under libbej directory.
Signed-off-by: Kasun Athukorala
Move headers into libbej folder
This change moves the libbej headers into its own libbej folder (similar to libpldm) and install the headers under libbej directory.
Signed-off-by: Kasun Athukorala <kasunath@google.com> Change-Id: I59ccb599bb042596a2d6bea620b83e3f8ce9f37d
show more ...
|
cc4098e1 | 23-Jun-2022 |
Willy Tu <wltu@google.com> |
libbej: Export the package for other repo to use
Make the library non-static so that other repo can be linked to it. Also install the headers for libbej.
Change-Id: I89dba36859b569283b61d3ac448f232
libbej: Export the package for other repo to use
Make the library non-static so that other repo can be linked to it. Also install the headers for libbej.
Change-Id: I89dba36859b569283b61d3ac448f23289c21944a Signed-off-by: Willy Tu <wltu@google.com>
show more ...
|
b81dcec4 | 23-May-2022 |
kasunath <kasunath@google.com> |
Add RDE BEJ to JSON decoder
Tested: Tested this locally with unit tests. I will submit unit tests for review in the next CL.
Signed-off-by: Kasun Athukorala <kasunath@google.com> Change-Id: I6f3a68
Add RDE BEJ to JSON decoder
Tested: Tested this locally with unit tests. I will submit unit tests for review in the next CL.
Signed-off-by: Kasun Athukorala <kasunath@google.com> Change-Id: I6f3a6882c2dc022938a22a200b213216c6b89c64
show more ...
|
34a096db | 17-May-2022 |
kasunath <kasunath@google.com> |
Add BejSet and BejInteger decoding
I will submit unit tests for review once all the necessary data type decoding changes are submitted.
Signed-off-by: Kasun Athukorala <kasunath@google.com> Change-
Add BejSet and BejInteger decoding
I will submit unit tests for review once all the necessary data type decoding changes are submitted.
Signed-off-by: Kasun Athukorala <kasunath@google.com> Change-Id: I44b1b4598d96441f507df86147f5c27046236edc
show more ...
|
64cb1973 | 13-May-2022 |
kasunath <kasunath@google.com> |
Add basic template code for BEJ decoder core
This describes the interfaces we are using for the BEJ decoding.
I did not include data type decoding code here to keep the code size smaller for this r
Add basic template code for BEJ decoder core
This describes the interfaces we are using for the BEJ decoding.
I did not include data type decoding code here to keep the code size smaller for this review. I will be adding different data type decoding in the comming CLs.
I will submit unit tests for review once all the necessary data type decoding changes are submitted.
Signed-off-by: Kasun Athukorala <kasunath@google.com> Change-Id: Icbc5c7780da21ba76ae0eaa56ad84dd10360cfc4
show more ...
|
d073aa1a | 12-May-2022 |
kasunath <kasunath@google.com> |
Add helper functions for BEJ dictionaries
Signed-off-by: Kasun Athukorala <kasunath@google.com> Change-Id: I50f2ccec155434639dfecd96193608cf6c5a1787 |
7ffd30aa | 10-May-2022 |
kasunath <kasunath@google.com> |
Add common data structures
This adds some common data structures and functions needed for RDE BEJ.
The decoder core is written in C so that we can use this with some other future platforms. clang-t
Add common data structures
This adds some common data structures and functions needed for RDE BEJ.
The decoder core is written in C so that we can use this with some other future platforms. clang-tidy is complaining about C style header. I tried adding a .clang-tidy-ignore file but it did not work. And since this is mainly a C library, I deleted the .clang-tidy.
Signed-off-by: Kasun Athukorala <kasunath@google.com> Change-Id: Ice07527b23cd00c65cd11ed114ea4faefcc085fb
show more ...
|