No Description
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

RcppExports.cpp 13KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314
  1. // Generated by using Rcpp::compileAttributes() -> do not edit by hand
  2. // Generator token: 10BE3573-1514-4C36-9D1C-5A225CD40393
  3. #include <Rcpp.h>
  4. using namespace Rcpp;
  5. // gdns_lib_version
  6. std::string gdns_lib_version();
  7. RcppExport SEXP _clandnstine_gdns_lib_version() {
  8. BEGIN_RCPP
  9. Rcpp::RObject rcpp_result_gen;
  10. Rcpp::RNGScope rcpp_rngScope_gen;
  11. rcpp_result_gen = Rcpp::wrap(gdns_lib_version());
  12. return rcpp_result_gen;
  13. END_RCPP
  14. }
  15. // int_gdns_update_resolvers
  16. SEXP int_gdns_update_resolvers(SEXP gctx, std::vector< std::string > resolvers);
  17. RcppExport SEXP _clandnstine_int_gdns_update_resolvers(SEXP gctxSEXP, SEXP resolversSEXP) {
  18. BEGIN_RCPP
  19. Rcpp::RObject rcpp_result_gen;
  20. Rcpp::RNGScope rcpp_rngScope_gen;
  21. Rcpp::traits::input_parameter< SEXP >::type gctx(gctxSEXP);
  22. Rcpp::traits::input_parameter< std::vector< std::string > >::type resolvers(resolversSEXP);
  23. rcpp_result_gen = Rcpp::wrap(int_gdns_update_resolvers(gctx, resolvers));
  24. return rcpp_result_gen;
  25. END_RCPP
  26. }
  27. // gdns_set_timeout
  28. SEXP gdns_set_timeout(SEXP gctx, long timeout);
  29. RcppExport SEXP _clandnstine_gdns_set_timeout(SEXP gctxSEXP, SEXP timeoutSEXP) {
  30. BEGIN_RCPP
  31. Rcpp::RObject rcpp_result_gen;
  32. Rcpp::RNGScope rcpp_rngScope_gen;
  33. Rcpp::traits::input_parameter< SEXP >::type gctx(gctxSEXP);
  34. Rcpp::traits::input_parameter< long >::type timeout(timeoutSEXP);
  35. rcpp_result_gen = Rcpp::wrap(gdns_set_timeout(gctx, timeout));
  36. return rcpp_result_gen;
  37. END_RCPP
  38. }
  39. // gdns_get_timeout
  40. DoubleVector gdns_get_timeout(SEXP gctx);
  41. RcppExport SEXP _clandnstine_gdns_get_timeout(SEXP gctxSEXP) {
  42. BEGIN_RCPP
  43. Rcpp::RObject rcpp_result_gen;
  44. Rcpp::RNGScope rcpp_rngScope_gen;
  45. Rcpp::traits::input_parameter< SEXP >::type gctx(gctxSEXP);
  46. rcpp_result_gen = Rcpp::wrap(gdns_get_timeout(gctx));
  47. return rcpp_result_gen;
  48. END_RCPP
  49. }
  50. // gdns_set_round_robin_upstreams
  51. SEXP gdns_set_round_robin_upstreams(SEXP gctx, bool flag);
  52. RcppExport SEXP _clandnstine_gdns_set_round_robin_upstreams(SEXP gctxSEXP, SEXP flagSEXP) {
  53. BEGIN_RCPP
  54. Rcpp::RObject rcpp_result_gen;
  55. Rcpp::RNGScope rcpp_rngScope_gen;
  56. Rcpp::traits::input_parameter< SEXP >::type gctx(gctxSEXP);
  57. Rcpp::traits::input_parameter< bool >::type flag(flagSEXP);
  58. rcpp_result_gen = Rcpp::wrap(gdns_set_round_robin_upstreams(gctx, flag));
  59. return rcpp_result_gen;
  60. END_RCPP
  61. }
  62. // int_gdns_set_hosts
  63. SEXP int_gdns_set_hosts(SEXP gctx, std::string hosts);
  64. RcppExport SEXP _clandnstine_int_gdns_set_hosts(SEXP gctxSEXP, SEXP hostsSEXP) {
  65. BEGIN_RCPP
  66. Rcpp::RObject rcpp_result_gen;
  67. Rcpp::RNGScope rcpp_rngScope_gen;
  68. Rcpp::traits::input_parameter< SEXP >::type gctx(gctxSEXP);
  69. Rcpp::traits::input_parameter< std::string >::type hosts(hostsSEXP);
  70. rcpp_result_gen = Rcpp::wrap(int_gdns_set_hosts(gctx, hosts));
  71. return rcpp_result_gen;
  72. END_RCPP
  73. }
  74. // int_gdns_set_transports
  75. SEXP int_gdns_set_transports(SEXP gctx, IntegerVector trans);
  76. RcppExport SEXP _clandnstine_int_gdns_set_transports(SEXP gctxSEXP, SEXP transSEXP) {
  77. BEGIN_RCPP
  78. Rcpp::RObject rcpp_result_gen;
  79. Rcpp::RNGScope rcpp_rngScope_gen;
  80. Rcpp::traits::input_parameter< SEXP >::type gctx(gctxSEXP);
  81. Rcpp::traits::input_parameter< IntegerVector >::type trans(transSEXP);
  82. rcpp_result_gen = Rcpp::wrap(int_gdns_set_transports(gctx, trans));
  83. return rcpp_result_gen;
  84. END_RCPP
  85. }
  86. // int_gdns_set_resolution_type
  87. SEXP int_gdns_set_resolution_type(SEXP gctx, int res_type);
  88. RcppExport SEXP _clandnstine_int_gdns_set_resolution_type(SEXP gctxSEXP, SEXP res_typeSEXP) {
  89. BEGIN_RCPP
  90. Rcpp::RObject rcpp_result_gen;
  91. Rcpp::RNGScope rcpp_rngScope_gen;
  92. Rcpp::traits::input_parameter< SEXP >::type gctx(gctxSEXP);
  93. Rcpp::traits::input_parameter< int >::type res_type(res_typeSEXP);
  94. rcpp_result_gen = Rcpp::wrap(int_gdns_set_resolution_type(gctx, res_type));
  95. return rcpp_result_gen;
  96. END_RCPP
  97. }
  98. // gdns_get_transports
  99. CharacterVector gdns_get_transports(SEXP gctx);
  100. RcppExport SEXP _clandnstine_gdns_get_transports(SEXP gctxSEXP) {
  101. BEGIN_RCPP
  102. Rcpp::RObject rcpp_result_gen;
  103. Rcpp::RNGScope rcpp_rngScope_gen;
  104. Rcpp::traits::input_parameter< SEXP >::type gctx(gctxSEXP);
  105. rcpp_result_gen = Rcpp::wrap(gdns_get_transports(gctx));
  106. return rcpp_result_gen;
  107. END_RCPP
  108. }
  109. // gdns_get_hosts
  110. CharacterVector gdns_get_hosts(SEXP gctx);
  111. RcppExport SEXP _clandnstine_gdns_get_hosts(SEXP gctxSEXP) {
  112. BEGIN_RCPP
  113. Rcpp::RObject rcpp_result_gen;
  114. Rcpp::RNGScope rcpp_rngScope_gen;
  115. Rcpp::traits::input_parameter< SEXP >::type gctx(gctxSEXP);
  116. rcpp_result_gen = Rcpp::wrap(gdns_get_hosts(gctx));
  117. return rcpp_result_gen;
  118. END_RCPP
  119. }
  120. // gdns_get_resolvconf
  121. CharacterVector gdns_get_resolvconf(SEXP gctx);
  122. RcppExport SEXP _clandnstine_gdns_get_resolvconf(SEXP gctxSEXP) {
  123. BEGIN_RCPP
  124. Rcpp::RObject rcpp_result_gen;
  125. Rcpp::RNGScope rcpp_rngScope_gen;
  126. Rcpp::traits::input_parameter< SEXP >::type gctx(gctxSEXP);
  127. rcpp_result_gen = Rcpp::wrap(gdns_get_resolvconf(gctx));
  128. return rcpp_result_gen;
  129. END_RCPP
  130. }
  131. // gdns_get_tls_ca_path
  132. StringVector gdns_get_tls_ca_path(SEXP gctx);
  133. RcppExport SEXP _clandnstine_gdns_get_tls_ca_path(SEXP gctxSEXP) {
  134. BEGIN_RCPP
  135. Rcpp::RObject rcpp_result_gen;
  136. Rcpp::RNGScope rcpp_rngScope_gen;
  137. Rcpp::traits::input_parameter< SEXP >::type gctx(gctxSEXP);
  138. rcpp_result_gen = Rcpp::wrap(gdns_get_tls_ca_path(gctx));
  139. return rcpp_result_gen;
  140. END_RCPP
  141. }
  142. // gdns_get_tls_ca_file
  143. StringVector gdns_get_tls_ca_file(SEXP gctx);
  144. RcppExport SEXP _clandnstine_gdns_get_tls_ca_file(SEXP gctxSEXP) {
  145. BEGIN_RCPP
  146. Rcpp::RObject rcpp_result_gen;
  147. Rcpp::RNGScope rcpp_rngScope_gen;
  148. Rcpp::traits::input_parameter< SEXP >::type gctx(gctxSEXP);
  149. rcpp_result_gen = Rcpp::wrap(gdns_get_tls_ca_file(gctx));
  150. return rcpp_result_gen;
  151. END_RCPP
  152. }
  153. // gdns_set_tls_ca_path
  154. SEXP gdns_set_tls_ca_path(SEXP gctx, std::string ca_path);
  155. RcppExport SEXP _clandnstine_gdns_set_tls_ca_path(SEXP gctxSEXP, SEXP ca_pathSEXP) {
  156. BEGIN_RCPP
  157. Rcpp::RObject rcpp_result_gen;
  158. Rcpp::RNGScope rcpp_rngScope_gen;
  159. Rcpp::traits::input_parameter< SEXP >::type gctx(gctxSEXP);
  160. Rcpp::traits::input_parameter< std::string >::type ca_path(ca_pathSEXP);
  161. rcpp_result_gen = Rcpp::wrap(gdns_set_tls_ca_path(gctx, ca_path));
  162. return rcpp_result_gen;
  163. END_RCPP
  164. }
  165. // gdns_set_tls_ca_file
  166. SEXP gdns_set_tls_ca_file(SEXP gctx, std::string ca_file);
  167. RcppExport SEXP _clandnstine_gdns_set_tls_ca_file(SEXP gctxSEXP, SEXP ca_fileSEXP) {
  168. BEGIN_RCPP
  169. Rcpp::RObject rcpp_result_gen;
  170. Rcpp::RNGScope rcpp_rngScope_gen;
  171. Rcpp::traits::input_parameter< SEXP >::type gctx(gctxSEXP);
  172. Rcpp::traits::input_parameter< std::string >::type ca_file(ca_fileSEXP);
  173. rcpp_result_gen = Rcpp::wrap(gdns_set_tls_ca_file(gctx, ca_file));
  174. return rcpp_result_gen;
  175. END_RCPP
  176. }
  177. // int_gdns_get_root_servers
  178. CharacterVector int_gdns_get_root_servers(SEXP gctx);
  179. RcppExport SEXP _clandnstine_int_gdns_get_root_servers(SEXP gctxSEXP) {
  180. BEGIN_RCPP
  181. Rcpp::RObject rcpp_result_gen;
  182. Rcpp::RNGScope rcpp_rngScope_gen;
  183. Rcpp::traits::input_parameter< SEXP >::type gctx(gctxSEXP);
  184. rcpp_result_gen = Rcpp::wrap(int_gdns_get_root_servers(gctx));
  185. return rcpp_result_gen;
  186. END_RCPP
  187. }
  188. // int_dns_wire_to_list
  189. CharacterVector int_dns_wire_to_list(SEXP buf);
  190. RcppExport SEXP _clandnstine_int_dns_wire_to_list(SEXP bufSEXP) {
  191. BEGIN_RCPP
  192. Rcpp::RObject rcpp_result_gen;
  193. Rcpp::RNGScope rcpp_rngScope_gen;
  194. Rcpp::traits::input_parameter< SEXP >::type buf(bufSEXP);
  195. rcpp_result_gen = Rcpp::wrap(int_dns_wire_to_list(buf));
  196. return rcpp_result_gen;
  197. END_RCPP
  198. }
  199. // check_is_xptr
  200. void check_is_xptr(SEXP s);
  201. RcppExport SEXP _clandnstine_check_is_xptr(SEXP sSEXP) {
  202. BEGIN_RCPP
  203. Rcpp::RNGScope rcpp_rngScope_gen;
  204. Rcpp::traits::input_parameter< SEXP >::type s(sSEXP);
  205. check_is_xptr(s);
  206. return R_NilValue;
  207. END_RCPP
  208. }
  209. // is_null_xptr_
  210. SEXP is_null_xptr_(SEXP s);
  211. RcppExport SEXP _clandnstine_is_null_xptr_(SEXP sSEXP) {
  212. BEGIN_RCPP
  213. Rcpp::RObject rcpp_result_gen;
  214. Rcpp::RNGScope rcpp_rngScope_gen;
  215. Rcpp::traits::input_parameter< SEXP >::type s(sSEXP);
  216. rcpp_result_gen = Rcpp::wrap(is_null_xptr_(s));
  217. return rcpp_result_gen;
  218. END_RCPP
  219. }
  220. // int_gdns_context
  221. SEXP int_gdns_context(std::vector< std::string > resolvers);
  222. RcppExport SEXP _clandnstine_int_gdns_context(SEXP resolversSEXP) {
  223. BEGIN_RCPP
  224. Rcpp::RObject rcpp_result_gen;
  225. Rcpp::RNGScope rcpp_rngScope_gen;
  226. Rcpp::traits::input_parameter< std::vector< std::string > >::type resolvers(resolversSEXP);
  227. rcpp_result_gen = Rcpp::wrap(int_gdns_context(resolvers));
  228. return rcpp_result_gen;
  229. END_RCPP
  230. }
  231. // gdns_get_address
  232. CharacterVector gdns_get_address(SEXP gctx, std::string host);
  233. RcppExport SEXP _clandnstine_gdns_get_address(SEXP gctxSEXP, SEXP hostSEXP) {
  234. BEGIN_RCPP
  235. Rcpp::RObject rcpp_result_gen;
  236. Rcpp::RNGScope rcpp_rngScope_gen;
  237. Rcpp::traits::input_parameter< SEXP >::type gctx(gctxSEXP);
  238. Rcpp::traits::input_parameter< std::string >::type host(hostSEXP);
  239. rcpp_result_gen = Rcpp::wrap(gdns_get_address(gctx, host));
  240. return rcpp_result_gen;
  241. END_RCPP
  242. }
  243. // int_get_resolvers
  244. CharacterVector int_get_resolvers(SEXP gctx);
  245. RcppExport SEXP _clandnstine_int_get_resolvers(SEXP gctxSEXP) {
  246. BEGIN_RCPP
  247. Rcpp::RObject rcpp_result_gen;
  248. Rcpp::RNGScope rcpp_rngScope_gen;
  249. Rcpp::traits::input_parameter< SEXP >::type gctx(gctxSEXP);
  250. rcpp_result_gen = Rcpp::wrap(int_get_resolvers(gctx));
  251. return rcpp_result_gen;
  252. END_RCPP
  253. }
  254. // int_gdns_query
  255. CharacterVector int_gdns_query(SEXP gctx, std::string name, uint16_t rr, bool include_reporting);
  256. RcppExport SEXP _clandnstine_int_gdns_query(SEXP gctxSEXP, SEXP nameSEXP, SEXP rrSEXP, SEXP include_reportingSEXP) {
  257. BEGIN_RCPP
  258. Rcpp::RObject rcpp_result_gen;
  259. Rcpp::RNGScope rcpp_rngScope_gen;
  260. Rcpp::traits::input_parameter< SEXP >::type gctx(gctxSEXP);
  261. Rcpp::traits::input_parameter< std::string >::type name(nameSEXP);
  262. Rcpp::traits::input_parameter< uint16_t >::type rr(rrSEXP);
  263. Rcpp::traits::input_parameter< bool >::type include_reporting(include_reportingSEXP);
  264. rcpp_result_gen = Rcpp::wrap(int_gdns_query(gctx, name, rr, include_reporting));
  265. return rcpp_result_gen;
  266. END_RCPP
  267. }
  268. // gdns_get_resolution_type
  269. CharacterVector gdns_get_resolution_type(SEXP gctx);
  270. RcppExport SEXP _clandnstine_gdns_get_resolution_type(SEXP gctxSEXP) {
  271. BEGIN_RCPP
  272. Rcpp::RObject rcpp_result_gen;
  273. Rcpp::RNGScope rcpp_rngScope_gen;
  274. Rcpp::traits::input_parameter< SEXP >::type gctx(gctxSEXP);
  275. rcpp_result_gen = Rcpp::wrap(gdns_get_resolution_type(gctx));
  276. return rcpp_result_gen;
  277. END_RCPP
  278. }
  279. static const R_CallMethodDef CallEntries[] = {
  280. {"_clandnstine_gdns_lib_version", (DL_FUNC) &_clandnstine_gdns_lib_version, 0},
  281. {"_clandnstine_int_gdns_update_resolvers", (DL_FUNC) &_clandnstine_int_gdns_update_resolvers, 2},
  282. {"_clandnstine_gdns_set_timeout", (DL_FUNC) &_clandnstine_gdns_set_timeout, 2},
  283. {"_clandnstine_gdns_get_timeout", (DL_FUNC) &_clandnstine_gdns_get_timeout, 1},
  284. {"_clandnstine_gdns_set_round_robin_upstreams", (DL_FUNC) &_clandnstine_gdns_set_round_robin_upstreams, 2},
  285. {"_clandnstine_int_gdns_set_hosts", (DL_FUNC) &_clandnstine_int_gdns_set_hosts, 2},
  286. {"_clandnstine_int_gdns_set_transports", (DL_FUNC) &_clandnstine_int_gdns_set_transports, 2},
  287. {"_clandnstine_int_gdns_set_resolution_type", (DL_FUNC) &_clandnstine_int_gdns_set_resolution_type, 2},
  288. {"_clandnstine_gdns_get_transports", (DL_FUNC) &_clandnstine_gdns_get_transports, 1},
  289. {"_clandnstine_gdns_get_hosts", (DL_FUNC) &_clandnstine_gdns_get_hosts, 1},
  290. {"_clandnstine_gdns_get_resolvconf", (DL_FUNC) &_clandnstine_gdns_get_resolvconf, 1},
  291. {"_clandnstine_gdns_get_tls_ca_path", (DL_FUNC) &_clandnstine_gdns_get_tls_ca_path, 1},
  292. {"_clandnstine_gdns_get_tls_ca_file", (DL_FUNC) &_clandnstine_gdns_get_tls_ca_file, 1},
  293. {"_clandnstine_gdns_set_tls_ca_path", (DL_FUNC) &_clandnstine_gdns_set_tls_ca_path, 2},
  294. {"_clandnstine_gdns_set_tls_ca_file", (DL_FUNC) &_clandnstine_gdns_set_tls_ca_file, 2},
  295. {"_clandnstine_int_gdns_get_root_servers", (DL_FUNC) &_clandnstine_int_gdns_get_root_servers, 1},
  296. {"_clandnstine_int_dns_wire_to_list", (DL_FUNC) &_clandnstine_int_dns_wire_to_list, 1},
  297. {"_clandnstine_check_is_xptr", (DL_FUNC) &_clandnstine_check_is_xptr, 1},
  298. {"_clandnstine_is_null_xptr_", (DL_FUNC) &_clandnstine_is_null_xptr_, 1},
  299. {"_clandnstine_int_gdns_context", (DL_FUNC) &_clandnstine_int_gdns_context, 1},
  300. {"_clandnstine_gdns_get_address", (DL_FUNC) &_clandnstine_gdns_get_address, 2},
  301. {"_clandnstine_int_get_resolvers", (DL_FUNC) &_clandnstine_int_get_resolvers, 1},
  302. {"_clandnstine_int_gdns_query", (DL_FUNC) &_clandnstine_int_gdns_query, 4},
  303. {"_clandnstine_gdns_get_resolution_type", (DL_FUNC) &_clandnstine_gdns_get_resolution_type, 1},
  304. {NULL, NULL, 0}
  305. };
  306. RcppExport void R_init_clandnstine(DllInfo *dll) {
  307. R_registerRoutines(dll, NULL, CallEntries, NULL, NULL);
  308. R_useDynamicSymbols(dll, FALSE);
  309. }