Changeset 214 for trunk/include
- Timestamp:
- Feb 17, 2009, 10:54:26 PM (16 years ago)
- Location:
- trunk/include
- Files:
-
- 5 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 -
trunk/include/sh_mail.h
r22 r214 52 52 /* call if not urgent 53 53 */ 54 int sh_mail_pushstack (/*@null@*/char * msg); 55 56 /* call if mail immediate 57 */ 58 int sh_mail_msg (/*@null@*/char * message); 54 int sh_mail_pushstack (int severity, const char * msg, const char * alias); 59 55 60 56 /* set sender of mail -
trunk/include/sh_pthread.h
r170 r214 30 30 31 31 #define SH_MUTEX_LOCK_UNSAFE(M) pthread_mutex_lock(&(M)) 32 #define SH_MUTEX_TRYLOCK_UNSAFE(M) pthread_mutex_trylock(&(M)) 32 33 #define SH_MUTEX_UNLOCK_UNSAFE(M) pthread_mutex_unlock(&(M)) 33 34 … … 140 141 #define SH_MUTEX_UNLOCK(M) ((void)0) 141 142 #define SH_MUTEX_LOCK_UNSAFE(M) ((void)0) 143 #define SH_MUTEX_TRYLOCK_UNSAFE(M) (0) 142 144 #define SH_MUTEX_UNLOCK_UNSAFE(M) ((void)0) 143 145 -
trunk/include/sh_utils.h
r185 r214 40 40 unsigned long data_ulong; 41 41 long data_long; 42 /*@null@*/char*data_str;42 char *data_str; 43 43 } st_format; 44 44 … … 131 131 /* a simple compressor 132 132 */ 133 longsh_util_compress (char * dest, char * src, size_t dest_size);133 size_t sh_util_compress (char * dest, char * src, size_t dest_size); 134 134 135 135 /* an even simpler en-/decoder -
trunk/include/slib.h
r212 r214 203 203 * strstr 204 204 */ 205 c onst char * sl_strstr (const char * haystack, const char * needle);205 char * sl_strstr (const char * haystack, const char * needle); 206 206 207 207 /*
Note:
See TracChangeset
for help on using the changeset viewer.