~ubuntu-branches/ubuntu/oneiric/jabberd2/oneiric-security

« back to all changes in this revision

Viewing changes to resolver/dns.h

  • Committer: Bazaar Package Importer
  • Author(s): Nicolai Spohrer
  • Date: 2008-08-12 16:13:43 UTC
  • mfrom: (1.1.3 upstream) (0.1.2 sid)
  • Revision ID: james.westby@ubuntu.com-20080812161343-6trz3r97dtevxd17
Tags: 2.2.1-1ubuntu1
* Merge with Debian unstable (LP: #257130), remaining changes:
  - debian/control:
    + Modify Maintainer field as per spec
    + Depend on libdb4.6-dev instead of libdb4.4-dev
    + Added Conflicts and Replaces: ..., jabber for jabberd2
  - debian/rules: Added libtoolize call (jabberd2 ships with
     an older ltmain.sh version that conflicts with the
     current libtool version)
  - debian/init: create /var/run/jabber directory with correct
     permissions
* Dropped changes:
  - Debian already depends on libpq-dev

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*
2
 
 * jabberd - Jabber Open Source Server
3
 
 * Copyright (c) 2002 Jeremie Miller, Thomas Muldowney,
4
 
 *                    Ryan Eatmon, Robert Norris
5
 
 *
6
 
 * This program is free software; you can redistribute it and/or modify
7
 
 * it under the terms of the GNU General Public License as published by
8
 
 * the Free Software Foundation; either version 2 of the License, or
9
 
 * (at your option) any later version.
10
 
 *
11
 
 * This program is distributed in the hope that it will be useful,
12
 
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
 
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.See the
14
 
 * GNU General Public License for more details.
15
 
 *
16
 
 * You should have received a copy of the GNU General Public License
17
 
 * along with this program; if not, write to the Free Software
18
 
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA02111-1307USA
19
 
 */
20
 
 
21
 
#ifndef DNS_H
22
 
#define DNS_H
23
 
 
24
 
#ifdef HAVE_CONFIG_H
25
 
# include "config.h"
26
 
#endif
27
 
 
28
 
#define DNS_QUERY_TYPE_A    (1)
29
 
#define DNS_QUERY_TYPE_AAAA (2)
30
 
#define DNS_QUERY_TYPE_SRV  (3)
31
 
 
32
 
typedef struct dns_host_st {
33
 
    struct dns_host_st  *next;
34
 
 
35
 
    unsigned int        type;
36
 
    unsigned int        class;
37
 
    unsigned int        ttl;
38
 
 
39
 
    void                *rr;
40
 
} *dns_host_t;
41
 
 
42
 
typedef struct dns_srv_st {
43
 
    unsigned int        priority;
44
 
    unsigned int        weight;
45
 
    unsigned int        port;
46
 
    unsigned int        rweight;
47
 
 
48
 
    char                name[256];
49
 
} *dns_srv_t;
50
 
 
51
 
extern dns_host_t   dns_resolve(const char *zone, int type);
52
 
extern void         dns_free(dns_host_t dns);
53
 
 
54
 
#endif
55