resolved-dns-rr.h revision 2e276efc7b0398a3086629a52970bdd4ab7252f9
e6b5c5d03cb28d2149dc1c124c2a315911b91f4fRonny Chevalier/*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
e6b5c5d03cb28d2149dc1c124c2a315911b91f4fRonny Chevalier This file is part of systemd.
e6b5c5d03cb28d2149dc1c124c2a315911b91f4fRonny Chevalier Copyright 2014 Lennart Poettering
e6b5c5d03cb28d2149dc1c124c2a315911b91f4fRonny Chevalier systemd is free software; you can redistribute it and/or modify it
e6b5c5d03cb28d2149dc1c124c2a315911b91f4fRonny Chevalier under the terms of the GNU Lesser General Public License as published by
e6b5c5d03cb28d2149dc1c124c2a315911b91f4fRonny Chevalier the Free Software Foundation; either version 2.1 of the License, or
e6b5c5d03cb28d2149dc1c124c2a315911b91f4fRonny Chevalier (at your option) any later version.
e6b5c5d03cb28d2149dc1c124c2a315911b91f4fRonny Chevalier systemd is distributed in the hope that it will be useful, but
e6b5c5d03cb28d2149dc1c124c2a315911b91f4fRonny Chevalier WITHOUT ANY WARRANTY; without even the implied warranty of
e6b5c5d03cb28d2149dc1c124c2a315911b91f4fRonny Chevalier MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
e6b5c5d03cb28d2149dc1c124c2a315911b91f4fRonny Chevalier Lesser General Public License for more details.
e6b5c5d03cb28d2149dc1c124c2a315911b91f4fRonny Chevalier You should have received a copy of the GNU Lesser General Public License
e6b5c5d03cb28d2149dc1c124c2a315911b91f4fRonny Chevalier along with systemd; If not, see <http://www.gnu.org/licenses/>.
e6b5c5d03cb28d2149dc1c124c2a315911b91f4fRonny Chevaliertypedef struct DnsResourceKey DnsResourceKey;
e6b5c5d03cb28d2149dc1c124c2a315911b91f4fRonny Chevaliertypedef struct DnsResourceRecord DnsResourceRecord;
e6b5c5d03cb28d2149dc1c124c2a315911b91f4fRonny Chevalier/* DNS record classes, see RFC 1035 */
e6b5c5d03cb28d2149dc1c124c2a315911b91f4fRonny Chevalier/* DNS record types, see RFC 1035 */
e6b5c5d03cb28d2149dc1c124c2a315911b91f4fRonny Chevalier /* Normal records */
struct DnsResourceKey {
unsigned n_ref;
struct DnsResourceRecord {
unsigned n_ref;
void *data;
} generic;
char *name;
char *cpu;
char *os;
} hinfo;
char **strings;
} txt;
} aaaa;
char *mname;
char *rname;
} soa;
char *exchange;
} mx;
return NULL;
int dns_resource_key_compare_func(const void *a, const void *b);
int dns_resource_record_new_reverse(DnsResourceRecord **ret, int family, const union in_addr_union *address, const char *name);