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()
155 data->spec_arr = malloc(sizeof(spec_t)*data->nspec); in init()
156 if (data->spec_arr == NULL) in init()
158 memset(data->spec_arr, 0, sizeof(spec_t)*data->nspec); in init()
182 struct spec *spec, *spec_arr = data->spec_arr; in close() local
186 spec = &spec_arr[i]; in close()
192 if (spec_arr) in close()
193 free(spec_arr); in close()
202 spec_t *spec_arr = data->spec_arr; in lookup() local
206 if (spec_arr[i].type != type) in lookup()
208 if (!fnmatch(spec_arr[i].key, key, 0)) in lookup()
218 spec_arr[i].matches++; in lookup()
219 return &spec_arr[i].lr; in lookup()
228 total += data->spec_arr[i].matches; in stats()