**/Makefile.in
stamp-h1
-# tags
-tags
-
# build objects
*.o
*.log
src/bencode/encode.c \
src/block.c \
src/default.c \
- src/feed/entries.c \
- src/feed/feeds.c \
- src/feed/gen.c \
- src/feed/info.c \
- src/feed/path.c \
src/file.c \
src/fs/concat.c \
src/fs/dir.c \
src/net/wait.c \
src/opt/config.c \
src/opt/env.c \
- src/opt/feed.c \
src/opt/filter.c \
src/opt/loglevel.c \
src/opt/out.c \
src/peer/request.c \
src/piece.c \
src/pqueue.c \
- src/rss/entry.c \
- src/rss/footer.c \
- src/rss/free.c \
- src/rss/header.c \
- src/rss/info.c \
- src/rss/init.c \
src/session.c \
src/sighandler.c \
src/torrent/add.c \
inc/bencode.h \
inc/block.h \
inc/default.h \
- inc/feed.h \
inc/file.h \
inc/fs.h \
inc/hash.h \
inc/opt.h \
inc/piece.h \
inc/pqueue.h \
- inc/rss.h \
inc/session.h \
inc/sighandler.h \
inc/torrent.h \
// suppress output temporarily
opt_set_log_level(LOG_LEVEL_SILENT);
- if(opt_set_feed_url("")<0) { return -1; }
if(opt_set_file_filter("default")<0) { return -1; }
if(opt_set_piece_length("16384")<0) { return -1; }
if(opt_set_port("5150")<0) { return -1; }
struct option long_options[] = {
{"config-file", required_argument, 0, 'c'},
{"daemon", no_argument, 0, 'd'},
- {"feed-url", required_argument, 0, 'u'},
{"file-filter", required_argument, 0, 'f'},
{"help", no_argument, 0, 'h'},
{"log-file", required_argument, 0, 'l'},
case 'q':
opt_set_log_level(LOG_LEVEL_SILENT);
break;
- case 'u':
- if(opt_set_feed_url(optarg)<0) { return -1; }
- break;
case 'v':
opt_set_log_level(LOG_LEVEL_VERBOSE);
break;
if(init(argc,argv)<0) { return EXIT_FAILURE; }
if(add()<0) { return EXIT_FAILURE; }
- if(feeds()<0) { return EXIT_FAILURE; }
if(watch()<0) { return EXIT_FAILURE; }
if(net_start()<0) { return EXIT_FAILURE; }
log_info(OPT_MESSAGE_ENV_LOADING);
CHECK_ENV("CONFIG",opt_load_config_file);
- CHECK_ENV("FEED_URL",opt_set_feed_url);
CHECK_ENV("FILE_FILTER",opt_set_file_filter);
CHECK_ENV("LOG_FILE",opt_set_out_stream);
CHECK_ENV("PIECE_LENGTH",opt_set_piece_length);
// see src/opt/env.c for environmental variables
struct option_lookup_table_entry option_lookup_table[] = {
- {"feed_url",&opt_set_feed_url},
{"file_filter",&opt_set_file_filter},
{"piece_length",&opt_set_piece_length},
{"port",&opt_set_port},