mirror of
https://github.com/stefanocasazza/ULib.git
synced 2025-09-28 19:05:55 +08:00
28 lines
421 B
C
28 lines
421 B
C
/* pushback.h - header for pushback.c */
|
|
|
|
#ifndef pushback_H
|
|
#define pushback_H 1
|
|
|
|
struct pb_file {
|
|
unsigned buff_amt;
|
|
ub1 pb_buff[RDSZ];
|
|
int fd;
|
|
ub1* next;
|
|
};
|
|
|
|
typedef struct pb_file pb_file;
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
U_EXPORT int pb_push(pb_file*, void*, int);
|
|
U_EXPORT int pb_read(pb_file*, void*, int);
|
|
U_EXPORT void pb_init(pb_file*, int fd, ub1* data);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif
|