summaryrefslogtreecommitdiffstats
path: root/src/plugins/dns/resolver_process.c
diff options
context:
space:
mode:
authorOle Troan <ot@cisco.com>2019-09-27 09:07:51 +0200
committerNeale Ranns <nranns@cisco.com>2019-09-27 09:05:29 +0000
commitb922f16ba532d09f920776a04117e41f173dec8e (patch)
tree07456d2b44c86e39da92cc7805835450aaa2fa80 /src/plugins/dns/resolver_process.c
parent9f3d21170a3c408707e07e4f3ffbee2fd27c2b03 (diff)
dns: remove api boilerplate
Type: refactor Signed-off-by: Ole Troan <ot@cisco.com> Change-Id: Ifffa86b45dd1f213ba974a296ab64202b672a6df
Diffstat (limited to 'src/plugins/dns/resolver_process.c')
-rw-r--r--src/plugins/dns/resolver_process.c17
1 files changed, 2 insertions, 15 deletions
diff --git a/src/plugins/dns/resolver_process.c b/src/plugins/dns/resolver_process.c
index 51fe9d76a08..71e5ba2ffab 100644
--- a/src/plugins/dns/resolver_process.c
+++ b/src/plugins/dns/resolver_process.c
@@ -21,21 +21,8 @@
#include <vnet/vnet.h>
/* define message IDs */
-#include <dns/dns_msg_enum.h>
-
-#define vl_typedefs /* define message structures */
-#include <dns/dns_all_api_h.h>
-#undef vl_typedefs
-
-#define vl_endianfun /* define message structures */
-#include <dns/dns_all_api_h.h>
-#undef vl_endianfun
-
-/* instantiate all the print functions we know about */
-#define vl_print(handle, ...) vlib_cli_output (handle, __VA_ARGS__)
-#define vl_printfun
-#include <dns/dns_all_api_h.h>
-#undef vl_printfun
+#include <dns/dns.api_enum.h>
+#include <dns/dns.api_types.h>
#include <vlibapi/api_helper_macros.h>