| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
| |
ClangTidy was not happy with redundant returns for void functions.
Signed-off-by: Brandon Kim <brandonkim@google.com>
Change-Id: I72f1773ea041f890ca0dd2c6c3ab8fbb279390c9
|
|
|
|
|
|
|
|
| |
Implement the deleteBlob command for the blob handler. Adding a unit
test to go along with it.
Change-Id: I2bbc93a6e78d5311bd2033d6a8b179374777f794
Signed-off-by: Brandon Kim <brandonkim@google.com>
|
|
|
|
|
|
|
| |
nit warning found while running unit test
Change-Id: I7bdcb9fac4da4e5efae7eaf6262764cb00101e86
Signed-off-by: Brandon Kim <brandonkim@google.com>
|
|
|
|
|
|
|
|
|
| |
Pull the netfn and cmd into parameters instead of hard-coding them for
blob commands.
Tested: Only ran unit-tests.
Change-Id: I1a73de32e14cc78ece94a26f6c447824af88c984
Signed-off-by: Patrick Venture <venture@google.com>
|
|
|
|
|
|
|
|
| |
Move the blob command enum to the blob_interface header that can be
safely included by other code.
Change-Id: If7c613cac9bdd460fc9a6cb3b59e4fc0dd3a861d
Signed-off-by: Patrick Venture <venture@google.com>
|
|
|
|
|
|
|
|
| |
Add missing limits header. Built fine without it with gcc8, etc, but
not necessarily in other environments.
Change-Id: Ib31693f04d77ad7518cfb41cc224f42d33b0ca2b
Signed-off-by: Patrick Venture <venture@google.com>
|
|
|
|
|
|
|
| |
Implement the commit command for the blob handler.
Change-Id: Ia3be86083991cbdf7fe85c15986f4e1cb60971f5
Signed-off-by: Patrick Venture <venture@google.com>
|
|
|
|
|
|
|
|
| |
Provide a static factory for convenience to get a unique_ptr to the base
object.
Change-Id: I058e7a28a6bc30182ed9ada5ea479a317d071893
Signed-off-by: Patrick Venture <venture@google.com>
|
|
|
|
|
|
|
|
| |
Delete extra debug printing now that the code is verified as functioning
as it should for a sufficient variety of commands.
Change-Id: I885640c7c8cc049532b0dd42d587995c69a0d673
Signed-off-by: Patrick Venture <venture@google.com>
|
|
|
|
|
|
|
|
|
| |
The stat handler for metadata wasn't copying the bytes properly.
Tested: Verified it no longer excepts during real-use and returns the
correct contents.
Change-Id: I93a67d7668fde2342e861027dbb0b8e11ae4cb96
Signed-off-by: Patrick Venture <venture@google.com>
|
|
|
|
|
|
|
|
| |
Squash the getStat(name) and getStat(session) into one underlying
method.
Change-Id: I6c00b9f4128a64e3d1a918c8a9d1eaf252de32bc
Signed-off-by: Patrick Venture <venture@google.com>
|
|
|
|
|
|
|
| |
Implement the session stat command.
Change-Id: I1ff715dd32d963722182db84b475bc9adbfcc7ea
Signed-off-by: Patrick Venture <venture@google.com>
|
|
|
|
|
|
|
|
| |
[src/ipmiblob/blob_handler.cpp:141]: (warning) %d in format string
(no. 1) requires 'int' but the argument type is 'unsigned int'.
Change-Id: I8e695a4656d47abe80396e1929b62b86421e761d
Signed-off-by: Patrick Venture <venture@google.com>
|
|
|
|
|
|
|
| |
Renamed the namespace to encapsulate the library.
Change-Id: I3deb82df5cf6916c505b57864e22a412542c9b6c
Signed-off-by: Patrick Venture <venture@google.com>
|
|
Add initial code from phosphor-ipmi-flash/tools that was not specific to
firmware update over ipmi-blobs.
Change-Id: I360537a7392347fe989397a699f6a712bc36e62c
Signed-off-by: Patrick Venture <venture@google.com>
|