Ticket #1190: fix_osplugin_plugin_queue.diff
| File fix_osplugin_plugin_queue.diff, 3.0 KB (added by prahal, 3 years ago) |
|---|
-
svn/libopensync/opensync/ipc/opensync_queue_internals.h
101 101 * @param reply_queue The queue used to send replies 102 102 * 103 103 */ 104 OSYNC_TEST_EXPORT void osync_queue_cross_link(OSyncQueue *cmd_queue, OSyncQueue *reply_queue);104 //OSYNC_TEST_EXPORT void osync_queue_cross_link(OSyncQueue *cmd_queue, OSyncQueue *reply_queue); 105 105 106 106 /** 107 107 * @brief Remove cross links between command queues and reply queues … … 112 112 * @param queue The queue to unlink 113 113 * 114 114 */ 115 OSYNC_TEST_EXPORT void osync_queue_remove_cross_link(OSyncQueue *queue);115 //OSYNC_TEST_EXPORT void osync_queue_remove_cross_link(OSyncQueue *queue); 116 116 117 117 /** 118 118 * @brief Set pending limit on queue -
svn/libopensync/opensync/ipc/opensync_queue.h
120 120 */ 121 121 OSYNC_EXPORT osync_bool osync_queue_disconnect(OSyncQueue *queue, OSyncError **error); 122 122 123 /** 124 * @brief Cross links command queue and reply queue 125 * 126 * Stores the queue used for replies in the command queue object so 127 * that timeout responses can be sent if necessary. 128 * And stores the command queue in the reply queue object so that 129 * replies can remove pending messages before they time out. 130 * 131 * @param cmd_queue The command queue used to receive incoming commands 132 * @param reply_queue The queue used to send replies 133 * 134 */ 135 OSYNC_EXPORT void osync_queue_cross_link(OSyncQueue *cmd_queue, OSyncQueue *reply_queue); 136 137 /** 138 * @brief Remove cross links between command queues and reply queues 139 * 140 * Removes the cross-links from this queue and all queues linked 141 * from it, recursively 142 * 143 * @param queue The queue to unlink 144 * 145 */ 146 OSYNC_EXPORT void osync_queue_remove_cross_link(OSyncQueue *queue); 147 123 148 /*@}*/ 124 149 #endif /* _OPENSYNC_QUEUE_H */ 125 150 -
svn/libopensync/opensync/client/osplugin.c
22 22 #include "opensync_internals.h" 23 23 24 24 #include "opensync-ipc.h" 25 25 26 #include "opensync-client.h" 27 #include "opensync_client_internals.h" 28 #include "opensync_client_private.h" 26 29 27 30 static void usage (int ecode) 28 31 { … … 103 106 if (!osync_client_set_outgoing_queue(client, outgoing, &error)) 104 107 goto error; 105 108 109 osync_queue_cross_link(client->incoming, client->outgoing); 106 110 osync_queue_unref(outgoing); 107 111 } else { 108 112 /* Create connection pipes **/ … … 120 124 if (!osync_client_set_incoming_queue(client, incoming, &error)) 121 125 goto error; 122 126 127 osync_queue_cross_link(client->incoming, client->outgoing); 123 128 osync_queue_unref(incoming); 124 129 } 125 130
