Definition at line 75 of file test_urltrans.c.
References cfg, cfg_create(), cfg_destroy(), cfg_read(), error(), getopt(), gwlib_init(), gwlib_shutdown(), help(), info(), msg, msg_create, msg_destroy(), name, octstr_create, octstr_destroy(), optarg, optind, panic, urltrans_add_cfg(), urltrans_create(), urltrans_destroy(), urltrans_find(), and urltrans_type().
87 while ((opt =
getopt(argc, argv,
"hr:")) != EOF) {
99 error(0,
"Invalid option %c", opt);
101 panic(0,
"Stopping.");
106 error(0,
"Missing arguments.");
108 panic(0,
"Stopping.");
114 panic(0,
"Couldn't read configuration file.");
118 panic(0,
"Error parsing configuration.");
120 while (repeats-- > 0) {
121 for (i =
optind + 1; i < argc; ++i) {
int urltrans_add_cfg(URLTranslationList *trans, Cfg *cfg)
void error(int err, const char *fmt,...)
void info(int err, const char *fmt,...)
URLTranslation * urltrans_find(URLTranslationList *trans, Msg *msg)
Cfg * cfg_create(Octstr *filename)
int getopt(int argc, char **argv, char *opts)
void cfg_destroy(Cfg *cfg)
void msg_destroy(Msg *msg)
void octstr_destroy(Octstr *ostr)
#define octstr_create(cstr)
int urltrans_type(URLTranslation *t)
URLTranslationList * urltrans_create(void)
void gwlib_shutdown(void)
void urltrans_destroy(URLTranslationList *trans)
static XMLRPCDocument * msg