mirror of https://github.com/getdnsapi/getdns.git
tests_stub_async look up cmd_line specified name
This commit is contained in:
parent
d9afcf760b
commit
9f5b22727d
|
@ -57,7 +57,7 @@ this_callbackfn(struct getdns_context_t *this_context,
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
main()
|
main(int argc, char** argv)
|
||||||
{
|
{
|
||||||
/* Create the DNS context for this call */
|
/* Create the DNS context for this call */
|
||||||
struct getdns_context_t *this_context = NULL;
|
struct getdns_context_t *this_context = NULL;
|
||||||
|
@ -81,7 +81,7 @@ main()
|
||||||
(void) getdns_extension_set_libevent_base(this_context,
|
(void) getdns_extension_set_libevent_base(this_context,
|
||||||
this_event_base);
|
this_event_base);
|
||||||
/* Set up the getdns call */
|
/* Set up the getdns call */
|
||||||
const char *this_name = "www.google.com";
|
const char *this_name = argc > 1 ? argv[1] : "www.google.com";
|
||||||
char *this_userarg = "somestring"; // Could add things here to help identify this call
|
char *this_userarg = "somestring"; // Could add things here to help identify this call
|
||||||
getdns_transaction_t this_transaction_id = 0;
|
getdns_transaction_t this_transaction_id = 0;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue