56 lines
1.6 KiB
C
56 lines
1.6 KiB
C
/* $Id: country.h,v 1.3 1999/06/15 20:05:02 akool Exp $
|
|
*
|
|
* Länderdatenbank
|
|
*
|
|
* Copyright 1999 by Michael Reinelt (reinelt@eunet.at)
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License as published by
|
|
* the Free Software Foundation; either version 2, or (at your option)
|
|
* any later version.
|
|
*
|
|
* 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.
|
|
*
|
|
* You should have received a copy of the GNU General Public License
|
|
* along with this program; if not, write to the Free Software
|
|
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
|
*
|
|
* $Log: country.h,v $
|
|
* Revision 1.3 1999/06/15 20:05:02 akool
|
|
* isdnlog Version 3.33
|
|
* - big step in using the new zone files
|
|
* - *This*is*not*a*production*ready*isdnlog*!!
|
|
* - Maybe the last release before the I4L meeting in Nuernberg
|
|
*
|
|
* Revision 1.2 1999/06/03 18:51:19 akool
|
|
* isdnlog Version 3.30
|
|
* - rate-de.dat V:1.02-Germany [03-Jun-1999 19:49:22]
|
|
* - small fixes
|
|
*
|
|
* Revision 1.1 1999/05/27 18:19:58 akool
|
|
* first release of the new country decoding module
|
|
*
|
|
*
|
|
*/
|
|
|
|
#ifndef _COUNTRY_H_
|
|
#define _COUNTRY_H_
|
|
|
|
typedef struct {
|
|
char *Name;
|
|
char **Alias;
|
|
int nAlias;
|
|
char **Code;
|
|
int nCode;
|
|
} COUNTRY;
|
|
|
|
int initCountry (char *path, char **msg);
|
|
void exitCountry (void);
|
|
int getCountry (char *name, COUNTRY **country);
|
|
int getCountrycode (char *number, char **name);
|
|
|
|
#endif
|