Ticket #1190: fix_osplugin_plugin_queue_v2.diff
| File fix_osplugin_plugin_queue_v2.diff, 3.0 KB (added by dgollub, 3 years ago) |
|---|
-
opensync/ipc/opensync_queue_internals.h
90 90 OSYNC_TEST_EXPORT void osync_queue_set_message_handler(OSyncQueue *queue, OSyncMessageHandler handler, gpointer user_data); 91 91 92 92 /** 93 * @brief Cross links command queue and reply queue94 *95 * Stores the queue used for replies in the command queue object so96 * that timeout responses can be sent if necessary.97 * And stores the command queue in the reply queue object so that98 * replies can remove pending messages before they time out.99 *100 * @param cmd_queue The command queue used to receive incoming commands101 * @param reply_queue The queue used to send replies102 *103 */104 OSYNC_TEST_EXPORT void osync_queue_cross_link(OSyncQueue *cmd_queue, OSyncQueue *reply_queue);105 106 /**107 93 * @brief Remove cross links between command queues and reply queues 108 94 * 109 95 * Removes the cross-links from this queue and all queues linked -
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 123 137 /*@}*/ 124 138 #endif /* _OPENSYNC_QUEUE_H */ 125 139 -
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" 26 28 27 29 static void usage (int ecode) 28 30 { … … 99 101 if (!osync_client_set_incoming_queue(client, incoming, &error)) 100 102 goto error; 101 103 102 osync_queue_unref(incoming);103 104 if (!osync_client_set_outgoing_queue(client, outgoing, &error)) 104 105 goto error; 105 106 107 osync_queue_cross_link(incoming, outgoing); 108 109 osync_queue_unref(incoming); 106 110 osync_queue_unref(outgoing); 107 111 } else { 108 112 /* Create connection pipes **/ -
opensync.sym
654 654 osync_plugin_unref 655 655 osync_queue_connect 656 656 osync_queue_create 657 osync_queue_cross_link 657 658 osync_queue_disconnect 658 659 osync_queue_new 659 660 osync_queue_new_from_fd
