mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2025-11-02 19:38:08 +00:00
Adding extern in prototypes
This commit is contained in:
@@ -15,8 +15,11 @@ default:
|
||||
@mkdir -p $(output_dir)
|
||||
make all
|
||||
|
||||
all: ocmw_uart ocmw_usb ocmw_eth occli ocmw_eth_stub ocware_stub
|
||||
|
||||
all: ocmw_uart ocmw_usb ocmw_eth occli ocmw_eth_stub ocware_stub hash
|
||||
|
||||
hash:
|
||||
cd ../utilities/checksums; ./hosthash.sh $(shell pwd)/$(output_dir)
|
||||
|
||||
.PHONY: occli
|
||||
|
||||
ocmw_uart: $(OBJECTS)
|
||||
@@ -41,4 +44,4 @@ occli: $(OBJECTS)
|
||||
|
||||
# --- remove binary and executable files
|
||||
clean:
|
||||
rm -fr $(output_dir)/ocmw_eth_stub $(output_dir)/ocmw_eth $(output_dir)/ocmw_usb $(output_dir)/ocmw_uart $(output_dir)/occli $(output_dir)/ocware_stub
|
||||
rm -fr $(output_dir)/*
|
||||
|
||||
@@ -49,11 +49,11 @@
|
||||
* @param ident an input value (by pointer)
|
||||
*
|
||||
*/
|
||||
void initlog(const char* ident);
|
||||
extern void initlog(const char* ident);
|
||||
/*
|
||||
* deinitialize the logging routine
|
||||
*
|
||||
*/
|
||||
void deinitlog(void);
|
||||
extern void deinitlog(void);
|
||||
|
||||
#endif /* __LOGGER_H__ */
|
||||
|
||||
@@ -22,7 +22,7 @@ sem_t semCommandPost;
|
||||
#define OCMW_TIMED_WAIT_INDEX 1
|
||||
#define PARAM_STR_MAX_BUFF_SIZE 100
|
||||
|
||||
int32_t ocmw_init();
|
||||
extern int32_t ocmw_init();
|
||||
/*
|
||||
* @param actionType an input enum value (by value)
|
||||
* @param msgType an input enum value (by value)
|
||||
@@ -32,37 +32,37 @@ int32_t ocmw_init();
|
||||
*
|
||||
* @return true if function succeeds, false otherwise
|
||||
*/
|
||||
int32_t ocmw_msg_packetize_and_send(char * argv[], uint8_t actionType,
|
||||
extern int32_t ocmw_msg_packetize_and_send(char * argv[], uint8_t actionType,
|
||||
uint8_t msgType, const int8_t * paramStr, uint8_t interface,
|
||||
void* paramVal);
|
||||
/*
|
||||
* Message parser module
|
||||
*
|
||||
*/
|
||||
void ocmw_ec_msgparser(void);
|
||||
extern void ocmw_ec_msgparser(void);
|
||||
/*
|
||||
* Thread to parse the data coming from EC to AP through uart
|
||||
* @param pthreadData an input value (by pointer)
|
||||
*/
|
||||
void * ocmw_thread_uartmsgparser(void *pthreadData);
|
||||
extern void * ocmw_thread_uartmsgparser(void *pthreadData);
|
||||
|
||||
/*
|
||||
* Thread to parse the data coming from EC to AP through ethernet
|
||||
* @param pthreadData an input value (by pointer)
|
||||
*/
|
||||
void * ocmw_thread_ethmsgparser(void *pthreadData);
|
||||
extern void * ocmw_thread_ethmsgparser(void *pthreadData);
|
||||
/*
|
||||
* @param ecMsgFrame an input structure (by value)
|
||||
* @param interface an input enum value (by value)
|
||||
*
|
||||
* @return true if function succeeds, false otherwise
|
||||
*/
|
||||
int32_t ocmw_send_msg(OCMPMessageFrame ecMsgFrame, uint8_t interface);
|
||||
extern int32_t ocmw_send_msg(OCMPMessageFrame ecMsgFrame, uint8_t interface);
|
||||
/*
|
||||
* @param semId an input value (by pointer)
|
||||
* @param semWaitType an input value (by value)
|
||||
*
|
||||
* @return true if function succeeds, false otherwise
|
||||
*/
|
||||
int32_t ocmw_sem_wait(sem_t *semId, int32_t semWaitType);
|
||||
extern int32_t ocmw_sem_wait(sem_t *semId, int32_t semWaitType);
|
||||
#endif /* _OCMW_CORE_H_ */
|
||||
|
||||
@@ -30,26 +30,25 @@
|
||||
*
|
||||
* @return true if function succeeds, false otherwise
|
||||
*/
|
||||
int32_t ocmw_init_eth_comm(int32_t sentDev);
|
||||
extern int32_t ocmw_init_eth_comm(int32_t sentDev);
|
||||
/*
|
||||
* Deinitialize the ocmw ethernet communication
|
||||
*
|
||||
* @return true if function succeeds, false otherwise
|
||||
*/
|
||||
int32_t ocmw_deinit_eth_comm(int32_t sentDev);
|
||||
extern int32_t ocmw_deinit_eth_comm(int32_t sentDev);
|
||||
/*
|
||||
* @param cmd an input string (by pointer)
|
||||
* @param cmdlen an input value (by value)
|
||||
*
|
||||
* @return true if function succeeds, false otherwise
|
||||
*/
|
||||
int32_t ocmw_send_eth_msgto_ec(const int8_t *cmd, int32_t cmdlen,int32_t sentDev);
|
||||
extern int32_t ocmw_send_eth_msgto_ec(const int8_t *cmd, int32_t cmdlen,int32_t sentDev);
|
||||
/*
|
||||
* @param resp an input value (by pointer)
|
||||
* @param resplen an input value (by value)
|
||||
*
|
||||
* @return true if function succeeds, false otherwise
|
||||
*/
|
||||
int32_t ocmw_recv_eth_msgfrom_ec(int8_t *resp, int32_t resplen, int32_t sentDev);
|
||||
|
||||
extern int32_t ocmw_recv_eth_msgfrom_ec(int8_t *resp, int32_t resplen, int32_t sentDev);
|
||||
#endif /* _OCCLI_IPC_COMM_H_ */
|
||||
|
||||
@@ -104,7 +104,7 @@ typedef struct __attribute__((packed, aligned(1))){
|
||||
char subsysName[OCMW_MAX_SUBSYSTEM_SIZE]; /* Subsystem Name */
|
||||
char deviceName[OCMW_POST_DEVICE_SIZE]; /* Device Name */
|
||||
uint8_t status; /* device status */
|
||||
}ocwarePostResultData;
|
||||
} ocwarePostResultData;
|
||||
|
||||
typedef struct {
|
||||
unsigned int count; /* Device Status count */
|
||||
@@ -122,14 +122,14 @@ typedef struct {
|
||||
*
|
||||
* @return true if function succeeds, false otherwise
|
||||
*/
|
||||
int32_t ocmw_sem_wait_nointr(sem_t *sem);
|
||||
extern int32_t ocmw_sem_wait_nointr(sem_t *sem);
|
||||
/*
|
||||
* @param sem an input value (by pointer)
|
||||
* @param timeout an input value (by pointer)
|
||||
*
|
||||
* @return true if function succeeds, false otherwise
|
||||
*/
|
||||
int32_t ocmw_sem_timedwait_nointr(sem_t *sem, const struct timespec *timeout);
|
||||
extern int32_t ocmw_sem_timedwait_nointr(sem_t *sem, const struct timespec *timeout);
|
||||
/*
|
||||
* @param paramindex an input value (by value)
|
||||
* @param paramSizebuf an input value (by pointer)
|
||||
@@ -137,47 +137,37 @@ int32_t ocmw_sem_timedwait_nointr(sem_t *sem, const struct timespec *timeout);
|
||||
* @param pos an output value (by pointer)
|
||||
*
|
||||
*/
|
||||
void ocmw_dataparsing_from_db(int32_t paramIndex, int32_t *paramSizebuf,
|
||||
extern void ocmw_dataparsing_from_db(int32_t paramIndex, int32_t *paramSizebuf,
|
||||
int32_t *dataSize, int32_t *pos);
|
||||
/*
|
||||
* @param input an input buffer (by pointer)
|
||||
* @param bufParamStruct an output buffer (by pointer)
|
||||
*
|
||||
*/
|
||||
void ocmw_dataparsing_from_ec(ocmwSendRecvBuf *input,
|
||||
extern void ocmw_dataparsing_from_ec(ocmwSendRecvBuf *input,
|
||||
bufParam * bufParamStruct);
|
||||
/*
|
||||
* @param uartInputBuf an input buffer (by pointer)
|
||||
*
|
||||
* @return true if function succeeds, false otherwise
|
||||
*/
|
||||
int32_t ocmw_fill_inputstruct(ocmwSendRecvBuf *uartInputBuf);
|
||||
extern int32_t ocmw_fill_inputstruct(ocmwSendRecvBuf *uartInputBuf);
|
||||
/*
|
||||
* @param ecInputData an input data (by value)
|
||||
*
|
||||
* @return true if function succeeds, false otherwise
|
||||
*/
|
||||
int8_t ocmw_parse_eepromdata_from_ec (ocmwSendRecvBuf ecInputData);
|
||||
extern int8_t ocmw_parse_eepromdata_from_ec (ocmwSendRecvBuf ecInputData);
|
||||
/*
|
||||
* @param ecInputData an input data (by value)
|
||||
*
|
||||
* @return true if function succeeds, false otherwise
|
||||
*/
|
||||
int32_t ocmw_parse_obc_from_ec(ocmwSendRecvBuf ecInputData);
|
||||
extern int32_t ocmw_parse_obc_from_ec(ocmwSendRecvBuf ecInputData);
|
||||
/*
|
||||
* @param ecInputData an input data (by value)
|
||||
*
|
||||
* @return true if function succeeds, false otherwise
|
||||
*/
|
||||
int32_t ocmw_parse_testingmodule_from_ec(ocmwSendRecvBuf ecInputData);
|
||||
/*
|
||||
* @param msgaction an input value (by value)
|
||||
* @param msgtype an input value (by value)
|
||||
* @param paramstr an input string (by pointer)
|
||||
* @param paramvalue an input value (by pointer)
|
||||
*
|
||||
*/
|
||||
//int ocmw_msgproc_send_msg(int8_t msgaction, int8_t msgtype,
|
||||
// const int8_t* paramstr, void* paramvalue);
|
||||
|
||||
extern int32_t ocmw_parse_testingmodule_from_ec(ocmwSendRecvBuf ecInputData);
|
||||
#endif /* _OCMW_HELPER_H_ */
|
||||
|
||||
8
firmware/utilities/checksums/hosthash.sh
Executable file
8
firmware/utilities/checksums/hosthash.sh
Executable file
@@ -0,0 +1,8 @@
|
||||
#!/bin/sh -e
|
||||
#
|
||||
# Description
|
||||
# This script records the md5 hashes of host build objects
|
||||
#
|
||||
BIN_FILES=$(find $1 -executable -type f)
|
||||
HOST_MD5_FILE="hmd5sums.txt"
|
||||
md5sum $BIN_FILES > $HOST_MD5_FILE
|
||||
Reference in New Issue
Block a user