libhd 5.0
cdb_read.c File Reference
#include "cdb_read.h"

Functions

static int compare_vendor (cdb_isdn_vendor *v1, cdb_isdn_vendor *v2)
 
static int compare_card (cdb_isdn_card *c1, cdb_isdn_card *c2)
 
int compare_name (const int *c1, const int *c2)
 
static int compare_type (cdb_isdn_vario *v1, cdb_isdn_vario *v2)
 
static int compare_id (const int *c1, const int *c2)
 
static char * add_name (const char *str, int merge)
 
static char * add_lname (int v, const char *str)
 
static char * add_name_list (const char *str, const char *list)
 
static char * add_sortedname_list (const char *str, const char *list, const char *fmt)
 
static int add_vendor (char *v, int card)
 
static int new_vario (char *v, int c)
 
void del_vario (void)
 
int new_entry (void)
 
void add_current_item (int item, char *val)
 
void SortVendors (void)
 
void SortCards (void)
 
void SortVarios (void)
 

Variables

int max_ce = MAXCARDS
 
int ce_idx = 0
 
int max_vario = MAXVARIO
 
int vario_idx
 
int name_str_cnt = 0
 
int max_name_str_cnt = MAXNAMECNT
 
int max_ivendor = MAXCARDS
 
int ivendor_idx = 0
 
char * name_str
 
cdb_isdn_cardcards
 
cdb_isdn_variovarios
 
cdb_isdn_vendorvendors
 
int * isdncard_id
 
int drvid_cnt
 
int drv_subtyp_cnt
 
int drv_typ_cnt
 
int supported_cnt
 
int not_supported = 0
 
static struct _vendorshortnames_t _vendorshortnames []
 
static char stmp [4096]
 
static char sstmp [4096]
 

Function Documentation

◆ add_current_item()

◆ add_lname()

static char * add_lname ( int v,
const char * str )
static

References add_name(), stmp, and vendors.

Referenced by add_current_item().

◆ add_name()

static char * add_name ( const char * str,
int merge )
static

◆ add_name_list()

static char * add_name_list ( const char * str,
const char * list )
static

References add_name(), and stmp.

Referenced by add_current_item().

◆ add_sortedname_list()

static char * add_sortedname_list ( const char * str,
const char * list,
const char * fmt )
static

References add_name(), sstmp, and stmp.

Referenced by add_current_item().

◆ add_vendor()

◆ compare_card()

static int compare_card ( cdb_isdn_card * c1,
cdb_isdn_card * c2 )
static

References cdb_isdn_card::name.

Referenced by SortCards().

◆ compare_id()

static int compare_id ( const int * c1,
const int * c2 )
static

◆ compare_name()

int compare_name ( const int * c1,
const int * c2 )

References cards.

◆ compare_type()

static int compare_type ( cdb_isdn_vario * v1,
cdb_isdn_vario * v2 )
static

References cdb_isdn_vario::subtyp, and cdb_isdn_vario::typ.

Referenced by SortVarios().

◆ compare_vendor()

static int compare_vendor ( cdb_isdn_vendor * v1,
cdb_isdn_vendor * v2 )
static

References cdb_isdn_vendor::name.

Referenced by SortVendors().

◆ del_vario()

◆ new_entry()

◆ new_vario()

◆ SortCards()

◆ SortVarios()

◆ SortVendors()

void SortVendors ( void )

Variable Documentation

◆ _vendorshortnames

struct _vendorshortnames_t _vendorshortnames[]
static
Initial value:
= {
{"AVM Computersysteme Vertriebs GmbH","AVM"},
{"High Soft Tech","HST"},
{"Cologne Chip AG","CC"},
{"Telekom AG","DTAG"},
{"TigerJet","TJET"},
{"ASUSCOM","Asus"},
{"U.S.Robotics","USR"},
{"SGS Thomson Microelectronics","SGST"},
{"Abocom/Magitek","Abocom"},
{NULL,NULL},
}

Referenced by add_vendor().

◆ cards

◆ ce_idx

◆ drv_subtyp_cnt

int drv_subtyp_cnt

Referenced by add_current_item(), and new_vario().

◆ drv_typ_cnt

int drv_typ_cnt

Referenced by add_current_item(), and new_vario().

◆ drvid_cnt

int drvid_cnt

Referenced by add_current_item(), and new_vario().

◆ isdncard_id

int* isdncard_id

Referenced by SortCards(), WriteCards(), and WriteCards().

◆ ivendor_idx

int ivendor_idx = 0

◆ max_ce

int max_ce = MAXCARDS

Referenced by main(), and new_entry().

◆ max_ivendor

int max_ivendor = MAXCARDS

Referenced by add_vendor(), and main().

◆ max_name_str_cnt

int max_name_str_cnt = MAXNAMECNT

Referenced by add_name(), and main().

◆ max_vario

int max_vario = MAXVARIO

Referenced by main(), and new_vario().

◆ name_str

◆ name_str_cnt

int name_str_cnt = 0

◆ not_supported

int not_supported = 0

◆ sstmp

char sstmp[4096]
static

Referenced by add_sortedname_list().

◆ stmp

char stmp[4096]
static

◆ supported_cnt

int supported_cnt

Referenced by add_current_item(), and new_vario().

◆ vario_idx

◆ varios

◆ vendors