Mercurial > hg > freeDiameter-dtls
comparison include/freeDiameter/libfdproto.h @ 1186:56c36d1007b4 dtls_dev
Further preparation of the DTLS integration. Some cleanups in the GNUTLS handling.
author | Sebastien Decugis <sdecugis@freediameter.net> |
---|---|
date | Fri, 07 Jun 2013 18:48:34 +0800 |
parents | 5dab72369dff |
children | f40de74bd1c7 |
comparison
equal
deleted
inserted
replaced
1185:23695957bfc0 | 1186:56c36d1007b4 |
---|---|
3181 */ | 3181 */ |
3182 int fd_fifo_timedget_int ( struct fifo * queue, void ** item, const struct timespec *abstime ); | 3182 int fd_fifo_timedget_int ( struct fifo * queue, void ** item, const struct timespec *abstime ); |
3183 #define fd_fifo_timedget(queue, item, abstime) \ | 3183 #define fd_fifo_timedget(queue, item, abstime) \ |
3184 fd_fifo_timedget_int((queue), (void *)(item), (abstime)) | 3184 fd_fifo_timedget_int((queue), (void *)(item), (abstime)) |
3185 | 3185 |
3186 | |
3187 /* | |
3188 * FUNCTION: fd_fifo_select | |
3189 * | |
3190 * PARAMETERS: | |
3191 * queue : The queue to test. | |
3192 * abstime : the absolute time until which we can block waiting for an item. If NULL, the function returns immediatly. | |
3193 * | |
3194 * DESCRIPTION: | |
3195 * This function is similar to select(), it waits for data to be available in the queue | |
3196 * until the abstime is expired. | |
3197 * Upon function entry, even if abstime is already expired the data availability is tested. | |
3198 * | |
3199 * RETURN VALUE: | |
3200 * 0 : timeout expired without available data. | |
3201 * <0 : An error occurred (e.g., -EINVAL...) | |
3202 * >0 : data is available. The next call to fd_fifo_get will not block. | |
3203 */ | |
3204 int fd_fifo_select ( struct fifo * queue, const struct timespec *abstime ); | |
3205 | |
3206 | |
3207 | |
3186 /* Dump a fifo list and optionally its inner elements -- beware of deadlocks! */ | 3208 /* Dump a fifo list and optionally its inner elements -- beware of deadlocks! */ |
3187 typedef DECLARE_FD_DUMP_PROTOTYPE((*fd_fifo_dump_item_cb), void * item); /* This function should be 1 line if possible, or use indent level. Ends with '\n' */ | 3209 typedef DECLARE_FD_DUMP_PROTOTYPE((*fd_fifo_dump_item_cb), void * item); /* This function should be 1 line if possible, or use indent level. Ends with '\n' */ |
3188 DECLARE_FD_DUMP_PROTOTYPE(fd_fifo_dump, char * name, struct fifo * queue, fd_fifo_dump_item_cb dump_item); | 3210 DECLARE_FD_DUMP_PROTOTYPE(fd_fifo_dump, char * name, struct fifo * queue, fd_fifo_dump_item_cb dump_item); |
3189 | 3211 |
3190 #ifdef __cplusplus | 3212 #ifdef __cplusplus |