Lines Matching defs:country
57 struct country *country; /* current country */
97 if (mt->country == NULL) {
103 mt->country->rd = (void *)strdup(ref);
157 if (iseq(name, "country") && mt->country == NULL) {
158 mt->country = calloc(1, sizeof(struct country));
159 mt->country->isoname = strdup(id);
160 mt->country->code = NO_COUNTRY;
162 LIST_INSERT_HEAD(&mt->rdp->countries, mt->country, next);
313 /* <country>...</country> */
314 if (iseq(name, "isocc") && mt->country != NULL) {
315 mt->country->code = strtoul(p, NULL, 0);
318 if (iseq(name, "name") && mt->country != NULL) {
319 mt->country->name = strdup(p);
361 /* </country> */
362 if (iseq(name, "country") && mt->country != NULL) {
363 /* XXX NO_COUNTRY should be in the net80211 country enum */
364 if ((int) mt->country->code == NO_COUNTRY) {
365 warnx("no ISO cc for country at line %ld",
368 if (mt->country->name == NULL) {
369 warnx("no name for country at line %ld",
372 if (mt->country->rd == NULL) {
373 warnx("no regdomain reference for country at line %ld",
376 mt->country = NULL;
422 struct country *cp;
479 warnx("undefined country \"%s\"",
553 warnx("undefined country \"%s\"",
602 struct country *cp = LIST_FIRST(&rdp->countries);
707 * Lookup a country by ISO country code.
709 const struct country *
712 const struct country *cp;
722 * Lookup a country by ISO/long name.
724 const struct country *
727 const struct country *cp;