00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #ifndef _OPENSYNC_QUEUE_H
00022 #define _OPENSYNC_QUEUE_H
00023
00031
00032
00037 typedef enum {
00038 OSYNC_QUEUE_EVENT_NONE,
00039 OSYNC_QUEUE_EVENT_READ,
00040 OSYNC_QUEUE_EVENT_ERROR,
00041 OSYNC_QUEUE_EVENT_HUP
00042 } OSyncQueueEvent;
00043
00044
00049 typedef enum {
00051 OSYNC_QUEUE_SENDER,
00053 OSYNC_QUEUE_RECEIVER
00054 } OSyncQueueType;
00055
00056
00065 OSYNC_EXPORT OSyncQueue *osync_queue_new(const char *name, OSyncError **error);
00066
00075 OSYNC_EXPORT OSyncQueue *osync_queue_new_from_fd(int fd, OSyncError **error);
00076
00083 OSYNC_EXPORT osync_bool osync_queue_create(OSyncQueue *queue, OSyncError **error);
00084
00094 OSYNC_EXPORT OSyncQueue *osync_queue_ref(OSyncQueue *queue);
00095
00104 OSYNC_EXPORT void osync_queue_unref(OSyncQueue *queue);
00105
00113 OSYNC_EXPORT osync_bool osync_queue_connect(OSyncQueue *queue, OSyncQueueType type, OSyncError **error);
00114
00121 OSYNC_EXPORT osync_bool osync_queue_disconnect(OSyncQueue *queue, OSyncError **error);
00122
00124 #endif
00125