Lines Matching refs:spec
71 typedef struct spec {
94 spec_t *spec = &catalog->specs[catalog->nspec];
119 * Set up individual spec entry
121 memset(spec, 0, sizeof(spec_t));
124 spec->type = SELABEL_DB_DATABASE;
126 spec->type = SELABEL_DB_SCHEMA;
128 spec->type = SELABEL_DB_TABLE;
130 spec->type = SELABEL_DB_COLUMN;
132 spec->type = SELABEL_DB_SEQUENCE;
134 spec->type = SELABEL_DB_VIEW;
136 spec->type = SELABEL_DB_PROCEDURE;
138 spec->type = SELABEL_DB_BLOB;
140 spec->type = SELABEL_DB_TUPLE;
142 spec->type = SELABEL_DB_LANGUAGE;
144 spec->type = SELABEL_DB_EXCEPTION;
146 spec->type = SELABEL_DB_DATATYPE;
155 spec->key = key;
156 spec->lr.ctx_raw = context;
178 spec_t *spec;
182 spec = &catalog->specs[i];
183 free(spec->key);
184 free(spec->lr.ctx_raw);
185 free(spec->lr.ctx_trans);
197 spec_t *spec;
201 spec = &catalog->specs[i];
203 if (spec->type != type)
205 if (!fnmatch(spec->key, key, 0)) {
206 spec->matches++;
208 return &spec->lr;
320 spec_t *spec = &catalog->specs[i];
322 free(spec->key);
323 free(spec->lr.ctx_raw);
324 free(spec->lr.ctx_trans);