mirror of
				https://gitlab.labs.nic.cz/labs/bird.git
				synced 2024-05-11 16:54:54 +00:00 
			
		
		
		
	The BIRD client code is restructured that most of the code (including main function) is shared in client.c, while birdc.c and birdcl.c contain just I/O-specific callbacks. This removes all duplicated code from variant-specific files.
		
			
				
	
	
		
			37 lines
		
	
	
		
			661 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			37 lines
		
	
	
		
			661 B
		
	
	
	
		
			C
		
	
	
	
	
	
| /*
 | |
|  *	BIRD Client
 | |
|  *
 | |
|  *	(c) 1999--2000 Martin Mares <mj@ucw.cz>
 | |
|  *
 | |
|  *	Can be freely distributed and used under the terms of the GNU GPL.
 | |
|  */
 | |
| 
 | |
| 
 | |
| extern int init, busy, interactive;
 | |
| extern int term_lns, term_cls;
 | |
| 
 | |
| /* birdc.c / birdcl.c */
 | |
| 
 | |
| void input_start_list(void);
 | |
| void input_stop_list(void);
 | |
| 
 | |
| void input_init(void);
 | |
| void input_notify(int prompt);
 | |
| void input_read(void);
 | |
| 
 | |
| void more_begin(void);
 | |
| void more_end(void);
 | |
| 
 | |
| void cleanup(void);
 | |
| 
 | |
| /* commands.c */
 | |
| 
 | |
| void cmd_build_tree(void);
 | |
| void cmd_help(char *cmd, int len);
 | |
| int cmd_complete(char *cmd, int len, char *buf, int again);
 | |
| char *cmd_expand(char *cmd);
 | |
| 
 | |
| /* client.c */
 | |
| 
 | |
| void submit_command(char *cmd_raw);
 |