mirror of https://github.com/getdnsapi/getdns.git
Add the INVALID_PARAMETER return type
This commit is contained in:
parent
f305ac97da
commit
2c664e73fe
|
@ -9,7 +9,7 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2013, NLNet Labs, Versign, Inc.
|
* Copyright (c) 2013, NLNet Labs, Versign, Inc.
|
||||||
* All rights reserved.
|
* All rights reserved.
|
||||||
*
|
*
|
||||||
* Redistribution and use in source and binary forms, with or without
|
* Redistribution and use in source and binary forms, with or without
|
||||||
* modification, are permitted provided that the following conditions are met:
|
* modification, are permitted provided that the following conditions are met:
|
||||||
* * Redistributions of source code must retain the above copyright
|
* * Redistributions of source code must retain the above copyright
|
||||||
|
@ -74,6 +74,8 @@ struct event_base;
|
||||||
#define GETDNS_RETURN_DNSSEC_WITH_STUB_DISALLOWED_TEXT "A query was made with a context that is using stub resolution and a DNSSEC extension specified."
|
#define GETDNS_RETURN_DNSSEC_WITH_STUB_DISALLOWED_TEXT "A query was made with a context that is using stub resolution and a DNSSEC extension specified."
|
||||||
#define GETDNS_RETURN_MEMORY_ERROR 310
|
#define GETDNS_RETURN_MEMORY_ERROR 310
|
||||||
#define GETDNS_RETURN_MEMORY_ERROR_TEXT "Unable to allocate the memory required."
|
#define GETDNS_RETURN_MEMORY_ERROR_TEXT "Unable to allocate the memory required."
|
||||||
|
#define GETDNS_RETURN_INVALID_PARAMETER 311
|
||||||
|
#define GETDNS_RETURN_INVALID_PARAMETER_TEXT "A required parameter had an invalid value."
|
||||||
/** @}
|
/** @}
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
|
@ -61,8 +61,11 @@ getdns_lookup_table getdns_error_str[] = {
|
||||||
{GETDNS_RETURN_DNSSEC_WITH_STUB_DISALLOWED,
|
{GETDNS_RETURN_DNSSEC_WITH_STUB_DISALLOWED,
|
||||||
"A query was made with a context that is using stub resolution and a DNSSEC extension specified."}
|
"A query was made with a context that is using stub resolution and a DNSSEC extension specified."}
|
||||||
,
|
,
|
||||||
{GETDNS_RETURN_MEMORY_ERROR,
|
{GETDNS_RETURN_MEMORY_ERROR,
|
||||||
"Unable to allocate the memory required."}
|
"Unable to allocate the memory required."}
|
||||||
|
,
|
||||||
|
{GETDNS_RETURN_INVALID_PARAMETER,
|
||||||
|
GETDNS_RETURN_INVALID_PARAMETER_TEXT }
|
||||||
,
|
,
|
||||||
{0, ""}
|
{0, ""}
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue