diff options
Diffstat (limited to 'buf_misc.c')
-rw-r--r-- | buf_misc.c | 47 |
1 files changed, 44 insertions, 3 deletions
@@ -1,6 +1,7 @@ #include "buf_misc.h" -int bbuf_line_new(bbuf_line *buf, char sep, int size) +/* +int bbuf_line_new(bbuf_line *buf, int size) { bbuf *newbuf=NULL; bbuf_line *bline=NULL; @@ -19,7 +20,6 @@ int bbuf_line_new(bbuf_line *buf, char sep, int size) } memset(bline, 0, sizeof(bbuf_line)); - bline->sep = 0x0; bline->buf = newbuf; @@ -28,6 +28,10 @@ int bbuf_line_new(bbuf_line *buf, char sep, int size) return 0; } +int bbuf_line_pattern(bbuf_line *buf, char *patt, int size) +{ + return -1; +} int bbuf_line_add(bbuf_line *buf_line, bbuf *new_data) { @@ -49,6 +53,43 @@ int bbuf_line_free(bbuf_line *buf) return -1; } +*/ + +BufLine::BufLine(int size) +{ + *buf = Buf(size); + sep=0x0; + memset(pattern,0,BUF_PATTER_SIZE); +} + +BufLine::~BufLine() +{ + delete buf; +} + +int BufLine::set_pattern(char *pattern) +{ + return -1; +} + + +int BufLine::add(char *string, int size) +{ + return -1; +} + +int BufLine::add(Buf *newdata) +{ + buf->concat(newdata); + return -1; +} + +int BufLine::pop_line(char **val, int *size) +{ + return -1; +} + +/* int bbuf_circ_new(bbuf_circ **circ, int size) { bbuf *buf = NULL; @@ -188,4 +229,4 @@ int bbuf_circ_free(bbuf_circ *circ) free(circ); circ = NULL; } - +*/
\ No newline at end of file |