Loading...
Searching...
No Matches
sresolv.h
Go to the documentation of this file.
/*
* This file is part of the Sofia-SIP package
*
* Copyright (C) 2005 Nokia Corporation.
*
* Contact: Pekka Pessi <pekka.pessi@nokia-email.address.hidden>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public License
* as published by the Free Software Foundation; either version 2.1 of
* the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
* 02110-1301 USA
*
*/
#ifndef SRESOLV_H
#define SRESOLV_H
#include <sofia-sip/su.h>
#include <sofia-sip/su_wait.h>
#include <sofia-sip/su_tag.h>
#include <sofia-resolv/sres.h>
#include <sofia-resolv/sres_record.h>
#include <sofia-resolv/sres_async.h>
SOFIA_BEGIN_DECLS
/* Sofia-specific reactor interface for asynchronous operation */
#define SRESOLVTAG_ANY() srestag_any, ((tag_value_t)0)
SOFIAPUBVAR tag_typedef_t srestag_any;
SOFIAPUBVAR tag_typedef_t srestag_resolv_conf;
#define SRESTAG_RESOLV_CONF(x) srestag_resolv_conf, tag_str_v((x))
SOFIAPUBVAR tag_typedef_t srestag_resolv_conf_ref;
#define SRESTAG_RESOLV_CONF_REF(x) srestag_resolv_conf_ref, tag_str_vr(&(x))
SOFIAPUBVAR tag_typedef_t srestag_cache;
#define SRESTAG_CACHE(x) srestag_cache, tag_ptr_v((x))
SOFIAPUBVAR tag_typedef_t srestag_cache_ref;
#define SRESTAG_CACHE_REF(x) srestag_cache_ref, tag_ptr_vr(&(x), (x))
SOFIAPUBFUN sres_resolver_t *sres_resolver_create(su_root_t *root,
char const *resolv_conf,
tag_type_t, tag_value_t,
...);
SOFIAPUBFUN int sres_resolver_destroy(sres_resolver_t *res);
/* Return socket used by root. @deprecated */
SOFIAPUBFUN su_socket_t sres_resolver_root_socket(sres_resolver_t *res);
SOFIA_END_DECLS
#endif
sres.h
Sofia DNS Resolver.
sres_resolver_t
struct sres_resolver_s sres_resolver_t
Opaque type of DNS resolver object.
Definition sres.h:95
sres_async.h
Asynchronous interface for Sofia DNS Resolver.
sres_record.h
Sofia DNS Resolver Records.
sres_resolver_destroy
int sres_resolver_destroy(sres_resolver_t *res)
Destroy a resolver object.
Definition sresolv.c:154
sres_resolver_create
sres_resolver_t * sres_resolver_create(su_root_t *root, char const *resolv_conf, tag_type_t, tag_value_t,...)
Create a resolver object using root reactor.
Definition sresolv.c:100
sres_resolver_root_socket
su_socket_t sres_resolver_root_socket(sres_resolver_t *res)
Return a socket registered to su_root_t object.
Definition sresolv.c:287
su.h
su_socket_t
int su_socket_t
SOFIAPUBFUN
#define SOFIAPUBFUN
SOFIAPUBVAR
#define SOFIAPUBVAR
su_tag.h
tag_typedef_t
struct tag_type_s const tag_typedef_t[1]
tag_value_t
intptr_t tag_value_t
tag_type_t
struct tag_type_s const * tag_type_t
su_wait.h
su_root_t
struct su_root_t su_root_t

Sofia-SIP 1.12.11devel - Copyright (C) 2006 Nokia Corporation. All rights reserved. Licensed under the terms of the GNU Lesser General Public License.