owntone-server/src/config-driver.c

24 lines
363 B
C
Raw Normal View History

2006-02-04 19:22:46 -05:00
/*
* $Id$
*/
#include <stdio.h>
2006-02-08 18:02:43 -05:00
#include "conf.h"
#include "err.h"
2006-02-04 19:22:46 -05:00
int main(int argc, char *argv[]) {
2006-02-08 18:02:43 -05:00
int err;
err_debuglevel = 9;
printf("Reading %s\n",argv[1]);
if((err=config_read(argv[1])) != CONF_E_SUCCESS) {
printf("Error reading config: %d\n",err);
2006-02-04 19:22:46 -05:00
} else {
2006-02-08 18:02:43 -05:00
printf("Read config!\n");
2006-02-04 19:22:46 -05:00
}
config_close();
}