libtld 1.2.0
|
00001 /* TLD library -- TLD, domain name, and sub-domain extraction 00002 * Copyright (C) 2011 Made to Order Software Corp. 00003 * 00004 * This program is free software; you can redistribute it and/or modify 00005 * it under the terms of the GNU General Public License as published by 00006 * the Free Software Foundation; either version 2 of the License, or 00007 * (at your option) any later version. 00008 * 00009 * This program is distributed in the hope that it will be useful, 00010 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00011 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00012 * GNU General Public License for more details. 00013 * 00014 * You should have received a copy of the GNU General Public License 00015 * along with this program; if not, write to the Free Software 00016 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 00017 */ 00018 #ifndef LIB_TLD_DATA_H 00019 #define LIB_TLD_DATA_H 00020 00021 struct tld_description 00022 { 00023 unsigned char f_category; /* one of the enum tld_category */ 00024 unsigned char f_status; /* one of the enum tld_status */ 00025 unsigned short f_start_offset; /* may be USHRT_MAX */ 00026 unsigned short f_end_offset; /* may be USHRT_MAX */ 00027 unsigned short f_exception_apply_to; /* defined only if f_status is TLD_STATUS_EXCEPTION */ 00028 unsigned char f_exception_level; /* level when jumping to "apply to" */ 00029 const char * f_tld; /* the concerned TLD part without periods */ 00030 const char * f_country; /* may be NULL */ 00031 }; 00032 00033 // from the tld_data.c file 00034 extern const struct tld_description tld_descriptions[]; 00035 extern unsigned short tld_start_offset; 00036 extern unsigned short tld_end_offset; 00037 extern int tld_max_level; 00038 00039 #endif 00040 //#ifndef LIB_TLD_DATA_H 00041 // vim: ts=4 sw=4
This document is part of the libtld Project.
Copyright by Made to Order Software Corp.