Lines Matching refs:spec_arr
32 spec_t *spec_arr; member
64 data->spec_arr[data->nspec].type = SELABEL_X_PROP; in process_line()
66 data->spec_arr[data->nspec].type = SELABEL_X_EXT; in process_line()
68 data->spec_arr[data->nspec].type = SELABEL_X_CLIENT; in process_line()
70 data->spec_arr[data->nspec].type = SELABEL_X_EVENT; in process_line()
72 data->spec_arr[data->nspec].type = SELABEL_X_SELN; in process_line()
74 data->spec_arr[data->nspec].type = SELABEL_X_POLYPROP; in process_line()
76 data->spec_arr[data->nspec].type = SELABEL_X_POLYSELN; in process_line()
83 data->spec_arr[data->nspec].key = key; in process_line()
84 data->spec_arr[data->nspec].lr.ctx_raw = context; in process_line()
156 data->spec_arr = malloc(sizeof(spec_t)*data->nspec); in init()
157 if (data->spec_arr == NULL) in init()
159 memset(data->spec_arr, 0, sizeof(spec_t)*data->nspec); in init()
183 struct spec *spec, *spec_arr = data->spec_arr; in close() local
187 spec = &spec_arr[i]; in close()
193 if (spec_arr) in close()
194 free(spec_arr); in close()
203 spec_t *spec_arr = data->spec_arr; in lookup() local
207 if (spec_arr[i].type != type) in lookup()
209 if (!fnmatch(spec_arr[i].key, key, 0)) in lookup()
219 spec_arr[i].matches++; in lookup()
220 return &spec_arr[i].lr; in lookup()
229 total += data->spec_arr[i].matches; in stats()