File: fifo.h

package info (click to toggle)
taper 6.9rb-5
  • links: PTS
  • area: main
  • in suites: woody
  • size: 1,444 kB
  • ctags: 1,604
  • sloc: ansic: 15,921; makefile: 248
file content (40 lines) | stat: -rw-r--r-- 1,080 bytes parent folder | download | duplicates (4)
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
34
35
36
37
38
39
40
/* fifo.h */

#ifndef FIFO_H_INCLUDED
#define FIFO_H_INCLUDED


#define FIFO_MAGIC "674m"

#define FIFO_FILE_INFO		1
#define FIFO_END		2
#define FIFO_ERROR		3

#define FIFO_FILE		4
#define FIFO_DISK_FULL		5
#define FIFO_CHILD_OK		6
#define FIFO_NO_CHILD		7
#define FIFO_ERROR_WITH_FILE	8

#define fifo_disk_full (&fifo_disk_full_c)


extern char fifo_disk_full_c;

void fifo_send_file_with_info (FILE *fdfifo, const struct file_info *fi,
	const char *file_name, const char *temp_name);
void fifo_send_end (FILE *fdfifo);
void fifo_send_error (FILE *fdfifo);
int fifo_receive_file_with_info (FILE *fdfifo, struct file_info *fi,
	char **file_name, char **temp_name);

void fifo_send_file (FILE *fdfifo, const char *file_name,
	const char *compressed_name);
void fifo_send_error_with_file (FILE *fdfifo, const char *file_name);
void fifo_send_disk_full (FILE *fdfifo);
void fifo_send_child_ok (FILE *fdfifo);
void fifo_send_no_child (FILE *fdfifo);
int fifo_receive_child_status (FILE *fdfifo);
int fifo_receive_file (FILE *fdfifo, char **file_name, char **compressed_name);

#endif