X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fuci.git;a=blobdiff_plain;f=ucimap.h;h=5804791729475771b015b695dbc43f8e5b75e9c7;hp=a48eb84461a004c4868418cbbbb8b96bebbf4ac0;hb=c203c2f9009a322e5e774ff8cd32bac2fa3b7961;hpb=8aa3b5497c0ad63e8766b02404983b7993dbfd10 diff --git a/ucimap.h b/ucimap.h index a48eb84..5804791 100644 --- a/ucimap.h +++ b/ucimap.h @@ -9,11 +9,11 @@ * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. + * GNU Lesser General Public License for more details. */ /* - * This file contains ucimap, an API for mapping UCI to C data structures + * This file contains ucimap, an API for mapping UCI to C data structures */ #ifndef __UCIMAP_H @@ -93,7 +93,6 @@ #endif /* __GNUC__ */ #define UCIMAP_OPTION(_type, _field) \ - .type = UCIMAP_CUSTOM, \ .name = #_field, \ .offset = offsetof(_type, _field), \ .detected_type = __optmap_gen_type(_type, _field), \ @@ -135,11 +134,11 @@ enum ucimap_type { UCIMAP_TYPE = 0xf0, /* type mask */ /* subtypes */ - UCIMAP_STRING = 0x0, - UCIMAP_BOOL = 0x1, - UCIMAP_INT = 0x2, - UCIMAP_SECTION = 0x3, - UCIMAP_CUSTOM = 0x4, + UCIMAP_CUSTOM = 0x0, + UCIMAP_STRING = 0x1, + UCIMAP_BOOL = 0x2, + UCIMAP_INT = 0x3, + UCIMAP_SECTION = 0x4, UCIMAP_SUBTYPE = 0xf, /* subtype mask */ /* automatically create lists from