added openzap queue stuff, still missing implementation

git-svn-id: http://svn.openzap.org/svn/openzap/branches/sangoma_boost@858 a93c3328-9c30-0410-af19-c9cd2b2d52af
This commit is contained in:
Moises Silva committed 2009-11-13 20:48:06 +00:00
1 parent 890cba5ba1
commit 19a706877b
6 files changed
+94 -24

No files matched your search

+16 -1
View File
@@ -577,7 +577,6 @@ struct zap_span {
struct zap_span *next;
};
OZ_DECLARE_DATA extern zap_logger_t zap_log;
struct zap_io_interface {
@@ -598,6 +597,22 @@ struct zap_io_interface {
zio_api_t api;
};
typedef void* zap_queue_t;
/*! brief create a new queue */
OZ_DECLARE(zap_queue_t) zap_queue_create(void);
/*! Enqueue an object */
OZ_DECLARE(zap_status_t) zap_queue_enqueue(zap_queue_t queue, void *obj);
/*! dequeue an object from the queue */
OZ_DECLARE(void *) zap_queue_dequeue(zap_queue_t queue);
/*! wait ms milliseconds for a queue to have available objects, -1 to wait forever */
OZ_DECLARE(zap_status_t) zap_queue_wait(zap_queue_t queue, int ms);
/*! destroy the queue */
OZ_DECLARE(void) zap_queue_destroy(zap_queue_t *queue);
OZ_DECLARE(zap_size_t) zap_fsk_modulator_generate_bit(zap_fsk_modulator_t *fsk_trans, int8_t bit, int16_t *buf, zap_size_t buflen);
OZ_DECLARE(int32_t) zap_fsk_modulator_generate_carrier_bits(zap_fsk_modulator_t *fsk_trans, uint32_t bits);