[asterisk-commits] file: branch group/dns r432447 - in /team/group/dns: include/asterisk/ main/

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Wed Mar 4 10:11:48 CST 2015


Author: file
Date: Wed Mar  4 10:11:46 2015
New Revision: 432447

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=432447
Log:
Add stub implementations.

Added:
    team/group/dns/main/dns_core.c   (with props)
    team/group/dns/main/dns_query_set.c   (with props)
Modified:
    team/group/dns/include/asterisk/dns_resolver.h

Modified: team/group/dns/include/asterisk/dns_resolver.h
URL: http://svnview.digium.com/svn/asterisk/team/group/dns/include/asterisk/dns_resolver.h?view=diff&rev=432447&r1=432446&r2=432447
==============================================================================
--- team/group/dns/include/asterisk/dns_resolver.h (original)
+++ team/group/dns/include/asterisk/dns_resolver.h Wed Mar  4 10:11:46 2015
@@ -103,7 +103,7 @@
  * \retval 0 success
  * \retval -1 failure
  */
-int ast_dns_resolver_register(const struct ast_core_dns_resolver *resolver);
+int ast_dns_resolver_register(const struct ast_dns_resolver *resolver);
 
 /*!
  * \brief Unregister a DNS resolver
@@ -113,7 +113,7 @@
  * \retval 0 success
  * \retval -1 failure
  */
-int ast_dns_resolver_unregister(const struct ast_core_dns_resolver *resolver);
+int ast_dns_resolver_unregister(const struct ast_dns_resolver *resolver);
 
 #if defined(__cplusplus) || defined(c_plusplus)
 }

Added: team/group/dns/main/dns_core.c
URL: http://svnview.digium.com/svn/asterisk/team/group/dns/main/dns_core.c?view=auto&rev=432447
==============================================================================
--- team/group/dns/main/dns_core.c (added)
+++ team/group/dns/main/dns_core.c Wed Mar  4 10:11:46 2015
@@ -1,0 +1,245 @@
+/*
+ * Asterisk -- An open source telephony toolkit.
+ *
+ * Copyright (C) 2015, Digium, Inc.
+ *
+ * Joshua Colp <jcolp at digium.com>
+ *
+ * See http://www.asterisk.org for more information about
+ * the Asterisk project. Please do not directly contact
+ * any of the maintainers of this project for assistance;
+ * the project provides a web site, mailing lists and IRC
+ * channels for your use.
+ *
+ * This program is free software, distributed under the terms of
+ * the GNU General Public License Version 2. See the LICENSE file
+ * at the top of the source tree.
+ */
+
+/*! \file
+ *
+ * \brief Core DNS Functionality
+ *
+ * \author Joshua Colp <jcolp at digium.com>
+ */
+
+/*** MODULEINFO
+	<support_level>core</support_level>
+ ***/
+
+#include "asterisk.h"
+
+ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
+
+#include "asterisk/dns_core.h"
+#include "asterisk/dns_naptr.h"
+#include "asterisk/dns_srv.h"
+#include "asterisk/dns_tlsa.h"
+#include "asterisk/dns_resolver.h"
+
+const char *ast_dns_query_get_name(const struct ast_dns_query *query)
+{
+	return NULL;
+}
+
+int ast_dns_query_get_rr_type(const struct ast_dns_query *query)
+{
+		return 0;
+}
+
+int ast_dns_query_get_rr_class(const struct ast_dns_query *query)
+{
+	return 0;
+}
+
+int ast_dns_query_get_rcode(const struct ast_dns_query *query)
+{
+	return 0;
+}
+
+void *ast_dns_query_get_data(const struct ast_dns_query *query)
+{
+	return NULL;
+}
+
+struct ast_dns_result *ast_dns_query_get_result(const struct ast_dns_query *query)
+{
+	return NULL;
+}
+
+unsigned int ast_dns_result_get_nxdomain(const struct ast_dns_result *result)
+{
+	return 0;
+}
+
+unsigned int ast_dns_result_get_secure(const struct ast_dns_result *result)
+{
+	return 0;
+}
+
+unsigned int ast_dns_result_get_bogus(const struct ast_dns_result *result)
+{
+	return 0;
+}
+
+const char *ast_dns_result_get_canonical(const struct ast_dns_result *result)
+{
+	return NULL;
+}
+
+const struct ast_dns_record *ast_dns_result_get_records(const struct ast_dns_result *result)
+{
+	return NULL;
+}
+
+void ast_dns_result_free(struct ast_dns_result *result)
+{
+}
+
+int ast_dns_record_get_rr_type(const struct ast_dns_record *record)
+{
+	return 0;
+}
+
+int ast_dns_record_get_rr_class(const struct ast_dns_record *record)
+{
+	return 0;
+}
+
+int ast_dns_record_get_ttl(const struct ast_dns_record *record)
+{
+	return 0;
+}
+
+const char *ast_dns_record_get_data(const struct ast_dns_record *record)
+{
+	return NULL;
+}
+
+struct ast_dns_record *ast_dns_record_get_next(const struct ast_dns_record *record)
+{
+	return NULL;
+}
+
+struct ast_dns_query *ast_dns_resolve_async(const char *name, int rr_type, int rr_class, ast_dns_resolve_callback callback, void *data)
+{
+	return NULL;
+}
+
+struct ast_dns_query *ast_dns_resolve_async_recurring(const char *name, int rr_type, int rr_class, ast_dns_resolve_callback callback, void *data)
+{
+	return NULL;
+}
+
+int ast_dns_resolve_cancel(struct ast_dns_query *query)
+{
+	return 0;
+}
+
+int ast_dns_resolve(const char *name, int rr_type, int rr_class, struct ast_dns_result **result)
+{
+	return 0;
+}
+
+const char *ast_dns_naptr_get_flags(const struct ast_dns_record *record)
+{
+	return NULL;
+}
+
+const char *ast_dns_naptr_get_service(const struct ast_dns_record *record)
+{
+	return NULL;
+}
+
+const char *ast_dns_naptr_get_regexp(const struct ast_dns_record *record)
+{
+	return NULL;
+}
+
+const char *ast_dns_naptr_get_replacement(const struct ast_dns_record *record)
+{
+	return NULL;
+}
+
+unsigned short ast_dns_naptr_get_order(const struct ast_dns_record *record)
+{
+	return 0;
+}
+
+unsigned short ast_dns_naptr_get_preference(const struct ast_dns_record *record)
+{
+	return 0;
+}
+
+const char *ast_dns_srv_get_host(const struct ast_dns_record *record)
+{
+	return NULL;
+}
+
+unsigned short ast_dns_srv_get_priority(const struct ast_dns_record *record)
+{
+	return 0;
+}
+
+unsigned short ast_dns_srv_get_weight(const struct ast_dns_record *record)
+{
+	return 0;
+}
+
+unsigned short ast_dns_srv_get_port(const struct ast_dns_record *record)
+{
+	return 0;
+}
+
+unsigned int ast_dns_tlsa_get_usage(const struct ast_dns_record *record)
+{
+	return 0;
+}
+
+unsigned int ast_dns_tlsa_get_selector(const struct ast_dns_record *record)
+{
+	return 0;
+}
+
+unsigned int ast_dns_tlsa_get_matching_type(const struct ast_dns_record *record)
+{
+	return 0;
+}
+
+const char *ast_dns_tlsa_get_association_data(const struct ast_dns_record *record)
+{
+	return NULL;
+}
+
+void ast_dns_resolver_set_data(struct ast_dns_query *query, void *data)
+{
+}
+
+void *ast_dns_resolver_get_data(const struct ast_dns_query *query)
+{
+	return NULL;
+}
+
+void ast_dns_resolver_set_result(struct ast_dns_query *query, unsigned int nxdomain, unsigned int secure, unsigned int bogus,
+	const char *canonical)
+{
+}
+
+int ast_dns_resolver_add_record(struct ast_dns_query *query, int rr_type, int rr_class, int ttl, char *data, size_t size)
+{
+	return -1;
+}
+
+void ast_dns_resolver_completed(const struct ast_dns_query *query)
+{
+}
+
+int ast_dns_resolver_register(const struct ast_dns_resolver *resolver)
+{
+	return -1;
+}
+
+int ast_dns_resolver_unregister(const struct ast_dns_resolver *resolver)
+{
+	return -1;
+}

