Lines Matching refs:opt
58 static int validate_one_option( const SPUOptions *opt,
63 switch (opt->type) {
74 CRASSERT(opt->numValues == 1); /* an enum limitation for now */
92 * Make sure the response matches the opt's parameters (right number
96 static int validate_option( const SPUOptions *opt, const char *response )
98 const char *min = opt->min;
99 const char *max = opt->max;
103 if (opt->type == CR_STRING)
106 CRASSERT(opt->numValues > 0);
109 if (opt->numValues > 1) {
127 if (!validate_one_option( opt, response, min, max ))
132 if (++i == opt->numValues)
172 SPUOptions *opt = &options[i];
173 opt->cb( spu, opt->deflt );
185 const SPUOptions *opt;
189 for (opt = options; opt->option; opt++) {
190 if (crStrcmp(opt->option, optName) == 0) {
194 CRASSERT(opt->type == CR_ENUM);
198 values = crStrSplit(opt->min, ",");