Changeset 31650


Ignore:
Timestamp:
Mar 14, 2017, 9:29:05 AM (7 weeks ago)
Author:
brainslayer
Message:

new method

Location:
src/router
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • src/router/libutils/country.c

    r30155 r31650  
    950950}
    951951
     952char *getCountryByIso(const char *country)
     953{
     954        int i;
     955        for (i = 0; i < N(allCountries); i++) {
     956                if (!strcmp(allCountries[i].isoName, country))
     957                        return allCountries[i].name;
     958        }
     959        return 0;
     960}
     961
    952962extern int getRouterBrand(void);
    953963
  • src/router/shared/wlutils.h

    r31491 r31650  
    270270unsigned int getRegDomain(const char *country);
    271271unsigned int getCountry(const char *country);
     272char *getCountryByIso(const char *iso);
    272273char *getCountryList(void);
    273274
Note: See TracChangeset for help on using the changeset viewer.