1 2 3 4 5 6 7 8 9 10 11
#include <avahi-client/client.h> int main (int argc, char *argv[]) { AvahiClient *avahi; avahi = avahi_client_new (); g_message ("Got server ID %d", avahi->serverid); }