"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "dbus/dbus-connection.c" between
dbus-1.13.12.tar.xz and dbus-1.13.14.tar.xz

About: D-Bus is an inter-process communication (IPC) system, allowing multiple, concurrently-running applications to communicate with one another. D-Bus supplies both a system daemon and a per-user-login-session daemon. Development version.

dbus-connection.c  (dbus-1.13.12.tar.xz):dbus-connection.c  (dbus-1.13.14.tar.xz)
skipping to change at line 247 skipping to change at line 247
* Internals of DBusPreallocatedSend * Internals of DBusPreallocatedSend
*/ */
struct DBusPreallocatedSend struct DBusPreallocatedSend
{ {
DBusConnection *connection; /**< Connection we'd send the message to */ DBusConnection *connection; /**< Connection we'd send the message to */
DBusList *queue_link; /**< Preallocated link in the queue */ DBusList *queue_link; /**< Preallocated link in the queue */
DBusList *counter_link; /**< Preallocated link in the resource counter */ DBusList *counter_link; /**< Preallocated link in the resource counter */
}; };
#if HAVE_DECL_MSG_NOSIGNAL #if HAVE_DECL_MSG_NOSIGNAL
static dbus_bool_t _dbus_modify_sigpipe = FALSE; static DBusAtomic _dbus_modify_sigpipe = { FALSE };
#else #else
static dbus_bool_t _dbus_modify_sigpipe = TRUE; static DBusAtomic _dbus_modify_sigpipe = { TRUE };
#endif #endif
/** /**
* Implementation details of DBusConnection. All fields are private. * Implementation details of DBusConnection. All fields are private.
*/ */
struct DBusConnection struct DBusConnection
{ {
DBusAtomic refcount; /**< Reference count. */ DBusAtomic refcount; /**< Reference count. */
DBusRMutex *mutex; /**< Lock on the entire DBusConnection */ DBusRMutex *mutex; /**< Lock on the entire DBusConnection */
skipping to change at line 1326 skipping to change at line 1326
goto error; goto error;
outgoing_counter = _dbus_counter_new (); outgoing_counter = _dbus_counter_new ();
if (outgoing_counter == NULL) if (outgoing_counter == NULL)
goto error; goto error;
objects = _dbus_object_tree_new (connection); objects = _dbus_object_tree_new (connection);
if (objects == NULL) if (objects == NULL)
goto error; goto error;
if (_dbus_modify_sigpipe) if (_dbus_atomic_get (&_dbus_modify_sigpipe) != 0)
_dbus_disable_sigpipe (); _dbus_disable_sigpipe ();
/* initialized to 0: use atomic op to avoid mixing atomic and non-atomic */ /* initialized to 0: use atomic op to avoid mixing atomic and non-atomic */
_dbus_atomic_inc (&connection->refcount); _dbus_atomic_inc (&connection->refcount);
connection->transport = transport; connection->transport = transport;
connection->watches = watch_list; connection->watches = watch_list;
connection->timeouts = timeout_list; connection->timeouts = timeout_list;
connection->pending_replies = pending_replies; connection->pending_replies = pending_replies;
connection->outgoing_counter = outgoing_counter; connection->outgoing_counter = outgoing_counter;
connection->filter_list = NULL; connection->filter_list = NULL;
skipping to change at line 6111 skipping to change at line 6111
/** /**
* This function sets a global flag for whether dbus_connection_new() * This function sets a global flag for whether dbus_connection_new()
* will set SIGPIPE behavior to SIG_IGN. * will set SIGPIPE behavior to SIG_IGN.
* *
* @param will_modify_sigpipe #TRUE to allow sigpipe to be set to SIG_IGN * @param will_modify_sigpipe #TRUE to allow sigpipe to be set to SIG_IGN
*/ */
void void
dbus_connection_set_change_sigpipe (dbus_bool_t will_modify_sigpipe) dbus_connection_set_change_sigpipe (dbus_bool_t will_modify_sigpipe)
{ {
_dbus_modify_sigpipe = will_modify_sigpipe != FALSE; if (will_modify_sigpipe)
_dbus_atomic_set_nonzero (&_dbus_modify_sigpipe);
else
_dbus_atomic_set_zero (&_dbus_modify_sigpipe);
} }
/** /**
* Specifies the maximum size message this connection is allowed to * Specifies the maximum size message this connection is allowed to
* receive. Larger messages will result in disconnecting the * receive. Larger messages will result in disconnecting the
* connection. * connection.
* *
* @param connection a #DBusConnection * @param connection a #DBusConnection
* @param size maximum message size the connection can receive, in bytes * @param size maximum message size the connection can receive, in bytes
*/ */
 End of changes. 4 change blocks. 
4 lines changed or deleted 7 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)