Changeset 1405 for pjproject/trunk/pjlib/src/pj/fifobuf.c
- Timestamp:
- Jul 20, 2007 8:08:30 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjlib/src/pj/fifobuf.c
r1235 r1405 26 26 #define SZ sizeof(unsigned) 27 27 28 PJ_DEF(void) 29 pj_fifobuf_init (pj_fifobuf_t *fifobuf, void *buffer, unsigned size) 28 PJ_DEF(void) pj_fifobuf_init (pj_fifobuf_t *fifobuf, void *buffer, unsigned size) 30 29 { 31 30 PJ_CHECK_STACK(); … … 41 40 } 42 41 43 PJ_DEF(unsigned) 44 pj_fifobuf_max_size (pj_fifobuf_t *fifobuf) 42 PJ_DEF(unsigned) pj_fifobuf_max_size (pj_fifobuf_t *fifobuf) 45 43 { 46 44 unsigned s1, s2; … … 58 56 } 59 57 60 PJ_DEF(void*) 61 pj_fifobuf_alloc (pj_fifobuf_t *fifobuf, unsigned size) 58 PJ_DEF(void*) pj_fifobuf_alloc (pj_fifobuf_t *fifobuf, unsigned size) 62 59 { 63 60 unsigned available; … … 116 113 } 117 114 118 PJ_DEF(pj_status_t) 119 pj_fifobuf_unalloc (pj_fifobuf_t *fifobuf, void *buf) 115 PJ_DEF(pj_status_t) pj_fifobuf_unalloc (pj_fifobuf_t *fifobuf, void *buf) 120 116 { 121 117 char *ptr = (char*)buf; … … 147 143 } 148 144 149 PJ_DEF(pj_status_t) 150 pj_fifobuf_free (pj_fifobuf_t *fifobuf, void *buf) 145 PJ_DEF(pj_status_t) pj_fifobuf_free (pj_fifobuf_t *fifobuf, void *buf) 151 146 { 152 147 char *ptr = (char*)buf;
Note: See TracChangeset
for help on using the changeset viewer.