Ignore:
Timestamp:
Feb 17, 2009, 10:54:26 PM (16 years ago)
Author:
katerina
Message:

Rewrite mail subsystem for more flexibility (closes ticket #141).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/sh_fifo.h

    r1 r214  
    1010 *****************************************************/
    1111
    12 #define SH_FIFO_MAX 128
     12#define SH_FIFO_MAX 16384
    1313
    1414/*****************************************************
     
    2121  struct dlist * next;
    2222  char         * data;
     23  char         * s_xtra;
     24  int            i_xtra;
     25  int            transact;
    2326  struct dlist * prev;
    2427};
     
    4750 * Returns: -1 if the list is full, 0 on success
    4851 */
    49 int push_list (SH_FIFO * fifo, char * indat);
     52int push_list (SH_FIFO * fifo, char * indat, int in_i, const char * in_str);
    5053
    5154/* Push an item on the tail of the list.
     
    5356 * Returns: -1 if the list is full, 0 on success
    5457 */
    55 int push_tail_list (SH_FIFO * fifo, char * indat);
     58int push_tail_list (SH_FIFO * fifo, char * indat, int in_i, const char * in_str);
    5659
    5760/* pop an item from the tail of the list
     
    6265char * pop_list (SH_FIFO * fifo);
    6366
     67
     68sh_string * tag_list (SH_FIFO * fifo, char * tag,
     69                      int(*check)(int, const char*, const char*, const void*),
     70                      const void * info);
     71void rollback_list (SH_FIFO * fifo);
     72void mark_list (SH_FIFO * fifo);
     73void reset_list (SH_FIFO * fifo);
     74int commit_list (SH_FIFO * fifo);
     75
    6476#endif
Note: See TracChangeset for help on using the changeset viewer.