Mercurial > hg > th-libs
comparison th_ioctx.h @ 208:3635415a2d03
More work on th_ioctx stuff and wrappers.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Fri, 12 Feb 2016 02:49:21 +0200 |
parents | 55f429dff750 |
children | 462b837ea492 |
comparison
equal
deleted
inserted
replaced
207:75dbac8f2f59 | 208:3635415a2d03 |
---|---|
55 BOOL (*feof)(th_ioctx *ctx); | 55 BOOL (*feof)(th_ioctx *ctx); |
56 int (*fgetc)(th_ioctx *ctx); | 56 int (*fgetc)(th_ioctx *ctx); |
57 int (*fputc)(int, th_ioctx *ctx); | 57 int (*fputc)(int, th_ioctx *ctx); |
58 size_t (*fread)(void *ptr, const size_t, const size_t, th_ioctx *ctx); | 58 size_t (*fread)(void *ptr, const size_t, const size_t, th_ioctx *ctx); |
59 size_t (*fwrite)(const void *ptr, const size_t, const size_t, th_ioctx *ctx); | 59 size_t (*fwrite)(const void *ptr, const size_t, const size_t, th_ioctx *ctx); |
60 int (*vfprintf)(th_ioctx *ctx, const char *format, va_list ap); | 60 |
61 char * (*fgets)(char *str, int size, th_ioctx *ctx); | |
62 int (*fputs)(const char *str, th_ioctx *ctx); | |
63 int (*vfprintf)(th_ioctx *ctx, const char *fmt, va_list ap); | |
61 | 64 |
62 } th_ioctx_ops; | 65 } th_ioctx_ops; |
63 | 66 |
64 | 67 |
65 // | 68 // |
100 int thfgetc(th_ioctx *ctx); | 103 int thfgetc(th_ioctx *ctx); |
101 int thfputc(int ch, th_ioctx *ctx); | 104 int thfputc(int ch, th_ioctx *ctx); |
102 size_t thfread(void *ptr, const size_t, const size_t, th_ioctx *ctx); | 105 size_t thfread(void *ptr, const size_t, const size_t, th_ioctx *ctx); |
103 size_t thfwrite(const void *, const size_t, const size_t, th_ioctx *ctx); | 106 size_t thfwrite(const void *, const size_t, const size_t, th_ioctx *ctx); |
104 char * thfgets(char *ptr, int size, th_ioctx *ctx); | 107 char * thfgets(char *ptr, int size, th_ioctx *ctx); |
105 | 108 int thfputs(const char *ptr, th_ioctx *ctx); |
106 int thvfprintf(th_ioctx *ctx, const char *fmt, va_list ap); | 109 int thvfprintf(th_ioctx *ctx, const char *fmt, va_list ap); |
107 int thfprintf(th_ioctx *ctx, const char *fmt, ...); | 110 int thfprintf(th_ioctx *ctx, const char *fmt, ...); |
108 | 111 |
109 int thfread_str(th_ioctx *ctx, void *ptr, const size_t len); | 112 int thfread_str(th_ioctx *ctx, void *ptr, const size_t len); |
110 BOOL thfread_byte(th_ioctx *ctx, uint8_t *); | 113 BOOL thfread_byte(th_ioctx *ctx, uint8_t *); |