~andreserl/ubuntu/lucid/bind9/bind9-apport-533601

« back to all changes in this revision

Viewing changes to lib/dns/include/dns/xfrin.h

  • Committer: Bazaar Package Importer
  • Author(s): LaMont Jones, LaMont Jones, Internet Software Consortium, Inc, localization folks
  • Date: 2008-08-02 14:20:20 UTC
  • mfrom: (1.2.1 upstream) (6.1.24 intrepid)
  • Revision ID: james.westby@ubuntu.com-20080802142020-l1hon9jy8lbbjxmg
[LaMont Jones]

* default to using resolvconf if it is installed
* fix sonames and dependencies.  Closes: #149259, #492418
* Do not build-depend libcap2-dev on non-linux.  Closes: #493392
* drop unused query-loc manpage.  Closes: #492564
* lwresd: Deliver /etc/bind directory.  Closes: #490027
* fix query-source comment in default install

[Internet Software Consortium, Inc]

* 9.5.0-P2.  Closes: #492949

[localization folks]

* l10n: Spanish debconf translation.  Closes: #492425 (Ignacio Mondino)
* l10n: Swedish debconf templates.  Closes: #491369 (Martin Ågren)
* l10n: Japanese debconf translations.  Closes: #492048 (Hideki Yamane
  (Debian-JP))
* l10n: Finnish translation.  Closes: #490630 (Esko Arajärvi)
* l10n: Italian debconf translations.  Closes: #492587 (Alessandro Vietta)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
 
 * Copyright (C) 2004  Internet Systems Consortium, Inc. ("ISC")
 
2
 * Copyright (C) 2004-2007  Internet Systems Consortium, Inc. ("ISC")
3
3
 * Copyright (C) 1999-2001, 2003  Internet Software Consortium.
4
4
 *
5
 
 * Permission to use, copy, modify, and distribute this software for any
 
5
 * Permission to use, copy, modify, and/or distribute this software for any
6
6
 * purpose with or without fee is hereby granted, provided that the above
7
7
 * copyright notice and this permission notice appear in all copies.
8
8
 *
15
15
 * PERFORMANCE OF THIS SOFTWARE.
16
16
 */
17
17
 
18
 
/* $Id: xfrin.h,v 1.18.136.2 2004/03/06 08:14:01 marka Exp $ */
 
18
/* $Id: xfrin.h,v 1.28 2007/06/19 23:47:17 tbox Exp $ */
19
19
 
20
20
#ifndef DNS_XFRIN_H
21
21
#define DNS_XFRIN_H 1
24
24
 ***** Module Info
25
25
 *****/
26
26
 
27
 
/*
 
27
/*! \file dns/xfrin.h
 
28
 * \brief
28
29
 * Incoming zone transfers (AXFR + IXFR).
29
30
 */
30
31
 
40
41
 *** Types
41
42
 ***/
42
43
 
43
 
/*
 
44
/*%
44
45
 * A transfer in progress.  This is an opaque type.
45
46
 */
46
47
typedef struct dns_xfrin_ctx dns_xfrin_ctx_t;
51
52
 
52
53
ISC_LANG_BEGINDECLS
53
54
 
 
55
/*% see dns_xfrin_create2() */
54
56
isc_result_t
55
57
dns_xfrin_create(dns_zone_t *zone, dns_rdatatype_t xfrtype,
56
58
                 isc_sockaddr_t *masteraddr, dns_tsigkey_t *tsigkey,
65
67
                  isc_timermgr_t *timermgr, isc_socketmgr_t *socketmgr,
66
68
                  isc_task_t *task, dns_xfrindone_t done,
67
69
                  dns_xfrin_ctx_t **xfrp);
68
 
/*
 
70
/*%<
69
71
 * Attempt to start an incoming zone transfer of 'zone'
70
72
 * from 'masteraddr', creating a dns_xfrin_ctx_t object to
71
73
 * manage it.  Attach '*xfrp' to the newly created object.
75
77
 * code as arguments when the transfer finishes.
76
78
 *
77
79
 * Requires:
78
 
 *      'xfrtype' is dns_rdatatype_axfr or dns_rdatatype_ixfr.
 
80
 *\li   'xfrtype' is dns_rdatatype_axfr, dns_rdatatype_ixfr
 
81
 *      or dns_rdatatype_soa (soa query followed by axfr if
 
82
 *      serial is greater than current serial).
79
83
 *
80
 
 *      If 'xfrtype' is dns_rdatatype_ixfr, the zone has a
81
 
 *      database.
 
84
 *\li   If 'xfrtype' is dns_rdatatype_ixfr or dns_rdatatype_soa,
 
85
 *      the zone has a database.
82
86
 */
83
87
 
84
88
void
85
89
dns_xfrin_shutdown(dns_xfrin_ctx_t *xfr);
86
 
/*
 
90
/*%<
87
91
 * If the zone transfer 'xfr' has already finished,
88
92
 * do nothing.  Otherwise, abort it and cause it to call
89
93
 * its done callback with a status of ISC_R_CANCELLED.
91
95
 
92
96
void
93
97
dns_xfrin_detach(dns_xfrin_ctx_t **xfrp);
94
 
/*
 
98
/*%<
95
99
 * Detach a reference to a zone transfer object.
96
100
 * Caller to maintain external locking if required.
97
101
 */
98
102
 
99
103
void
100
104
dns_xfrin_attach(dns_xfrin_ctx_t *source, dns_xfrin_ctx_t **target);
101
 
/*
 
105
/*%<
102
106
 * Caller to maintain external locking if required.
103
107
 */
104
108