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 3.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  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. // check_is_xptr
  16. void check_is_xptr(SEXP s);
  17. RcppExport SEXP _clandnstine_check_is_xptr(SEXP sSEXP) {
  18. BEGIN_RCPP
  19. Rcpp::RNGScope rcpp_rngScope_gen;
  20. Rcpp::traits::input_parameter< SEXP >::type s(sSEXP);
  21. check_is_xptr(s);
  22. return R_NilValue;
  23. END_RCPP
  24. }
  25. // is_null_xptr_
  26. SEXP is_null_xptr_(SEXP s);
  27. RcppExport SEXP _clandnstine_is_null_xptr_(SEXP sSEXP) {
  28. BEGIN_RCPP
  29. Rcpp::RObject rcpp_result_gen;
  30. Rcpp::RNGScope rcpp_rngScope_gen;
  31. Rcpp::traits::input_parameter< SEXP >::type s(sSEXP);
  32. rcpp_result_gen = Rcpp::wrap(is_null_xptr_(s));
  33. return rcpp_result_gen;
  34. END_RCPP
  35. }
  36. // int_gdns_resolver
  37. SEXP int_gdns_resolver(std::vector< std::string > resolvers);
  38. RcppExport SEXP _clandnstine_int_gdns_resolver(SEXP resolversSEXP) {
  39. BEGIN_RCPP
  40. Rcpp::RObject rcpp_result_gen;
  41. Rcpp::RNGScope rcpp_rngScope_gen;
  42. Rcpp::traits::input_parameter< std::vector< std::string > >::type resolvers(resolversSEXP);
  43. rcpp_result_gen = Rcpp::wrap(int_gdns_resolver(resolvers));
  44. return rcpp_result_gen;
  45. END_RCPP
  46. }
  47. // gdns_get_address
  48. CharacterVector gdns_get_address(SEXP gctx, std::string host);
  49. RcppExport SEXP _clandnstine_gdns_get_address(SEXP gctxSEXP, SEXP hostSEXP) {
  50. BEGIN_RCPP
  51. Rcpp::RObject rcpp_result_gen;
  52. Rcpp::RNGScope rcpp_rngScope_gen;
  53. Rcpp::traits::input_parameter< SEXP >::type gctx(gctxSEXP);
  54. Rcpp::traits::input_parameter< std::string >::type host(hostSEXP);
  55. rcpp_result_gen = Rcpp::wrap(gdns_get_address(gctx, host));
  56. return rcpp_result_gen;
  57. END_RCPP
  58. }
  59. // int_get_resolvers
  60. CharacterVector int_get_resolvers(SEXP gctx);
  61. RcppExport SEXP _clandnstine_int_get_resolvers(SEXP gctxSEXP) {
  62. BEGIN_RCPP
  63. Rcpp::RObject rcpp_result_gen;
  64. Rcpp::RNGScope rcpp_rngScope_gen;
  65. Rcpp::traits::input_parameter< SEXP >::type gctx(gctxSEXP);
  66. rcpp_result_gen = Rcpp::wrap(int_get_resolvers(gctx));
  67. return rcpp_result_gen;
  68. END_RCPP
  69. }
  70. // int_gdns_query
  71. CharacterVector int_gdns_query(SEXP gctx, std::string name, uint16_t rr);
  72. RcppExport SEXP _clandnstine_int_gdns_query(SEXP gctxSEXP, SEXP nameSEXP, SEXP rrSEXP) {
  73. BEGIN_RCPP
  74. Rcpp::RObject rcpp_result_gen;
  75. Rcpp::RNGScope rcpp_rngScope_gen;
  76. Rcpp::traits::input_parameter< SEXP >::type gctx(gctxSEXP);
  77. Rcpp::traits::input_parameter< std::string >::type name(nameSEXP);
  78. Rcpp::traits::input_parameter< uint16_t >::type rr(rrSEXP);
  79. rcpp_result_gen = Rcpp::wrap(int_gdns_query(gctx, name, rr));
  80. return rcpp_result_gen;
  81. END_RCPP
  82. }
  83. static const R_CallMethodDef CallEntries[] = {
  84. {"_clandnstine_gdns_lib_version", (DL_FUNC) &_clandnstine_gdns_lib_version, 0},
  85. {"_clandnstine_check_is_xptr", (DL_FUNC) &_clandnstine_check_is_xptr, 1},
  86. {"_clandnstine_is_null_xptr_", (DL_FUNC) &_clandnstine_is_null_xptr_, 1},
  87. {"_clandnstine_int_gdns_resolver", (DL_FUNC) &_clandnstine_int_gdns_resolver, 1},
  88. {"_clandnstine_gdns_get_address", (DL_FUNC) &_clandnstine_gdns_get_address, 2},
  89. {"_clandnstine_int_get_resolvers", (DL_FUNC) &_clandnstine_int_get_resolvers, 1},
  90. {"_clandnstine_int_gdns_query", (DL_FUNC) &_clandnstine_int_gdns_query, 3},
  91. {NULL, NULL, 0}
  92. };
  93. RcppExport void R_init_clandnstine(DllInfo *dll) {
  94. R_registerRoutines(dll, NULL, CallEntries, NULL, NULL);
  95. R_useDynamicSymbols(dll, FALSE);
  96. }