Implement src/daemon.c to provide a high level method to instantiate a patty server Changes: * Refactor src/server.c, src/route.c, src/if.c methods which accept callsign arguments to use a patty_ax25_addr pointer instead; this has significantly reduced the number of redundant calls to patty_ax25_pton() * Decouple patty_ax25_addr from patty_ax25_if_info types when creating new interfaces with patty_ax25_if_new(); instead, take a separate patty_ax25_addr argument * Split patty_ax25_server_run() into the following methods: - patty_ax25_server_start() - patty_ax25_server_stop() - patty_ax25_server_event_handle() This is intended to allow possible integration into other event loops. * Implement src/daemon.c to allow quick instantiation of a server, interfaces, and routes, and to encapsulate the setting of configuration variables; callsigns and interface names are handled as character strings * Rename examples/server.c to examples/daemon.c; reimplement in terms of the patty_daemon code * |
||
---|---|---|
.. | ||
ax25config.txt | ||
ax25dump.c | ||
connect.c | ||
daemon.c | ||
decode.c | ||
listen.c | ||
Makefile | ||
patty.conf |