Lines Matching refs:block
56 static struct block *Global = NULL;
61 struct block *config_parse(FILE *);
92 /* Creates a new, empty block, with the specified type (see BLOCK_* macros).
94 struct block *
97 struct block *b;
99 b = (struct block *) calloc(1, sizeof(struct block));
108 /* Frees a block created with block_new. All data contained inside the block
111 block_free(struct block *b)
128 /* Adds a property to a block. */
130 block_add_prop(struct block *b, struct prop *p)
137 errx(EXIT_FAILURE, "too many properties for current block");
146 /* Adds a child (block) to a block. */
148 block_add_child(struct block *b, struct block *c)
155 errx(EXIT_FAILURE, "too many childs for current block");
165 /* Get the value of a property in the specified block (or in its parents).
168 block_get_propval(struct block *b, const char *pname, char *def)
187 /* Get the value of a property in the specified block converting it to an
189 * block, all its parents are tried. If after all not found (or conversion
192 block_get_propval_int(struct block *b, const char *pname, int def)
220 /* Gets a mode block (childs of the global scope), which matches the
222 struct block *
226 struct block *b;