openbmc/build/tmp/deploy/sdk/witherspoon-2019-08-08/sysroots/armv6-openbmc-linux-gnueabi/usr/src/debug/dbus/1.12.16-r0/dbus-1.12.16/dbus/dbus-sysdeps-unix.c
dbus_bool_t _dbus_lookup_session_address(dbus_bool_t* supported,
                                         DBusString* address, DBusError* error)
{
#ifdef DBUS_ENABLE_LAUNCHD
    *supported = TRUE;
    return _dbus_lookup_session_address_launchd(address, error);
#else
    *supported = FALSE;

    if (!_dbus_lookup_user_bus(supported, address, error))
        return FALSE;
    else if (*supported)
        return TRUE;

    /* On non-Mac Unix platforms, if the session address isn't already
     * set in DBUS_SESSION_BUS_ADDRESS environment variable and the
     * $XDG_RUNTIME_DIR/bus can't be used, we punt and fall back to the
     * autolaunch: global default; see init_session_address in
     * dbus/dbus-bus.c. */
    return TRUE;
#endif
}
/**
 * Determines the address of the session bus by querying a
 * platform-specific method.
 *
 * The first parameter will be a boolean specifying whether
 * or not a dynamic session lookup is supported on this platform.
 *
 * If supported is TRUE and the return value is #TRUE, the
 * address will be  appended to @p address.
 * If a failure happens, returns #FALSE and sets an error in
 * @p error.
 *
 * If supported is FALSE, ignore the return value.
 *
 * @param supported returns whether this method is supported
 * @param address a DBusString where the address can be stored
 * @param error a DBusError to store the error in case of failure
 * @returns #TRUE on success, #FALSE if an error happened
 */
Determines the address of the session bus by querying a
platform-specific method.

The first parameter will be a boolean specifying whether
or not a dynamic session lookup is supported on this platform.

If supported is TRUE and the return value is #TRUE, the
address will be  appended to @p address.
If a failure happens, returns #FALSE and sets an error in
@p error.

If supported is FALSE, ignore the return value.

@param supported returns whether this method is supported
@param address a DBusString where the address can be stored
@param error a DBusError to store the error in case of failure
@returns #TRUE on success, #FALSE if an error happened
Determines the address of the session bus by querying a platform - specific method . The first parameter will be a boolean specifying whether or not a dynamic session lookup is supported on this platform . If supported is TRUE and the return value is #TRUE the address will be appended to @p address . If a failure happens returns #FALSE and sets an error in @p error . If supported is FALSE ignore the return value . @param supported returns whether this method is supported @param address a DBusString where the address can be stored @param error a DBusError to store the error in case of failure @returns #TRUE on success #FALSE if an error happened
dbus_bool_t _dbus_lookup_session_address(dbus_bool_t* supported,
                                         DBusString* address, DBusError* error)
{
#ifdef DBUS_ENABLE_LAUNCHD
    *supported = TRUE;
    return _dbus_lookup_session_address_launchd(address, error);
#else
    *supported = FALSE;
    if (!_dbus_lookup_user_bus(supported, address, error))
        return FALSE;
    else if (*supported)
        return TRUE;
    return TRUE;
#endif
}
dbus_bool_t _dbus_lookup_session_address ( dbus_bool_t * supported , DBusString * address , DBusError * error ) { #ifdef DBUS_ENABLE_LAUNCHD * supported = TRUE ; return _dbus_lookup_session_address_launchd ( address , error ) ; #else * supported = FALSE ; if ( ! _dbus_lookup_user_bus ( supported , address , error ) ) return FALSE ; else if ( * supported ) return TRUE ; return TRUE ; #endif }
Determines the address of the session bus by querying a
 platform-specific method.
Determines the address of the session bus by querying a platform - specific method .
/* On non-Mac Unix platforms, if the session address isn't already
     * set in DBUS_SESSION_BUS_ADDRESS environment variable and the
     * $XDG_RUNTIME_DIR/bus can't be used, we punt and fall back to the
     * autolaunch: global default; see init_session_address in
     * dbus/dbus-bus.c. */