Lines Matching defs:bnd
40 static isc_result_t write_binding_scope(FILE *db_file, struct binding *bnd,
54 write_binding_scope(FILE *db_file, struct binding *bnd, char *prepend) {
57 if ((db_file == NULL) || (bnd == NULL) || (prepend == NULL))
60 if (bnd->value->type == binding_data) {
61 if (bnd->value->value.data.data != NULL) {
62 s = quotify_buf(bnd->value->value.data.data,
63 bnd->value->value.data.len, '"', MDL);
67 prepend, bnd->name, s);
75 } else if (bnd->value->type == binding_numeric) {
78 bnd->name, bnd->value->value.intval);
81 } else if (bnd->value->type == binding_boolean) {
83 fprintf(db_file, "%sset %s = %s;", prepend, bnd->name,
84 bnd->value->value.intval ? "true" : "false");
87 } else if (bnd->value->type == binding_dns) {
89 bnd->name);
90 } else if (bnd->value->type == binding_function) {
92 bnd->name);
94 log_fatal("%s: unknown binding type %d", bnd->name,
95 bnd->value->type);
525 struct binding *bnd;
654 bnd = iasubopt->scope->bindings;
656 bnd = NULL;
658 for (; bnd != NULL ; bnd = bnd->next) {
659 if (bnd->value == NULL)
665 if (write_binding_scope(db_file, bnd,