Skip to content

Commit

Permalink
net: dns: Remove dns_client API and sample application
Browse files Browse the repository at this point in the history
DNS resolving is better done with DNS resolve API so remove
the DNS client API which is quite hard to use.

Change-Id: Ide4973a5be674414ea6e04a35c938195cce40b6a
Signed-off-by: Jukka Rissanen <[email protected]>
  • Loading branch information
jukkar committed Apr 13, 2017
1 parent abb24bb commit 611ccaa
Show file tree
Hide file tree
Showing 19 changed files with 45 additions and 1,044 deletions.
12 changes: 0 additions & 12 deletions .known-issues/doc/networking.conf
Original file line number Diff line number Diff line change
Expand Up @@ -36,18 +36,6 @@
^.*struct net_if __aligned\(32\)
^[- \t]*\^
#
# include/net/dns_client.h
#
^(?P<filename>[-._/\w]+/doc/api/networking.rst):(?P<lineno>[0-9]+): WARNING: Invalid definition: Expected identifier in nested name. \[error at [0-9]+]
^[ \t]*
^[ \t]*\^
^(?P=filename):(?P=lineno): WARNING: Invalid definition: Expected identifier in nested name. \[error at [0-9]+]
^[ \t]*
^[ \t]*\^
^(?P=filename):(?P=lineno): WARNING: Invalid definition: Expected end of definition. \[error at [0-9]+]
^.*dns_context.address
^[- \t]*\^
#
# include/net/net_mgmt.h
#
^(?P<filename>[-._/\w]+/doc/api/networking.rst):(?P<lineno>[0-9]+): WARNING: Invalid definition: Expected identifier in nested name. \[error at [0-9]+]
Expand Down
6 changes: 3 additions & 3 deletions doc/api/networking.rst
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,9 @@ MQTT 3.1.1
:project: Zephyr
:content-only:

DNS Client
==========
DNS Resolve
===========

.. doxygengroup:: dns_client
.. doxygengroup:: dns_resolve
:project: Zephyr
:content-only:
2 changes: 1 addition & 1 deletion doc/zephyr.doxyfile
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ INPUT = \
../lib/libc/minimal/include/ \
../ext/lib/crypto/tinycrypt/include/ \
../include/net/zoap.h \
../include/net/dns_client.h \
../include/net/dns_resolve.h \
../tests/ztest/include/
INPUT_ENCODING = UTF-8
FILE_PATTERNS = "*.c" "*.h" "*.S"
Expand Down
107 changes: 0 additions & 107 deletions include/net/dns_client.h

This file was deleted.

13 changes: 11 additions & 2 deletions include/net/dns_resolve.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,15 @@
#ifndef _DNS_RESOLVE_H
#define _DNS_RESOLVE_H

#if defined(CONFIG_DNS_RESOLVER)

#include <net/net_ip.h>
#include <net/net_context.h>

/**
* @brief DNS resolving library
* @defgroup dns_resolve DNS Resolve Library
* @{
*/

/**
* DNS query type enum
*/
Expand Down Expand Up @@ -305,6 +309,11 @@ static inline int dns_cancel_addr_info(uint16_t dns_id)
return dns_resolve_cancel(dns_resolve_get_default(), dns_id);
}

/**
* @}
*/

#if defined(CONFIG_DNS_RESOLVER)
/**
* @brief Initialize DNS subsystem.
*/
Expand Down
13 changes: 0 additions & 13 deletions samples/net/dns_client/Makefile

This file was deleted.

46 changes: 0 additions & 46 deletions samples/net/dns_client/prj_arduino_101.conf

This file was deleted.

34 changes: 0 additions & 34 deletions samples/net/dns_client/prj_frdm_k64f.conf

This file was deleted.

33 changes: 0 additions & 33 deletions samples/net/dns_client/prj_qemu_x86.conf

This file was deleted.

46 changes: 0 additions & 46 deletions samples/net/dns_client/sample_output_IPv4.txt

This file was deleted.

39 changes: 0 additions & 39 deletions samples/net/dns_client/sample_output_IPv6.txt

This file was deleted.

Loading

0 comments on commit 611ccaa

Please sign in to comment.