Propchange: team/group/dns/main/dns_core.c
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: team/group/dns/main/dns_core.c
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Propchange: team/group/dns/main/dns_core.c
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: team/group/dns/main/dns_query_set.c
URL: http://svnview.digium.com/svn/asterisk/team/group/dns/main/dns_query_set.c?view=auto&rev=432447
==============================================================================
--- team/group/dns/main/dns_query_set.c (added)
+++ team/group/dns/main/dns_query_set.c Wed Mar  4 10:11:46 2015
@@ -1,0 +1,77 @@
+/*
+ * Asterisk -- An open source telephony toolkit.
+ *
+ * Copyright (C) 2015, Digium, Inc.
+ *
+ * Joshua Colp <jcolp at digium.com>
+ *
+ * See http://www.asterisk.org for more information about
+ * the Asterisk project. Please do not directly contact
+ * any of the maintainers of this project for assistance;
+ * the project provides a web site, mailing lists and IRC
+ * channels for your use.
+ *
+ * This program is free software, distributed under the terms of
+ * the GNU General Public License Version 2. See the LICENSE file
+ * at the top of the source tree.
+ */
+
+/*! \file
+ *
+ * \brief DNS Query Set API
+ *
+ * \author Joshua Colp <jcolp at digium.com>
+ */
+
+/*** MODULEINFO
+	<support_level>core</support_level>
+ ***/
+
+#include "asterisk.h"
+
+ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
+
+#include "asterisk/dns_core.h"
+#include "asterisk/dns_query_set.h"
+
+struct ast_dns_query_set *ast_dns_query_set_create(void)
+{
+	return NULL;
+}
+
+int ast_dns_query_set_add(struct ast_dns_query_set *query_set, const char *name, int rr_type, int rr_class)
+{
+	return -1;
+}
+
+size_t ast_dns_query_set_num_queries(const struct ast_dns_query_set *query_set)
+{
+	return 0;
+}
+
+struct ast_dns_query *ast_dns_query_set_get(const struct ast_dns_query_set *query_set, unsigned int index)
+{
+	return NULL;
+}
+
+void *ast_dns_query_set_get_data(const struct ast_dns_query_set *query_set)
+{
+	return NULL;
+}
+
+void ast_dns_query_set_resolve_async(struct ast_dns_query_set *query_set, ast_dns_query_set_callback callback, void *data)
+{
+}
+
+void ast_query_set_resolve(struct ast_dns_query_set *query_set)
+{
+}
+
+int ast_dns_query_set_resolve_cancel(struct ast_dns_query_set *query_set)
+{
+	return -1;
+}
+
+void ast_dns_query_set_free(struct ast_dns_query_set *query_set)
+{
+}

Propchange: team/group/dns/main/dns_query_set.c
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: team/group/dns/main/dns_query_set.c
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Propchange: team/group/dns/main/dns_query_set.c
------------------------------------------------------------------------------
    svn:mime-type = text/plain




More information about the asterisk-commits mailing list