netatalk  4.6.0
Free and Open Source Apple Filing Protocol (AFP) Server
Loading...
Searching...
No Matches
hqx.h
Go to the documentation of this file.
1#ifndef _HQX_H
2#define _HQX_H 1
3
4/* Forward Declarations */
5struct FHeader;
6
7int skip_junk(int line);
8int hqx_open(char *hqxfile, int flags, struct FHeader *fh, int options);
9int hqx_close(int keepflag);
10const char *hqx_path(void);
11ssize_t hqx_read(int fork, char *buffer, size_t length);
12ssize_t hqx_write(int fork, char *buffer, size_t length);
13int hqx_header_read(struct FHeader *fh);
14int hqx_header_write(struct FHeader *fh);
15size_t hqx_7tobin(char *outbuf, size_t datalen);
16ssize_t hqx7_fill(unsigned char *hqx7_ptr);
17
18#endif /* _HQX_H */
int hqx_header_write(struct FHeader *fh)
Encode and write a BinHex header.
Definition hqx.c:598
ssize_t hqx_read(int fork, char *buffer, size_t length)
Read decoded data from a BinHex fork.
Definition hqx.c:394
ssize_t hqx7_fill(unsigned char *hqx7_ptr)
Fill the BinHex text input buffer.
Definition hqx.c:679
int hqx_close(int keepflag)
Close the active BinHex file.
Definition hqx.c:335
int skip_junk(int line)
Skip non-BinHex text until encoded data is found.
Definition hqx.c:756
const char * hqx_path(void)
Definition hqx.c:373
int hqx_header_read(struct FHeader *fh)
Read and validate a BinHex header.
Definition hqx.c:471
int hqx_open(char *hqxfile, int flags, struct FHeader *fh, int options)
Open a BinHex file for reading or writing.
Definition hqx.c:242
size_t hqx_7tobin(char *outbuf, size_t datalen)
Decode BinHex text data to binary.
Definition hqx.c:867
ssize_t hqx_write(int fork, char *buffer, size_t length)
Definition hqx.c:638
char buffer[MAXPATHLEN+2]
Definition netacnv.c:35
Definition megatron.h:59