19 lines
434 B
C
19 lines
434 B
C
#ifndef _MAIN_H_
|
|
#define _MAIN_H_
|
|
|
|
#define VERSION "1.0.0"
|
|
|
|
typedef long double price_t;
|
|
typedef long double wattage_t;
|
|
typedef unsigned long interval_t;
|
|
|
|
int parse_arguments(int argc, char **argv, price_t *price, wattage_t *wattage, interval_t *interval);
|
|
|
|
inline interval_t interval_to_seconds(char *interval);
|
|
inline price_t to_wattspersecond(price_t price);
|
|
|
|
inline void print_version();
|
|
inline void print_usage();
|
|
|
|
#endif
|