src/context.c
static getdns_return_t
create_default_namespaces(getdns_context *context)
{
	if (!( context->namespaces
	     = GETDNS_XMALLOC(context->my_mf, getdns_namespace_t, 2)))
		return GETDNS_RETURN_MEMORY_ERROR;

	context->namespaces[0] = GETDNS_NAMESPACE_LOCALNAMES;
	context->namespaces[1] = GETDNS_NAMESPACE_DNS;
	context->namespace_count = 2;
	return GETDNS_RETURN_GOOD;
}
/**
 * Helper to get default lookup namespaces.
 * TODO: Determine from OS
 */
Helper to get default lookup namespaces.
TODO: Determine from OS
Helper to get default lookup namespaces . TODO : Determine from OS
static getdns_return_t
create_default_namespaces(getdns_context *context)
{
	if (!( context->namespaces
	     = GETDNS_XMALLOC(context->my_mf, getdns_namespace_t, 2)))
		return GETDNS_RETURN_MEMORY_ERROR;
	context->namespaces[0] = GETDNS_NAMESPACE_LOCALNAMES;
	context->namespaces[1] = GETDNS_NAMESPACE_DNS;
	context->namespace_count = 2;
	return GETDNS_RETURN_GOOD;
}
static getdns_return_t create_default_namespaces ( getdns_context * context ) { if ( ! ( context -> namespaces = GETDNS_XMALLOC ( context -> my_mf , getdns_namespace_t , 2 ) ) ) return GETDNS_RETURN_MEMORY_ERROR ; context -> namespaces [ 0 ] = GETDNS_NAMESPACE_LOCALNAMES ; context -> namespaces [ 1 ] = GETDNS_NAMESPACE_DNS ; context -> namespace_count = 2 ; return GETDNS_RETURN_GOOD ; }
Helper to get default lookup namespaces.
Helper to get default lookup namespaces .