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 ...
|
42627cab | 31-Jan-2023 |
kasunath <kasunath@google.com> |
Fix formating issues
Signed-off-by: Kasun Athukorala <kasunath@google.com> Change-Id: I9d3bc1564435adce8947101ad3863a00db7ba9ba |
c14fab6e | 23-Nov-2022 |
kasunath <kasunath@google.com> |
Fix missing comma for empty arrays/sets
When an array or a set is empty, and if it's not the last property within an object, we need to add a comma after empty brackets/braces.
This change fix this
Fix missing comma for empty arrays/sets
When an array or a set is empty, and if it's not the last property within an object, we need to add a comma after empty brackets/braces.
This change fix this issue. Also updated a test case to capture this.
Signed-off-by: Kasun Athukorala <kasunath@google.com> Change-Id: Ia087f341d052660191f2614add2060c81be67f61
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 ...
|
ec85e113 | 28-Nov-2022 |
kasunath <kasunath@google.com> |
Update include directories
Needs to add the "include" directory to libbej includes to prevent a clang-tidy failure in bios-bmc-smm-error-logger.
Signed-off-by: Kasun Athukorala <kasunath@google.com
Update include directories
Needs to add the "include" directory to libbej includes to prevent a clang-tidy failure in bios-bmc-smm-error-logger.
Signed-off-by: Kasun Athukorala <kasunath@google.com> Change-Id: I5b0576f2956ccb2d16963ee2b26bf2e1586a9d09
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 ...
|
7daa5f8e | 09-Jun-2022 |
kasunath <kasunath@google.com> |
Explicitly cast the return value
When this library was used with bios-bmc-smm-error-logger, it was failing because of a clang-tidy warning(For some reason clang-tidy runs on subprojects/libbej as we
Explicitly cast the return value
When this library was used with bios-bmc-smm-error-logger, it was failing because of a clang-tidy warning(For some reason clang-tidy runs on subprojects/libbej as well.).
We need to explicitly cast to stop this warning.
Tested: Tested running CI locally for bios-bmc-smm-error-logger with this change and it passed.
Signed-off-by: Kasun Athukorala <kasunath@google.com> Change-Id: Ia8a33a08576cc0f2de50ecba77f3b57eab7fe48e
show more ...
|
5433c175 | 09-Jun-2022 |
Willy Tu <wltu@google.com> |
test: Disable test if it is used as subproject
This prevent other projects that depends on this to run its tests. These tests are not guarantee to work as subproject.
Change-Id: I0743266211427e1ce2
test: Disable test if it is used as subproject
This prevent other projects that depends on this to run its tests. These tests are not guarantee to work as subproject.
Change-Id: I0743266211427e1ce20f3f8ae4ec241fd284eb7c Signed-off-by: Willy Tu <wltu@google.com>
show more ...
|
e8946af6 | 23-May-2022 |
kasunath <kasunath@google.com> |
Add tests for the JSON decoder.
These tests will test the bej_decoder_core.c as well.
Signed-off-by: Kasun Athukorala <kasunath@google.com> Change-Id: Ibf1c9a381a630beac09ed504dd57563160579fb0 |
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 ...
|
b8ca265a | 17-May-2022 |
kasunath <kasunath@google.com> |
Add decoding for dbejEnum, bejReal and Annotations
Tested: Tested this locally with unit tests. I will submit unit tests for review once all the necessary data type decoding changes are submitted.
Add decoding for dbejEnum, bejReal and Annotations
Tested: Tested this locally with unit tests. 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: Ifb75e16fa537c108201098170ce04a4ac4fa9ade
show more ...
|
e2260cd6 | 17-May-2022 |
kasunath <kasunath@google.com> |
Add decoding for bejArray, bejNull, bejString and bejBoolean
Tested: Tested this locally with unit tests. I will submit unit tests for review once all the necessary data type decoding changes are su
Add decoding for bejArray, bejNull, bejString and bejBoolean
Tested: Tested this locally with unit tests. 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: Id764bdc4728c4ab2a250f3327e2414c31506bf3d
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 ...
|
8bc8ba8e | 10-May-2022 |
kasunath <kasunath@google.com> |
Add initial set of files
Includes LICENSE, OWNERS, MAINTAINERS, .gitignore, .clang-tidy, .clang-format and a basic README.md.
Signed-off-by: Kasun Athukorala <kasunath@google.com> Change-Id: Ifbb15
Add initial set of files
Includes LICENSE, OWNERS, MAINTAINERS, .gitignore, .clang-tidy, .clang-format and a basic README.md.
Signed-off-by: Kasun Athukorala <kasunath@google.com> Change-Id: Ifbb157804914845bee287e98381107dd292baa09
show more ...
|
d2992902 | 09-May-2022 |
Brad Bishop <bradleyb@fuzziesquirrel.com> |
Initial empty repository
|