]> git.meshlink.io Git - catta/blobdiff - avahi-core/iface.h
update todo
[catta] / avahi-core / iface.h
index 74136aa45e3c9968285ac729d8c1b6d70d9e7ff5..00aea9aa9f4906342106432bd4130e4d0d45d76f 100644 (file)
 
 #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"
@@ -38,7 +38,7 @@ typedef struct _AvahiHwInterface AvahiHwInterface;
 #include "dns.h"
 #include "announce.h"
 
-struct _AvahiInterfaceMonitor {
+struct AvahiInterfaceMonitor {
     AvahiServer *server;
     AvahiNetlink *netlink;
     GHashTable *hash_table;
@@ -55,7 +55,7 @@ struct _AvahiInterfaceMonitor {
     } list;
 };
 
-struct _AvahiHwInterface {
+struct AvahiHwInterface {
     AVAHI_LLIST_FIELDS(AvahiHwInterface, hardware);
     AvahiInterfaceMonitor *monitor;
 
@@ -67,7 +67,7 @@ struct _AvahiHwInterface {
     AVAHI_LLIST_HEAD(AvahiInterface, interfaces);
 };
 
-struct _AvahiInterface {
+struct AvahiInterface {
     AVAHI_LLIST_FIELDS(AvahiInterface, interface);
     AVAHI_LLIST_FIELDS(AvahiInterface, by_hardware);
     AvahiInterfaceMonitor *monitor;
@@ -83,7 +83,7 @@ struct _AvahiInterface {
     AVAHI_LLIST_HEAD(AvahiAnnouncement, announcements);
 };
 
-struct _AvahiInterfaceAddress {
+struct AvahiInterfaceAddress {
     AVAHI_LLIST_FIELDS(AvahiInterfaceAddress, address);
     AvahiInterfaceMonitor *monitor;
     
@@ -104,10 +104,11 @@ AvahiInterface* avahi_interface_monitor_get_interface(AvahiInterfaceMonitor *m,
 AvahiHwInterface* avahi_interface_monitor_get_hw_interface(AvahiInterfaceMonitor *m, gint index);
 
 void avahi_interface_send_packet(AvahiInterface *i, AvahiDnsPacket *p);
+void avahi_interface_send_packet_unicast(AvahiInterface *i, AvahiDnsPacket *p, const AvahiAddress *a, guint16 port);
 
-void avahi_interface_post_query(AvahiInterface *i, AvahiKey *k, gboolean immediately);
-void avahi_interface_post_probe(AvahiInterface *i, AvahiRecord *p, gboolean immediately);
-void avahi_interface_post_response(AvahiInterface *i, const AvahiAddress *a, AvahiRecord *record, gboolean flush_cache, gboolean immediately);
+gboolean avahi_interface_post_query(AvahiInterface *i, AvahiKey *k, gboolean immediately);
+gboolean avahi_interface_post_probe(AvahiInterface *i, AvahiRecord *p, gboolean immediately);
+gboolean avahi_interface_post_response(AvahiInterface *i, AvahiRecord *record, gboolean flush_cache, gboolean immediately);
 
 void avahi_dump_caches(AvahiInterfaceMonitor *m, FILE *f);