~ubuntu-branches/debian/wheezy/netatalk/wheezy

« back to all changes in this revision

Viewing changes to etc/afpd/afp_avahi.h

  • Committer: Bazaar Package Importer
  • Author(s): Jonas Smedegaard
  • Date: 2011-06-05 21:04:21 UTC
  • mfrom: (1.1.10 upstream)
  • Revision ID: james.westby@ubuntu.com-20110605210421-19gag2srevj0ocxh
Tags: 2.2~beta4-1
* New upstream release.
  + Fixes "Internal Error" after ad_open on sparc.
    Closes: bug#606005. Thanks to Alfredo Sola.
* Adjust references to unofficial packages in README.Debian.
* Use dversionmangle (not uversionmangle) in watch file. Fix add
  leading dash (-) to upstream version in mangling.
* Update patches:
  + Drop patches 107 and 294 (Zeroconf support): Implemented
    (differently) upstream now.
  + Drop patches 109 and 112 (avoid broken XFS linkage) obsolete.
  + Drop patch 200 (hostname resolving): adopted upstream.
  + Refresh patch 205.
* Rewrite copyright file using draft 174 of DEP-5 format.
* Build-depend on and recommend unversioned (i.e. default) BerkeleyDB
  packages.
  Closes: bug#621413. Thanks to Ondřej Surý.
  Simplify suggestions on older versioned BerkeleyDB packages.
* Stop installing some documentation dropped upstream, and let CDBS
  automagically handle some of the remains.
* Update control file:
  + Bump policy compliance to standards-version 3.9.2.
  + Shorten Vcs-* URLs.
* Add patches 115 and (for automade file) 214 to avoid installing
  unneeded /default dir.
  Closes: bug#628119. Thanks to Russell Muetzelfeldt and Luk Claes.
* Don't ship .la files. Closes: bug#621849. Thanks to Andreas Metzler
  and Luk Claes.
* Stop renaming afile and achfile, dropped upstream.
* Explicitly enable DDP (AppleTalk), now disabled by default.
* Enable Zeroconf, should be stable now.
* Simplify package relations:
  + Drop (build-)dependency fallback unneeded even for oldstable.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* -*- Mode: C; tab-width: 2; indent-tabs-mode: t; c-basic-offset: 2 -*- */
 
2
/*
 
3
 * Author:  Daniel S. Haischt <me@daniel.stefan.haischt.name>
 
4
 * Purpose: Avahi based Zeroconf support
 
5
 * Docs:    http://avahi.org/download/doxygen/
 
6
 *
 
7
 */
 
8
 
 
9
#ifndef AFPD_AVAHI_H
 
10
#define AFPD_AVAHI_H
 
11
 
 
12
#include <stdlib.h>
 
13
#include <assert.h>
 
14
#include <string.h>
 
15
 
 
16
#include <avahi-client/client.h>
 
17
#include <avahi-client/publish.h>
 
18
#include <avahi-common/alternative.h>
 
19
#include <avahi-common/thread-watch.h>
 
20
#include <avahi-common/malloc.h>
 
21
#include <avahi-common/error.h>
 
22
 
 
23
#include <atalk/logger.h>
 
24
 
 
25
#include "afp_config.h"
 
26
 
 
27
#define AFP_DNS_SERVICE_TYPE "_afpovertcp._tcp"
 
28
#define ADISK_SERVICE_TYPE "_adisk._tcp"
 
29
 
 
30
#define MAXINSTANCENAMELEN 63
 
31
 
 
32
struct context {
 
33
        /* Avahi stuff */
 
34
  int               thread_running;
 
35
  AvahiThreadedPoll *threaded_poll;
 
36
  AvahiClient       *client;
 
37
  AvahiEntryGroup   *group;
 
38
        /* Netatalk stuff */
 
39
        const AFPConfig   *configs;
 
40
};
 
41
 
 
42
/* prototype definitions */
 
43
void av_zeroconf_setup(const AFPConfig *configs);
 
44
int av_zeroconf_run(void);
 
45
int av_zeroconf_unregister(void);
 
46
void av_zeroconf_shutdown(void);
 
47
 
 
48
#endif   /* AFPD_AVAHI_H */