]> git.meshlink.io Git - catta/blobdiff - src/announce.h
rename everything avahi to catta
[catta] / src / announce.h
index 19014fbccf7c9b5fa90f757a7a616f9379b21621..e8e62dc87f0b6a2eabf50b2e3913eaf058c0e2ae 100644 (file)
@@ -2,68 +2,68 @@
 #define fooannouncehfoo
 
 /***
-  This file is part of avahi.
+  This file is part of catta.
 
-  avahi is free software; you can redistribute it and/or modify it
+  catta is free software; you can redistribute it and/or modify it
   under the terms of the GNU Lesser General Public License as
   published by the Free Software Foundation; either version 2.1 of the
   License, or (at your option) any later version.
 
-  avahi is distributed in the hope that it will be useful, but WITHOUT
+  catta is distributed in the hope that it will be useful, but WITHOUT
   ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
   or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General
   Public License for more details.
 
   You should have received a copy of the GNU Lesser General Public
-  License along with avahi; if not, write to the Free Software
+  License along with catta; if not, write to the Free Software
   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
   USA.
 ***/
 
-typedef struct AvahiAnnouncer AvahiAnnouncer;
+typedef struct CattaAnnouncer CattaAnnouncer;
 
-#include <avahi/llist.h>
-#include <avahi/publish.h>
+#include <catta/llist.h>
+#include <catta/publish.h>
 #include "iface.h"
 #include "internal.h"
 #include "timeeventq.h"
 
 typedef enum {
-    AVAHI_PROBING,         /* probing phase */
-    AVAHI_WAITING,         /* wait for other records in group */
-    AVAHI_ANNOUNCING,      /* announcing phase */
-    AVAHI_ESTABLISHED      /* we'e established */
-} AvahiAnnouncerState;
+    CATTA_PROBING,         /* probing phase */
+    CATTA_WAITING,         /* wait for other records in group */
+    CATTA_ANNOUNCING,      /* announcing phase */
+    CATTA_ESTABLISHED      /* we'e established */
+} CattaAnnouncerState;
 
-struct AvahiAnnouncer {
-    AvahiServer *server;
-    AvahiInterface *interface;
-    AvahiEntry *entry;
+struct CattaAnnouncer {
+    CattaServer *server;
+    CattaInterface *interface;
+    CattaEntry *entry;
 
-    AvahiTimeEvent *time_event;
+    CattaTimeEvent *time_event;
 
-    AvahiAnnouncerState state;
+    CattaAnnouncerState state;
     unsigned n_iteration;
     unsigned sec_delay;
 
-    AVAHI_LLIST_FIELDS(AvahiAnnouncer, by_interface);
-    AVAHI_LLIST_FIELDS(AvahiAnnouncer, by_entry);
+    CATTA_LLIST_FIELDS(CattaAnnouncer, by_interface);
+    CATTA_LLIST_FIELDS(CattaAnnouncer, by_entry);
 };
 
-void avahi_announce_interface(AvahiServer *s, AvahiInterface *i);
-void avahi_announce_entry(AvahiServer *s, AvahiEntry *e);
-void avahi_announce_group(AvahiServer *s, AvahiSEntryGroup *g);
+void catta_announce_interface(CattaServer *s, CattaInterface *i);
+void catta_announce_entry(CattaServer *s, CattaEntry *e);
+void catta_announce_group(CattaServer *s, CattaSEntryGroup *g);
 
-void avahi_entry_return_to_initial_state(AvahiServer *s, AvahiEntry *e, AvahiInterface *i);
+void catta_entry_return_to_initial_state(CattaServer *s, CattaEntry *e, CattaInterface *i);
 
-void avahi_s_entry_group_check_probed(AvahiSEntryGroup *g, int immediately);
+void catta_s_entry_group_check_probed(CattaSEntryGroup *g, int immediately);
 
-int avahi_entry_is_registered(AvahiServer *s, AvahiEntry *e, AvahiInterface *i);
-int avahi_entry_is_probing(AvahiServer *s, AvahiEntry *e, AvahiInterface *i);
+int catta_entry_is_registered(CattaServer *s, CattaEntry *e, CattaInterface *i);
+int catta_entry_is_probing(CattaServer *s, CattaEntry *e, CattaInterface *i);
 
-void avahi_goodbye_interface(AvahiServer *s, AvahiInterface *i, int send_goodbye, int rem);
-void avahi_goodbye_entry(AvahiServer *s, AvahiEntry *e, int send_goodbye, int rem);
+void catta_goodbye_interface(CattaServer *s, CattaInterface *i, int send_goodbye, int rem);
+void catta_goodbye_entry(CattaServer *s, CattaEntry *e, int send_goodbye, int rem);
 
-void avahi_reannounce_entry(AvahiServer *s, AvahiEntry *e);
+void catta_reannounce_entry(CattaServer *s, CattaEntry *e);
 
 #endif