#include <glib.h>
-typedef struct _AvahiAnnouncement AvahiAnnouncement;
+typedef struct AvahiAnnouncement AvahiAnnouncement;
#include "llist.h"
#include "iface.h"
AVAHI_ESTABLISHED
} AvahiAnnouncementState;
-struct _AvahiAnnouncement {
+struct AvahiAnnouncement {
AvahiServer *server;
AvahiInterface *interface;
AvahiEntry *entry;
#include <glib.h>
-struct _AvahiCache;
-typedef struct _AvahiCache AvahiCache;
+typedef struct AvahiCache AvahiCache;
#include "prioq.h"
#include "server.h"
AVAHI_LLIST_FIELDS(AvahiCacheEntry, entry);
};
-struct _AvahiCache {
+struct AvahiCache {
AvahiServer *server;
AvahiInterface *interface;
#include <stdio.h>
#include <glib.h>
-typedef struct _AvahiServer AvahiServer;
-typedef struct _AvahiEntry AvahiEntry;
-typedef struct _AvahiEntryGroup AvahiEntryGroup;
+typedef struct AvahiServer AvahiServer;
+typedef struct AvahiEntry AvahiEntry;
+typedef struct AvahiEntryGroup AvahiEntryGroup;
#include <avahi-core/address.h>
#include <avahi-core/rr.h>
AVAHI_SUBSCRIPTION_CHANGE
} AvahiSubscriptionEvent;
-typedef struct _AvahiSubscription AvahiSubscription;
+typedef struct AvahiSubscription AvahiSubscription;
typedef void (*AvahiSubscriptionCallback)(AvahiSubscription *s, AvahiRecord *record, gint interface, guchar protocol, AvahiSubscriptionEvent event, gpointer userdata);
#define AVAHI_DNS_PACKET_MAX_SIZE 9000
#define AVAHI_DNS_PACKET_HEADER_SIZE 12
-typedef struct _AvahiDnsPacket {
+typedef struct AvahiDnsPacket {
guint size, rindex, max_size;
GHashTable *name_table; /* for name compression */
} AvahiDnsPacket;
#include <glib.h>
-typedef struct _AvahiInterfaceMonitor AvahiInterfaceMonitor;
-typedef struct _AvahiInterfaceAddress AvahiInterfaceAddress;
-typedef struct _AvahiInterface AvahiInterface;
-typedef struct _AvahiHwInterface AvahiHwInterface;
+typedef struct AvahiInterfaceMonitor AvahiInterfaceMonitor;
+typedef struct AvahiInterfaceAddress AvahiInterfaceAddress;
+typedef struct AvahiInterface AvahiInterface;
+typedef struct AvahiHwInterface AvahiHwInterface;
#include "address.h"
#include "server.h"
#include "dns.h"
#include "announce.h"
-struct _AvahiInterfaceMonitor {
+struct AvahiInterfaceMonitor {
AvahiServer *server;
AvahiNetlink *netlink;
GHashTable *hash_table;
} list;
};
-struct _AvahiHwInterface {
+struct AvahiHwInterface {
AVAHI_LLIST_FIELDS(AvahiHwInterface, hardware);
AvahiInterfaceMonitor *monitor;
AVAHI_LLIST_HEAD(AvahiInterface, interfaces);
};
-struct _AvahiInterface {
+struct AvahiInterface {
AVAHI_LLIST_FIELDS(AvahiInterface, interface);
AVAHI_LLIST_FIELDS(AvahiInterface, by_hardware);
AvahiInterfaceMonitor *monitor;
AVAHI_LLIST_HEAD(AvahiAnnouncement, announcements);
};
-struct _AvahiInterfaceAddress {
+struct AvahiInterfaceAddress {
AVAHI_LLIST_FIELDS(AvahiInterfaceAddress, address);
AvahiInterfaceMonitor *monitor;
#include "netlink.h"
-struct _AvahiNetlink {
+struct AvahiNetlink {
GMainContext *context;
gint fd;
guint seq;
#include <glib.h>
-struct _AvahiNetlink;
-typedef struct _AvahiNetlink AvahiNetlink;
+typedef struct AvahiNetlink AvahiNetlink;
AvahiNetlink *avahi_netlink_new(GMainContext *c, gint priority, guint32 groups, void (*cb) (AvahiNetlink *n, struct nlmsghdr *m, gpointer userdata), gpointer userdata);
void avahi_netlink_free(AvahiNetlink *n);
#include <glib.h>
-struct _AvahiPrioQueue;
-typedef struct _AvahiPrioQueue AvahiPrioQueue;
+typedef struct AvahiPrioQueue AvahiPrioQueue;
-struct _AvahiPrioQueueNode;
-typedef struct _AvahiPrioQueueNode AvahiPrioQueueNode;
+typedef struct AvahiPrioQueueNode AvahiPrioQueueNode;
-struct _AvahiPrioQueue {
+struct AvahiPrioQueue {
AvahiPrioQueueNode *root, *last;
guint n_nodes;
gint (*compare) (gconstpointer a, gconstpointer b);
};
-struct _AvahiPrioQueueNode {
+struct AvahiPrioQueueNode {
AvahiPrioQueue *queue;
gpointer data;
guint x, y;
USA.
***/
-typedef struct _AvahiQueryJob AvahiQueryJob;
-typedef struct _AvahiResponseJob AvahiResponseJob;
-typedef struct _AvahiPacketScheduler AvahiPacketScheduler;
-typedef struct _AvahiKnownAnswer AvahiKnownAnswer;
-typedef struct _AvahiProbeJob AvahiProbeJob;
+typedef struct AvahiQueryJob AvahiQueryJob;
+typedef struct AvahiResponseJob AvahiResponseJob;
+typedef struct AvahiPacketScheduler AvahiPacketScheduler;
+typedef struct AvahiKnownAnswer AvahiKnownAnswer;
+typedef struct AvahiProbeJob AvahiProbeJob;
#include "timeeventq.h"
#include "rr.h"
#include "llist.h"
#include "iface.h"
-struct _AvahiQueryJob {
+struct AvahiQueryJob {
AvahiPacketScheduler *scheduler;
AvahiTimeEvent *time_event;
AvahiKey *key;
AVAHI_LLIST_FIELDS(AvahiQueryJob, jobs);
};
-struct _AvahiResponseJob {
+struct AvahiResponseJob {
AvahiPacketScheduler *scheduler;
AvahiTimeEvent *time_event;
AvahiRecord *record;
AVAHI_LLIST_FIELDS(AvahiResponseJob, jobs);
};
-struct _AvahiKnownAnswer {
+struct AvahiKnownAnswer {
AvahiPacketScheduler *scheduler;
AvahiRecord *record;
AVAHI_LLIST_FIELDS(AvahiKnownAnswer, known_answer);
};
-struct _AvahiProbeJob {
+struct AvahiProbeJob {
AvahiPacketScheduler *scheduler;
AvahiTimeEvent *time_event;
AvahiRecord *record;
AVAHI_LLIST_FIELDS(AvahiProbeJob, jobs);
};
-struct _AvahiPacketScheduler {
+struct AvahiPacketScheduler {
AvahiServer *server;
AvahiInterface *interface;
#include "announce.h"
#include "subscribe.h"
-struct _AvahiEntry {
+struct AvahiEntry {
AvahiServer *server;
AvahiEntryGroup *group;
AVAHI_LLIST_HEAD(AvahiAnnouncement, announcements);
};
-struct _AvahiEntryGroup {
+struct AvahiEntryGroup {
AvahiServer *server;
gboolean dead;
AVAHI_LLIST_HEAD(AvahiEntry, entries);
};
-struct _AvahiServer {
+struct AvahiServer {
GMainContext *context;
AvahiInterfaceMonitor *monitor;
#include <glib.h>
-typedef struct _AvahiStringList AvahiStringList;
-
-struct _AvahiStringList {
- AvahiStringList *next;
+typedef struct AvahiStringList {
+ struct AvahiStringList *next;
guint size;
guint8 text[1];
-};
+} AvahiStringList;
AvahiStringList *avahi_string_list_new(const gchar *txt, ...);
AvahiStringList *avahi_string_list_new_va(va_list va);
#include "timeeventq.h"
#include "server.h"
-struct _AvahiSubscription {
+struct AvahiSubscription {
AvahiServer *server;
AvahiKey *key;
gint interface;
USA.
***/
-typedef struct _AvahiTimeEventQueue AvahiTimeEventQueue;
-typedef struct _AvahiTimeEvent AvahiTimeEvent;
+typedef struct AvahiTimeEventQueue AvahiTimeEventQueue;
+typedef struct AvahiTimeEvent AvahiTimeEvent;
#include "prioq.h"
-struct _AvahiTimeEvent {
+struct AvahiTimeEvent {
AvahiTimeEventQueue *queue;
AvahiPrioQueueNode *node;
GTimeVal expiry;
void *userdata;
};
-struct _AvahiTimeEventQueue {
+struct AvahiTimeEventQueue {
GSource source;
AvahiPrioQueue *prioq;
};