// Generated by using Rcpp::compileAttributes() -> do not edit by hand // Generator token: 10BE3573-1514-4C36-9D1C-5A225CD40393 #include using namespace Rcpp; // gdns_lib_version std::string gdns_lib_version(); RcppExport SEXP _clandnstine_gdns_lib_version() { BEGIN_RCPP Rcpp::RObject rcpp_result_gen; Rcpp::RNGScope rcpp_rngScope_gen; rcpp_result_gen = Rcpp::wrap(gdns_lib_version()); return rcpp_result_gen; END_RCPP } // check_is_xptr void check_is_xptr(SEXP s); RcppExport SEXP _clandnstine_check_is_xptr(SEXP sSEXP) { BEGIN_RCPP Rcpp::RNGScope rcpp_rngScope_gen; Rcpp::traits::input_parameter< SEXP >::type s(sSEXP); check_is_xptr(s); return R_NilValue; END_RCPP } // is_null_xptr_ SEXP is_null_xptr_(SEXP s); RcppExport SEXP _clandnstine_is_null_xptr_(SEXP sSEXP) { BEGIN_RCPP Rcpp::RObject rcpp_result_gen; Rcpp::RNGScope rcpp_rngScope_gen; Rcpp::traits::input_parameter< SEXP >::type s(sSEXP); rcpp_result_gen = Rcpp::wrap(is_null_xptr_(s)); return rcpp_result_gen; END_RCPP } // int_gdns_resolver SEXP int_gdns_resolver(std::vector< std::string > resolvers); RcppExport SEXP _clandnstine_int_gdns_resolver(SEXP resolversSEXP) { BEGIN_RCPP Rcpp::RObject rcpp_result_gen; Rcpp::RNGScope rcpp_rngScope_gen; Rcpp::traits::input_parameter< std::vector< std::string > >::type resolvers(resolversSEXP); rcpp_result_gen = Rcpp::wrap(int_gdns_resolver(resolvers)); return rcpp_result_gen; END_RCPP } // gdns_get_address CharacterVector gdns_get_address(SEXP gctx, std::string host); RcppExport SEXP _clandnstine_gdns_get_address(SEXP gctxSEXP, SEXP hostSEXP) { BEGIN_RCPP Rcpp::RObject rcpp_result_gen; Rcpp::RNGScope rcpp_rngScope_gen; Rcpp::traits::input_parameter< SEXP >::type gctx(gctxSEXP); Rcpp::traits::input_parameter< std::string >::type host(hostSEXP); rcpp_result_gen = Rcpp::wrap(gdns_get_address(gctx, host)); return rcpp_result_gen; END_RCPP } // int_get_resolvers CharacterVector int_get_resolvers(SEXP gctx); RcppExport SEXP _clandnstine_int_get_resolvers(SEXP gctxSEXP) { BEGIN_RCPP Rcpp::RObject rcpp_result_gen; Rcpp::RNGScope rcpp_rngScope_gen; Rcpp::traits::input_parameter< SEXP >::type gctx(gctxSEXP); rcpp_result_gen = Rcpp::wrap(int_get_resolvers(gctx)); return rcpp_result_gen; END_RCPP } // int_gdns_query CharacterVector int_gdns_query(SEXP gctx, std::string name, uint16_t rr); RcppExport SEXP _clandnstine_int_gdns_query(SEXP gctxSEXP, SEXP nameSEXP, SEXP rrSEXP) { BEGIN_RCPP Rcpp::RObject rcpp_result_gen; Rcpp::RNGScope rcpp_rngScope_gen; Rcpp::traits::input_parameter< SEXP >::type gctx(gctxSEXP); Rcpp::traits::input_parameter< std::string >::type name(nameSEXP); Rcpp::traits::input_parameter< uint16_t >::type rr(rrSEXP); rcpp_result_gen = Rcpp::wrap(int_gdns_query(gctx, name, rr)); return rcpp_result_gen; END_RCPP } static const R_CallMethodDef CallEntries[] = { {"_clandnstine_gdns_lib_version", (DL_FUNC) &_clandnstine_gdns_lib_version, 0}, {"_clandnstine_check_is_xptr", (DL_FUNC) &_clandnstine_check_is_xptr, 1}, {"_clandnstine_is_null_xptr_", (DL_FUNC) &_clandnstine_is_null_xptr_, 1}, {"_clandnstine_int_gdns_resolver", (DL_FUNC) &_clandnstine_int_gdns_resolver, 1}, {"_clandnstine_gdns_get_address", (DL_FUNC) &_clandnstine_gdns_get_address, 2}, {"_clandnstine_int_get_resolvers", (DL_FUNC) &_clandnstine_int_get_resolvers, 1}, {"_clandnstine_int_gdns_query", (DL_FUNC) &_clandnstine_int_gdns_query, 3}, {NULL, NULL, 0} }; RcppExport void R_init_clandnstine(DllInfo *dll) { R_registerRoutines(dll, NULL, CallEntries, NULL, NULL); R_useDynamicSymbols(dll, FALSE); }