Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions examples/htool_key_rotation.c
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@ static const char *get_validation_method_string(uint32_t validation_method) {
}
}

int htool_key_rotation_get_status(void) {
int htool_key_rotation_get_status(const struct htool_invocation* inv) {
(void)inv;
struct libhoth_device *dev = htool_libhoth_device();
if (!dev) {
return -1;
Expand All @@ -65,7 +66,8 @@ int htool_key_rotation_get_status(void) {
return 0;
}

int htool_key_rotation_get_version(void) {
int htool_key_rotation_get_version(const struct htool_invocation* inv) {
(void)inv;
struct libhoth_device *dev = htool_libhoth_device();
if (!dev) {
return -1;
Expand Down Expand Up @@ -161,7 +163,8 @@ int htool_key_rotation_update(const struct htool_invocation *inv) {
return result;
}

int htool_key_rotation_payload_status() {
int htool_key_rotation_payload_status(const struct htool_invocation* inv) {
(void)inv;
struct libhoth_device *dev = htool_libhoth_device();
if (!dev) {
return -1;
Expand Down
6 changes: 3 additions & 3 deletions examples/htool_key_rotation.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ extern "C" {
#endif

struct htool_invocation;
int htool_key_rotation_get_status();
int htool_key_rotation_get_version();
int htool_key_rotation_payload_status();
int htool_key_rotation_get_status(const struct htool_invocation* inv);
int htool_key_rotation_get_version(const struct htool_invocation* inv);
int htool_key_rotation_payload_status(const struct htool_invocation* inv);
int htool_key_rotation_read(const struct htool_invocation* inv);
int htool_key_rotation_read_chunk_type(const struct htool_invocation* inv);
int htool_key_rotation_update(const struct htool_invocation* inv);
Expand Down
3 changes: 2 additions & 1 deletion examples/htool_payload.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@
#include "protocol/payload_info.h"
#include "protocol/payload_status.h"

int htool_payload_status() {
int htool_payload_status(const struct htool_invocation* inv) {
(void)inv;
struct libhoth_device* dev = htool_libhoth_device();
if (!dev) {
return -1;
Expand Down
2 changes: 1 addition & 1 deletion examples/htool_payload.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
extern "C" {
#endif

int htool_payload_status();
int htool_payload_status(const struct htool_invocation* inv);
int htool_payload_info(const struct htool_invocation* inv);

#ifdef __cplusplus
Expand Down
3 changes: 2 additions & 1 deletion examples/htool_payload_update.c
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,8 @@ const char* payload_update_getstatus_half_string(uint8_t h) {
}
}

int htool_payload_update_getstatus() {
int htool_payload_update_getstatus(const struct htool_invocation* inv) {
(void)inv;
struct libhoth_device* dev = htool_libhoth_device();
if (!dev) {
return -1;
Expand Down
2 changes: 1 addition & 1 deletion examples/htool_payload_update.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ extern "C" {
struct htool_invocation;
int htool_payload_update(const struct htool_invocation* inv);
int htool_payload_read(const struct htool_invocation* inv);
int htool_payload_update_getstatus();
int htool_payload_update_getstatus(const struct htool_invocation* inv);

#ifdef __cplusplus
}
Expand Down
3 changes: 2 additions & 1 deletion examples/htool_statistics.c
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,8 @@ const char* PayloadUpdateErrorToString(uint16_t reason) {
}
}

int htool_statistics() {
int htool_statistics(const struct htool_invocation* inv) {
(void)inv;
struct libhoth_device* dev = htool_libhoth_device();
if (!dev) {
return -1;
Expand Down
3 changes: 2 additions & 1 deletion examples/htool_statistics.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@
extern "C" {
#endif

int htool_statistics();
struct htool_invocation;
int htool_statistics(const struct htool_invocation* inv);

#ifdef __cplusplus
}
Expand Down
Loading