File: backend.h

package info (click to toggle)
dnprogs 2.52
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 3,644 kB
  • ctags: 4,021
  • sloc: ansic: 26,737; cpp: 10,666; makefile: 832; sh: 537; awk: 13
file content (33 lines) | stat: -rw-r--r-- 815 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
struct fd_list
{
    int  in_fd;
    int  out_fd;
    char *remote_name;
};


struct callback_routines
{
    void (*new_caller)(int, int, char *, fd_callback);
    void (*delete_caller)(int);
    void (*show_error)(int, char *);
    void (*write_text)(char *, char*);
    void (*hold)(int, char *);
    void (*answer)(int, int);
    int  (*get_fds)(struct fd_list *);
    void (*lost_server)(void);
    void (*open_display_window)(char *);
    void (*display_line)(char *);
    void (*quit)(void);
};


void  register_callbacks(struct callback_routines *new_cr);
void  do_command(char *cmd);
void  send_data(int fd, char *text, int len);
char *get_local_name(void);
void  close_connection(int);
void  send_hold(int held, int fd);
void  localsock_callback(int fd);
int   init_backend(void);
void  cancel_dial(void);