Changeset 214 for trunk/include/sh_fifo.h
- Timestamp:
- Feb 17, 2009, 10:54:26 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/sh_fifo.h
r1 r214 10 10 *****************************************************/ 11 11 12 #define SH_FIFO_MAX 1 2812 #define SH_FIFO_MAX 16384 13 13 14 14 /***************************************************** … … 21 21 struct dlist * next; 22 22 char * data; 23 char * s_xtra; 24 int i_xtra; 25 int transact; 23 26 struct dlist * prev; 24 27 }; … … 47 50 * Returns: -1 if the list is full, 0 on success 48 51 */ 49 int push_list (SH_FIFO * fifo, char * indat );52 int push_list (SH_FIFO * fifo, char * indat, int in_i, const char * in_str); 50 53 51 54 /* Push an item on the tail of the list. … … 53 56 * Returns: -1 if the list is full, 0 on success 54 57 */ 55 int push_tail_list (SH_FIFO * fifo, char * indat );58 int push_tail_list (SH_FIFO * fifo, char * indat, int in_i, const char * in_str); 56 59 57 60 /* pop an item from the tail of the list … … 62 65 char * pop_list (SH_FIFO * fifo); 63 66 67 68 sh_string * tag_list (SH_FIFO * fifo, char * tag, 69 int(*check)(int, const char*, const char*, const void*), 70 const void * info); 71 void rollback_list (SH_FIFO * fifo); 72 void mark_list (SH_FIFO * fifo); 73 void reset_list (SH_FIFO * fifo); 74 int commit_list (SH_FIFO * fifo); 75 64 76 #endif
Note:
See TracChangeset
for help on using the changeset viewer.