Skip to content

Commit

Permalink
Fix nasa#140, Move function prototypes to header file
Browse files Browse the repository at this point in the history
  • Loading branch information
thnkslprpt committed Nov 1, 2023
1 parent 2930b94 commit 7d29e25
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 3 deletions.
1 change: 0 additions & 1 deletion config/default_ci_lab_msgdefs.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ typedef struct
uint32 IngestPackets;
uint32 IngestErrors;
uint32 Spare2;

} CI_LAB_HkTlm_Payload_t;

#endif
2 changes: 1 addition & 1 deletion fsw/src/ci_lab_app.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
#include "ci_lab_version.h"

/*
** CI global data...
** CI Global Data
*/
CI_LAB_GlobalData_t CI_LAB_Global;

Expand Down
19 changes: 18 additions & 1 deletion fsw/src/ci_lab_app.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,15 @@
#include "ci_lab_dispatch.h"
#include "ci_lab_cmds.h"

#include "ci_lab_msg.h"

#include <string.h>
#include <errno.h>
#include <unistd.h>

/****************************************************************************/
/************************************************************************
* Macro Definitions
************************************************************************/

/************************************************************************
** Type Definitions
Expand Down Expand Up @@ -74,4 +78,17 @@ void CI_LAB_ReadUpLink(void);
/* Global State Object */
extern CI_LAB_GlobalData_t CI_LAB_Global;

/*
* Individual message handler function prototypes
*
* Per the recommended code pattern, these should accept a const pointer
* to a structure type which matches the message, and return an int32
* where CFE_SUCCESS (0) indicates successful handling of the message.
*/
int32 CI_LAB_Noop(const CI_LAB_NoopCmd_t *data);
int32 CI_LAB_ResetCounters(const CI_LAB_ResetCountersCmd_t *data);

/* Housekeeping message handler */
int32 CI_LAB_ReportHousekeeping(const CFE_MSG_CommandHeader_t *data);

#endif

0 comments on commit 7d29e25

Please sign in to comment.