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.
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.
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
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
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
USA.
***/
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
USA.
***/
- AVAHI_CACHE_VALID,
- AVAHI_CACHE_EXPIRY1,
- AVAHI_CACHE_EXPIRY2,
- AVAHI_CACHE_EXPIRY3,
- AVAHI_CACHE_EXPIRY_FINAL,
- AVAHI_CACHE_POOF, /* Passive observation of failure */
- AVAHI_CACHE_POOF_FINAL,
- AVAHI_CACHE_GOODBYE_FINAL,
- AVAHI_CACHE_REPLACE_FINAL
-} AvahiCacheEntryState;
-
-typedef struct AvahiCacheEntry AvahiCacheEntry;
-
-struct AvahiCacheEntry {
- AvahiCache *cache;
- AvahiRecord *record;
+ CATTA_CACHE_VALID,
+ CATTA_CACHE_EXPIRY1,
+ CATTA_CACHE_EXPIRY2,
+ CATTA_CACHE_EXPIRY3,
+ CATTA_CACHE_EXPIRY_FINAL,
+ CATTA_CACHE_POOF, /* Passive observation of failure */
+ CATTA_CACHE_POOF_FINAL,
+ CATTA_CACHE_GOODBYE_FINAL,
+ CATTA_CACHE_REPLACE_FINAL
+} CattaCacheEntryState;
+
+typedef struct CattaCacheEntry CattaCacheEntry;
+
+struct CattaCacheEntry {
+ CattaCache *cache;
+ CattaRecord *record;
- AVAHI_LLIST_FIELDS(AvahiCacheEntry, by_key);
- AVAHI_LLIST_FIELDS(AvahiCacheEntry, entry);
+ CATTA_LLIST_FIELDS(CattaCacheEntry, by_key);
+ CATTA_LLIST_FIELDS(CattaCacheEntry, entry);
-AvahiCache *avahi_cache_new(AvahiServer *server, AvahiInterface *interface);
-void avahi_cache_free(AvahiCache *c);
+CattaCache *catta_cache_new(CattaServer *server, CattaInterface *iface);
+void catta_cache_free(CattaCache *c);
-void avahi_cache_update(AvahiCache *c, AvahiRecord *r, int cache_flush, const AvahiAddress *a);
+void catta_cache_update(CattaCache *c, CattaRecord *r, int cache_flush, const CattaAddress *a);
-typedef void* AvahiCacheWalkCallback(AvahiCache *c, AvahiKey *pattern, AvahiCacheEntry *e, void* userdata);
-void* avahi_cache_walk(AvahiCache *c, AvahiKey *pattern, AvahiCacheWalkCallback cb, void* userdata);
+typedef void* CattaCacheWalkCallback(CattaCache *c, CattaKey *pattern, CattaCacheEntry *e, void* userdata);
+void* catta_cache_walk(CattaCache *c, CattaKey *pattern, CattaCacheWalkCallback cb, void* userdata);
/** Start the "Passive observation of Failure" algorithm for all
* records of the specified key. The specified address is */
/** Start the "Passive observation of Failure" algorithm for all
* records of the specified key. The specified address is */