#include <stdlib.h>
#include <string.h>
-#include "options.h"
+#include "config.h"
#include "trace.h"
void print_help_and_die(const char *exec_name)
exit(0);
}
-static void set_default_options(struct plotter_options *opts)
+static void set_default_options(struct plotter_config *opts)
{
bzero(opts, sizeof(*opts));
- opts->baud_rate = 128000;
+ opts->baudrate = 128000;
opts->device_path = "/dev/ttyUSB0";
}
-int read_args(int argc, char *argv[], struct plotter_options *opts)
+int read_args(int argc, char *argv[], struct plotter_config *opts)
{
int option_index = 0, c;
static struct option long_options[] = {
opts->device_path = optarg;
break;
case 'o':
- opts->output_path = optarg;
+ opts->log_path = optarg;
break;
case 'b':
- opts->baud_rate = atoi(optarg);
+ opts->baudrate = atoi(optarg);
break;
case 'v':
trace_level++;