73     info(0, 
"Usage test_ota [options] ota_source");
    74     info(0, 
"where options are");
    75     info(0, 
"-h - print this text");
    76     info(0, 
"-f <file> - output binary to file");
    77     info(0, 
"-c <charset> - charset given by http");
    78     info(0, 
"-v <level> - set log level for stderr logging");
    81 int main(
int argc, 
char **argv)
    83     int opt, 
file, have_charset, ret;
    85     Octstr *ota_doc, *ota_binary;
    93     while ((opt = 
getopt(argc, argv, 
"hf:c:v:")) != EOF) {
   105                     panic(0, 
"Cannot open output file");
   119                 error(0, 
"Invalid option %c", opt);
   121                 panic(0, 
"Stopping");
   127         error(0, 
"Missing arguments");
   129         panic(0, 
"Stopping");
   134         panic(0, 
"Cannot read the ota document");
   141     debug(
"test.ota", 0, 
"ota compiler returned %d", ret);
   150             debug(
"test.ota", 0, 
"ota binary was");
 void error(int err, const char *fmt,...)
 
void info(int err, const char *fmt,...)
 
int ota_compile(Octstr *ota_doc, Octstr *charset, Octstr **ota_binary)
 
int main(int argc, char **argv)
 
int octstr_print(FILE *f, Octstr *ostr)
 
int getopt(int argc, char **argv, char *opts)
 
void log_set_output_level(enum output_level level)
 
#define octstr_dump(ostr, level,...)
 
void octstr_destroy(Octstr *ostr)
 
#define octstr_create(cstr)
 
Octstr * octstr_read_file(const char *filename)
 
void debug(const char *place, int err, const char *fmt,...)
 
void gwlib_shutdown(void)