resolved-dns-rr.h revision abf126a355e2f2b62b6c51ab3bb37895d1e3eee7
c51d84dc09476d9c06b8aac726220bf3c7d62e8dKay Sievers/*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
c51d84dc09476d9c06b8aac726220bf3c7d62e8dKay Sievers This file is part of systemd.
c51d84dc09476d9c06b8aac726220bf3c7d62e8dKay Sievers Copyright 2014 Lennart Poettering
c51d84dc09476d9c06b8aac726220bf3c7d62e8dKay Sievers systemd is free software; you can redistribute it and/or modify it
c51d84dc09476d9c06b8aac726220bf3c7d62e8dKay Sievers under the terms of the GNU Lesser General Public License as published by
c51d84dc09476d9c06b8aac726220bf3c7d62e8dKay Sievers the Free Software Foundation; either version 2.1 of the License, or
c51d84dc09476d9c06b8aac726220bf3c7d62e8dKay Sievers (at your option) any later version.
c51d84dc09476d9c06b8aac726220bf3c7d62e8dKay Sievers systemd is distributed in the hope that it will be useful, but
c51d84dc09476d9c06b8aac726220bf3c7d62e8dKay Sievers WITHOUT ANY WARRANTY; without even the implied warranty of
c51d84dc09476d9c06b8aac726220bf3c7d62e8dKay Sievers MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
c51d84dc09476d9c06b8aac726220bf3c7d62e8dKay Sievers Lesser General Public License for more details.
c51d84dc09476d9c06b8aac726220bf3c7d62e8dKay Sievers You should have received a copy of the GNU Lesser General Public License
c51d84dc09476d9c06b8aac726220bf3c7d62e8dKay Sievers along with systemd; If not, see <http://www.gnu.org/licenses/>.
c51d84dc09476d9c06b8aac726220bf3c7d62e8dKay Sieverstypedef struct DnsResourceRecord DnsResourceRecord;
c51d84dc09476d9c06b8aac726220bf3c7d62e8dKay Sievers/* DNS record classes, see RFC 1035 */
c51d84dc09476d9c06b8aac726220bf3c7d62e8dKay Sievers char *_name; /* don't access directy, use DNS_RESOURCE_KEY_NAME()! */
c51d84dc09476d9c06b8aac726220bf3c7d62e8dKay Sievers /* http://tools.ietf.org/html/rfc4034#section-2.1 */
c51d84dc09476d9c06b8aac726220bf3c7d62e8dKay Sievers /* http://tools.ietf.org/html/rfc4034#section-3.1 */
6c7980093c4e39d07bf06484f96f489e236c7c29Kay Sieversstatic inline const char* DNS_RESOURCE_KEY_NAME(const DnsResourceKey *key) {
int dns_resource_record_new_reverse(DnsResourceRecord **ret, int family, const union in_addr_union *address, const char *name);