cdb_read.c File Reference

#include "cdb_read.h"
#include <stdio.h>
#include <stdlib.h>
#include <malloc.h>
#include <string.h>
#include <time.h>
#include "hd.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

void add_current_item ( int  item,
char *  val 
)
static char* add_lname ( int  v,
const char *  str 
) [static]

References add_name(), and stmp.

Referenced by add_current_item().

static char* add_name ( const char *  str,
int  merge 
) [static]
static char* add_name_list ( const char *  str,
const char *  list 
) [static]

References add_name(), and stmp.

Referenced by add_current_item().

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().

static int add_vendor ( char *  v,
int  card 
) [static]
static int compare_card ( cdb_isdn_card c1,
cdb_isdn_card c2 
) [static]

References cdb_isdn_card::name.

Referenced by SortCards().

static int compare_id ( const int *  c1,
const int *  c2 
) [static]
int compare_name ( const int *  c1,
const int *  c2 
)
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().

static int compare_vendor ( cdb_isdn_vendor v1,
cdb_isdn_vendor v2 
) [static]

References cdb_isdn_vendor::name.

Referenced by SortVendors().

void del_vario ( void   ) 
int new_entry ( void   ) 
static int new_vario ( char *  v,
int  c 
) [static]
void SortCards ( void   ) 
void SortVarios ( void   ) 
void SortVendors ( void   ) 

Variable Documentation

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 main(), and WriteCards().

int ce_idx = 0

Referenced by add_current_item(), and new_vario().

Referenced by add_current_item(), and new_vario().

int drvid_cnt

Referenced by add_current_item(), and new_vario().

Referenced by SortCards(), and WriteCards().

int ivendor_idx = 0
int max_ce = MAXCARDS

Referenced by main(), and new_entry().

int max_ivendor = MAXCARDS

Referenced by add_vendor(), and main().

int max_name_str_cnt = MAXNAMECNT

Referenced by add_name(), and main().

int max_vario = MAXVARIO

Referenced by main(), and new_vario().

char* name_str
int name_str_cnt = 0
int not_supported = 0
char sstmp[4096] [static]

Referenced by add_sortedname_list().

char stmp[4096] [static]

Referenced by add_current_item(), and new_vario().

int vario_idx

Referenced by main(), and WriteVarios().

Referenced by main(), and WriteVendors().