void valvulad_run_add_object_resolver ( ValvuladCtx ctx,
ValvuladObjectResolver  resolver,
axlPointer  data 
)

Allows to add an object resolver handler, a function that provides support to valvula engine to resolve and identify if a domain, account or alias is local to current server.

Parameters
ctxThe context where the operation happens.
resolverA handler called every time it is required to resolver a object (check if it is a domain, alias or account).
dataReference to user defined data.

Function does nothing if ctx or resolver references are NULL.

References _ValvuladCtx::object_resolvers, valvula_mutex_lock(), valvula_mutex_unlock(), and valvulad_run_remove_object_resolver().