- Refactored site specific stuff into a site module - PSI specific stuff is now in the PSI directory. - The old version has been tagged with pre-ansto
20 lines
412 B
C
20 lines
412 B
C
#ifndef TERM_H_
|
|
#define TERM_H_
|
|
|
|
void term_reg_socket(int fd);
|
|
/* register socket */
|
|
|
|
void term_unr_socket(int fd);
|
|
/* unregister socket */
|
|
|
|
int term_raw_key(char *key, int msecTmo);
|
|
|
|
int term_wait_fd(int fd, int msecTmo);
|
|
/* wait for a read event on fd or timeout */
|
|
|
|
int term_get_key(char *key, int msecTmo);
|
|
|
|
int term_get_line(char *buf, int size, int *pos, char *prompt, fd_set *mask);
|
|
|
|
#endif /* TERM_H_ */
|