commit | a0954f48c88ef3bedd5581dd00aec1e98ea91c38 | [log] [tgz] |
---|---|---|
author | Tom Joseph <tomjoseph@in.ibm.com> | Thu Feb 07 16:13:14 2019 +0530 |
committer | Deepak Kodihalli <dkodihal@in.ibm.com> | Tue Feb 19 08:20:10 2019 -0600 |
tree | 3999037b2e095349077fd2263e2177a914b2688b | |
parent | cf0c6423d30a51a59299d45582334eb6a4d3bd18 [diff] |
Add .gitignore Change-Id: I7cea674ea9de77d6f00c16ae86139cf4f4a562f7 Signed-off-by: Tom Joseph <tomjoseph@in.ibm.com>
At a high-level, code in this repository belongs to one of the following three components.
This is a library which deals with the encoding and decoding of PLDM messages. It should be possible to use this library by projects other than OpenBMC, and hence certain constraints apply to it:
Source files are named according to the PLDM Type, for eg base.[h/c], fru.[h/c], etc.
Given a PLDM command "foo", the library will provide the following API: For the Requester function:
encode_foo_req() - encode a foo request decode_foo_resp() - decode a response to foo
For the Responder function:
decode_foo_req() - decode a foo request encode_foo_resp() - encode a response to foo
The library also provides API to pack and unpack PLDM headers.
This library provides handlers for incoming PLDM request messages. It provides for a registration as well as a plug-in mechanism. The library is implemented in modern C++, and handles OpenBMC's platform specifics.
The handlers are of the form
Response handler(Request payload, size_t payloadLen)
Source files are named according to the PLDM Type, for eg base.[hpp/cpp], fru.[hpp/cpp], etc.
This is the PLDM daemon application that deals with various aspects of the requester and responder functions, as explained at https://github.com/openbmc/docs/blob/master/designs/pldm-stack.md.
Consider hosting libpldm above in a repo of its own, probably even outside the OpenBMC project? A separate repo would enable something like git submodule.