File nut/dev/chat.c


Included Files


Global Variable chat_report

u_char* chat_report
Visible in:   nut/dev/chat.c
Used in: NutChatExpectString() nut/dev/chat.c
  NutChatSend() nut/dev/chat.c

Global Function NutChat()

int NutChat ( int fd, const char* script )
Prototyped in: nut/include/dev/chat.h
Calls: NutChatProc() nut/dev/chat.c
  free(), malloc(), strcpy(), strlen()

Global Function NutChatCreate()

NUTCHAT* NutChatCreate ( int fd )
Prototyped in: nut/include/dev/chat.h
Calls: malloc(), memset()
Called by: NutChatProc() nut/dev/chat.c

Global Function NutChatDestroy()

void NutChatDestroy ( NUTCHAT* ci )
Prototyped in: nut/include/dev/chat.h
Calls: free()
Called by: NutChatProc() nut/dev/chat.c

Global Function NutChatExpect()

int NutChatExpect ( NUTCHAT* ci, char* str )
Prototyped in: nut/include/dev/chat.h
Calls: NutChatExpectString() nut/dev/chat.c
  NutChatSendString() nut/dev/chat.c
  strechr() nut/dev/chat.c
  strcmp()
Called by: NutChatProc() nut/dev/chat.c

Global Function NutChatExpectString()

int NutChatExpectString ( NUTCHAT* ci, char* str )
Prototyped in: nut/include/dev/chat.h
Calls: _read()
Called by: NutChatExpect() nut/dev/chat.c
References Variables: chat_report nut/dev/chat.c

Global Function NutChatSend()

int NutChatSend ( NUTCHAT* ci, char* str )
Prototyped in: nut/include/dev/chat.h
Calls: NutChatSendString() nut/dev/chat.c
  _ioctl(), atol(), malloc(), strlen()
Called by: NutChatProc() nut/dev/chat.c
References Variables: chat_report nut/dev/chat.c

Global Function NutChat_P()

int NutChat_P ( int fd, const prog_char* script )
Prototyped in: nut/include/dev/chat.h
Calls: NutChatProc() nut/dev/chat.c
  free(), malloc(), strcpy_P(), strlen_P()

Local Function NutChatProc()

static int NutChatProc ( int fd, char* script )
Calls: NutChatCreate() nut/dev/chat.c
  NutChatDestroy() nut/dev/chat.c
  NutChatExpect() nut/dev/chat.c
  NutChatSend() nut/dev/chat.c
  _ioctl()
Called by: NutChat() nut/dev/chat.c
  NutChat_P() nut/dev/chat.c

Local Function NutChatSendString()

static int NutChatSendString ( int fd, char* str )
Calls: NutSleep() nut/os/timer.c
  NutDelay(), _read(), _write()
Called by: NutChatExpect() nut/dev/chat.c
  NutChatSend() nut/dev/chat.c

Local Function strechr()

static char* strechr ( const char* str, int c )
Called by: NutChatExpect() nut/dev/chat.c