Files

96 lines
1.4 KiB
C
Raw Permalink Normal View History

2016-02-22 16:49:43 -08:00
#include <stdlib.h>
2016-02-16 03:42:41 +00:00
#include "beast.h"
2016-02-28 15:53:55 -08:00
#include "exec.h"
2016-03-02 18:49:25 -08:00
#include "file.h"
2016-02-22 16:36:27 -08:00
#include "hex.h"
2016-02-22 16:49:43 -08:00
#include "incoming.h"
#include "json.h"
2016-03-05 22:54:26 -08:00
#include "log.h"
2016-02-22 16:36:27 -08:00
#include "opts.h"
2016-02-22 16:49:43 -08:00
#include "outgoing.h"
#include "peer.h"
2016-02-23 19:46:42 -08:00
#include "proto.h"
2016-02-22 16:36:27 -08:00
#include "rand.h"
2016-02-22 16:49:43 -08:00
#include "receive.h"
#include "resolve.h"
2016-02-22 16:49:43 -08:00
#include "send.h"
2016-03-03 18:28:34 -08:00
#include "send_receive.h"
2016-02-22 21:53:25 -08:00
#include "server.h"
2016-02-22 16:49:43 -08:00
#include "stats.h"
#include "stdinout.h"
2016-02-22 14:45:18 -08:00
#include "wakeup.h"
static void adsbus_opts_add() {
// This order controls the order in --help, but nothing else.
server_opts_add();
log_opts_add();
outgoing_opts_add();
incoming_opts_add();
exec_opts_add();
file_opts_add();
stdinout_opts_add();
}
int main(int argc, char *argv[]) {
stdinout_preinit();
adsbus_opts_add();
opts_init(argc, argv);
2016-02-14 22:26:34 +00:00
hex_init();
2016-02-21 15:56:07 -08:00
rand_init();
2016-03-07 11:26:25 -08:00
log_init();
server_init();
2016-03-07 11:26:25 -08:00
resolve_init();
2016-02-18 09:33:32 -08:00
wakeup_init();
peer_init();
2016-02-18 09:33:32 -08:00
2016-03-08 23:04:20 -08:00
log_init_peer();
2016-03-07 16:14:35 -08:00
receive_init();
send_init();
2016-02-18 09:33:32 -08:00
2016-02-16 03:42:41 +00:00
beast_init();
json_init();
2016-02-27 16:23:26 -08:00
proto_init();
2016-02-17 08:30:32 +00:00
stats_init();
outgoing_init();
incoming_init();
exec_init();
file_init();
stdinout_init();
peer_loop();
2016-02-25 11:57:23 -08:00
resolve_cleanup();
2016-02-23 12:08:53 -08:00
receive_cleanup();
send_cleanup();
2016-03-03 18:28:34 -08:00
send_receive_cleanup();
incoming_cleanup();
outgoing_cleanup();
2016-02-28 15:53:55 -08:00
exec_cleanup();
2016-03-02 18:49:25 -08:00
file_cleanup();
2016-02-25 16:48:51 -08:00
json_cleanup();
proto_cleanup();
2016-02-23 12:08:53 -08:00
rand_cleanup();
wakeup_cleanup();
2016-03-08 23:04:20 -08:00
log_cleanup_peer();
peer_cleanup();
2016-03-05 22:54:26 -08:00
log_cleanup();
stdinout_cleanup();
return EXIT_SUCCESS;
}