<service>
<type>_telnet._tcp</type>
<domain-name>local</domain-name>
- <host-name>ecstasy.local</host-name>
+ <host-name>fuck.local</host-name>
<port>23</port>
<txt-record>foo=bar</txt-record>
<txt-record>waldo=buzz</txt-record>
}
}
+static void help(FILE *f, const gchar *argv0) {
+ fprintf(f,
+ "%s [options]\n"
+ " -h --help Show this help\n"
+ " -D --daemon Daemonize after startup\n"
+ " -k --kill Kill a running daemon\n"
+ " -v --version Show version\n",
+ argv0);
+}
+
+static gint parse_command_line(AvahiServerConfig *config, int argc, char *argv[]) {
+
+ return 0;
+}
+
+static gint load_config_file(AvahiServerConfig *config) {
+
+ return 0;
+}
+
int main(int argc, char *argv[]) {
GMainLoop *loop = NULL;
gint r = 255;
avahi_server_config_init(&config);
+ if (load_config_file(&config) < 0)
+ goto finish;
+
+ if (parse_command_line(&config, argc, argv) < 0)
+ goto finish;
+
loop = g_main_loop_new(NULL, FALSE);
if (simple_protocol_setup(NULL) < 0)
AM_CONDITIONAL(ENABLE_DBUS, test "x$ENABLE_DBUS" = "xyes")
+AC_CHECK_LIB(expat, XML_ParserCreate, [ AC_CHECK_HEADERS(expat.h, have_expat=true, have_expat=false) ], have_expat=false)
+
+if ! $have_expat ; then
+ AC_MSG_ERROR([*** libexpat not found ***])
+fi
+
+PKG_CHECK_MODULES(LIBDAEMON, [ libdaemon >= 0.5 ])
+AC_SUBST(LIBDAEMON_CFLAGS)
+AC_SUBST(LIBDAEMON_LIBS)
# If using GCC specify some additional parameters
if test "x$GCC" = "xyes" ; then