12345678910111213141516171819 |
- #ifndef _COMMON_H_
- #define _COMMON_H_
- //------------------------------------------------------------------------------
- #include <stdint.h>
- //------------------------------------------------------------------------------
- void trim(char *s);
- int mystrcmp(char *p1, char *p2);
- void substr(char *dest, const char *src, uint32_t start, uint32_t cnt);
- void split(char **arr, char *str, const char *del);
- uint8_t CheckDispenserGeneration();
- uint8_t CheckCustomer();
- void GetClockTime(struct timespec *_now_time);
- unsigned long GetClockTimeoutValue(struct timespec _start_time);
- bool IntoChargeProcess(int status);
- bool IntoOperateProcess(int status);
- char* GetStatusName(int status);
- #endif /* _COMMON_H_ */
|