fixes and stuff

This commit is contained in:
TLINDEN
2014-02-15 17:39:51 +01:00
parent cf8402aec0
commit 1342fa2b45
5 changed files with 33 additions and 13 deletions

View File

@@ -8,7 +8,6 @@ extern "C" {
#include "pcp/config.h"
#include "pcp/base85.h"
#include "pcp/buffer.h"
#include "pcp/config.h"
#include "pcp/crypto.h"
#include "pcp/defines.h"
#include "pcp/digital_crc32.h"

View File

@@ -34,6 +34,7 @@
#ifndef HAVE_PCP_PCPSTEAM_H
#define HAVE_PCP_PCPSTEAM_H
#include <stdarg.h>
#include <stdio.h>
#include "mem.h"
#include "util.h"
@@ -74,9 +75,15 @@ size_t ps_read(Pcpstream *stream, void *buf, size_t readbytes);
sets eof and err respectively as ps_read() does. */
size_t ps_write(Pcpstream *stream, void *buf, size_t writebytes);
/* use fprintf() style format string to print something out */
size_t ps_print(Pcpstream *stream, const char * fmt, ...);
/* return the current read or write offset */
size_t ps_tell(Pcpstream *stream);
/* return a pointer to the internal buffer object */
Buffer *ps_buffer(Pcpstream *stream);
/* closes the stream and frees allocated memory, if present */
void ps_close(Pcpstream *stream);