cidbcast.c File Reference

Go to the source code of this file.

Classes

struct  CID_Info
struct  phonebook_entry

Functions

int checkfor_cid_info (char *buffer, int len, CID_Info *cid_info)
int checkfor_two_rings (char *buffer, int len)
void read_phonebook (const char *filename)
void match_in_phonebook (CID_Info *cid_info)
int ipaddr_to_int (const char *stringIP, unsigned int *ip)
char * get_tail (char *string)
char * replace (char *in_string, char *out_string, char *key_string, char *replace_string)
int open_modem ()
int issue_modem_cmd (int fd, char *cmd_string)
int waitfor_ring (int fd, char *wait_string, CID_Info *cid_info)
char * extract_cid_field (char *buffer, int len, char *field_name, int *field_len)
int getNum (char *dest, int dsize, const char *src, int ssize)
int close_modem (int fd)
int init_modem (int *fd)
void print_help (char *progname)
int main (int argc, char *argv[])

Variables

phonebook_entryphonebook = NULL
int phonebook_size = 0
int verbose = 0
char xml_filename [255]
char bcast_addr [16]
int bcast_addr_hex = -1
char serial_port [16]
int udp_port
char modem_init_string [255]


Function Documentation

int checkfor_cid_info ( char *  buffer,
int  len,
CID_Info cid_info 
)

Definition at line 449 of file cidbcast.c.

Referenced by waitfor_ring().

int checkfor_two_rings ( char *  buffer,
int  len 
)

Definition at line 334 of file cidbcast.c.

Referenced by waitfor_ring().

void read_phonebook ( const char *  filename  ) 

Definition at line 46 of file cidbcast.c.

Referenced by main().

void match_in_phonebook ( CID_Info cid_info  ) 

Definition at line 78 of file cidbcast.c.

Referenced by main().

int ipaddr_to_int ( const char *  stringIP,
unsigned int *  ip 
)

Definition at line 100 of file cidbcast.c.

Referenced by main(), and setup_snd_socket().

char* get_tail ( char *  string  ) 

Definition at line 117 of file cidbcast.c.

Referenced by main(), and wv_get_value().

char* replace ( char *  in_string,
char *  out_string,
char *  key_string,
char *  replace_string 
)

int open_modem (  ) 

Definition at line 180 of file cidbcast.c.

Referenced by init_modem().

int issue_modem_cmd ( int  fd,
char *  cmd_string 
)

Definition at line 207 of file cidbcast.c.

Referenced by init_modem().

int waitfor_ring ( int  fd,
char *  wait_string,
CID_Info cid_info 
)

Definition at line 251 of file cidbcast.c.

Referenced by main().

char* extract_cid_field ( char *  buffer,
int  len,
char *  field_name,
int *  field_len 
)

Definition at line 369 of file cidbcast.c.

Referenced by checkfor_cid_info().

int getNum ( char *  dest,
int  dsize,
const char *  src,
int  ssize 
)

Definition at line 409 of file cidbcast.c.

Referenced by checkfor_cid_info().

int close_modem ( int  fd  ) 

Definition at line 597 of file cidbcast.c.

Referenced by main().

int init_modem ( int *  fd  ) 

Definition at line 605 of file cidbcast.c.

Referenced by main().

void print_help ( char *  progname  ) 

Definition at line 639 of file cidbcast.c.

Referenced by main().

int main ( int  argc,
char *  argv[] 
)

Definition at line 657 of file cidbcast.c.


Variable Documentation

Definition at line 43 of file cidbcast.c.

int phonebook_size = 0

Definition at line 44 of file cidbcast.c.

Referenced by match_in_phonebook(), and read_phonebook().

int verbose = 0

Definition at line 92 of file cidbcast.c.

char xml_filename[255]

Definition at line 93 of file cidbcast.c.

Referenced by main().

char bcast_addr[16]

Definition at line 94 of file cidbcast.c.

Referenced by main().

int bcast_addr_hex = -1

Definition at line 95 of file cidbcast.c.

Referenced by main().

char serial_port[16]

Definition at line 96 of file cidbcast.c.

Referenced by main(), and open_modem().

int udp_port

Definition at line 97 of file cidbcast.c.

Referenced by SipNotify::Display(), main(), TV::SetupPlayer(), and udp_open().

char modem_init_string[255]

Definition at line 98 of file cidbcast.c.

Referenced by init_modem(), and main().


Generated on Sat Dec 18 05:15:51 2010 for MythTV by  doxygen 1.5.5