Lines Matching defs:view
26 #include "services/view.h"
416 /** Iterate through raw view data and apply the view-specific respip
419 * an error. This additional iteration through view configuration data
429 struct view* v;
434 /** if no respip config for this view then there's
443 log_err("view '%s' unexpectedly missing", cv->name);
459 "for view '%s'", cv->name);
887 struct view* view = NULL;
910 if(cinfo->view) {
911 view = cinfo->view;
912 lock_rw_rdlock(&view->lock);
914 view = views_find_view(views, cinfo->view_name, 0);
915 if(!view) {
916 /* If the view no longer exists, the rewrite can not
918 verbose(VERB_ALGO, "respip: failed because view %s no "
922 /* The view is rdlocked by views_find_view. */
927 /** Try to use response-ip config from the view first; use
928 * global response-ip config if we don't have the view or we don't
929 * have the matching per-view config (and the view allows the use
931 * Note that we lock the view even if we only use view members that
933 * future possible changes as the view documentation seems to expect
934 * any of its member can change in the view's lifetime.
935 * Note also that we assume 'view' is valid in this function, which
937 if(view) {
938 if(view->respip_set) {
940 view->respip_set, &rrset_id, &rr_id))) {
941 /** for per-view respip directives the action
946 if(!raddr && !view->isfirst)
948 if(!raddr && view->isfirst) {
949 lock_rw_unlock(&view->lock);
950 view = NULL;
1034 if(view) {
1035 lock_rw_unlock(&view->lock);