Add clang-tidy target and fix problems
This commit is contained in:
		
							parent
							
								
									fca35ade9e
								
							
						
					
					
						commit
						f97b149376
					
				
					 25 changed files with 199 additions and 115 deletions
				
			
		| 
						 | 
				
			
			@ -2,6 +2,7 @@
 | 
			
		|||
#define CORE_CONTANTS_H
 | 
			
		||||
 | 
			
		||||
#define SECONDS_PER_DAY 86400 // 60 * 60 * 24
 | 
			
		||||
#define DAYS_PER_WEEK 7
 | 
			
		||||
 | 
			
		||||
#define SECONDS_PER_MINUTE 60
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -22,5 +23,8 @@
 | 
			
		|||
#define PIFACE_GPIO_BASE 200
 | 
			
		||||
 | 
			
		||||
#define DEFAULT_CONFIG_PATH "emgauwa-core.ini"
 | 
			
		||||
#define DEFAULT_DISCOVERY_PORT 4421
 | 
			
		||||
#define DEFAULT_MQTT_PORT 1885
 | 
			
		||||
#define DEFAULT_SERVER_PORT 5000
 | 
			
		||||
 | 
			
		||||
#endif /* CORE_CONTANTS_H */
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -10,6 +10,10 @@
 | 
			
		|||
 | 
			
		||||
#define LOG_NONE INT_MAX
 | 
			
		||||
 | 
			
		||||
#ifndef __FILENAME__
 | 
			
		||||
    #define __FILENAME__ __FILE__
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
void
 | 
			
		||||
logger_log(int level, const char *filename, int line, const char *func, const char *msg, ...);
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -65,4 +65,10 @@ schedule_uid_parse(const char *uid_str, uuid_t result);
 | 
			
		|||
void
 | 
			
		||||
schedule_uid_unparse(const uuid_t uid, char *result);
 | 
			
		||||
 | 
			
		||||
void
 | 
			
		||||
schedule_get_uid_off(uuid_t target);
 | 
			
		||||
 | 
			
		||||
void
 | 
			
		||||
schedule_get_uid_on(uuid_t target);
 | 
			
		||||
 | 
			
		||||
#endif /* CORE_SCHEDULE_H */
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue