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/bus/config-parser.c
dbus_bool_t bus_config_parser_get_watched_dirs(BusConfigParser* parser,
                                               DBusList** watched_dirs)
{
    DBusList* link;

    _dbus_assert(*watched_dirs == NULL);

    for (link = _dbus_list_get_first_link(&parser->conf_dirs); link != NULL;
         link = _dbus_list_get_next_link(&parser->conf_dirs, link))
    {
        if (!_dbus_list_append(watched_dirs, link->data))
            goto oom;
    }

    for (link = _dbus_list_get_first_link(&parser->service_dirs); link != NULL;
         link = _dbus_list_get_next_link(&parser->service_dirs, link))
    {
        BusConfigServiceDir* dir = link->data;

        if (dir->flags & BUS_SERVICE_DIR_FLAGS_NO_WATCH)
            continue;

        if (!_dbus_list_append(watched_dirs, dir->path))
            goto oom;
    }

    return TRUE;

oom:
    _dbus_list_clear(watched_dirs);
    return FALSE;
}
/*
 * Return a list of the directories that should be watched with inotify,
 * as strings. The list might be empty and is in arbitrary order.
 *
 * The list must be empty on entry. On success, the links are owned by the
 * caller and must be freed, but the data in each link remains owned by
 * the BusConfigParser and must not be freed: in GObject-Introspection
 * notation, it is (transfer container).
 */
Return a list of the directories that should be watched with inotify,
as strings. The list might be empty and is in arbitrary order.

The list must be empty on entry. On success, the links are owned by the
caller and must be freed, but the data in each link remains owned by
the BusConfigParser and must not be freed: in GObject-Introspection
notation, it is (transfer container).
Return a list of the directories that should be watched with inotify as strings . The list might be empty and is in arbitrary order . The list must be empty on entry . On success the links are owned by the caller and must be freed but the data in each link remains owned by the BusConfigParser and must not be freed : in GObject - Introspection notation it is ( transfer container ) .
dbus_bool_t bus_config_parser_get_watched_dirs(BusConfigParser* parser,
                                               DBusList** watched_dirs)
{
    DBusList* link;
    _dbus_assert(*watched_dirs == NULL);
    for (link = _dbus_list_get_first_link(&parser->conf_dirs); link != NULL;
         link = _dbus_list_get_next_link(&parser->conf_dirs, link))
    {
        if (!_dbus_list_append(watched_dirs, link->data))
            goto oom;
    }
    for (link = _dbus_list_get_first_link(&parser->service_dirs); link != NULL;
         link = _dbus_list_get_next_link(&parser->service_dirs, link))
    {
        BusConfigServiceDir* dir = link->data;
        if (dir->flags & BUS_SERVICE_DIR_FLAGS_NO_WATCH)
            continue;
        if (!_dbus_list_append(watched_dirs, dir->path))
            goto oom;
    }
    return TRUE;
oom:
    _dbus_list_clear(watched_dirs);
    return FALSE;
}
dbus_bool_t bus_config_parser_get_watched_dirs ( BusConfigParser * parser , DBusList * * watched_dirs ) { DBusList * link ; _dbus_assert ( * watched_dirs == NULL ) ; for ( link = _dbus_list_get_first_link ( & parser -> conf_dirs ) ; link != NULL ; link = _dbus_list_get_next_link ( & parser -> conf_dirs , link ) ) { if ( ! _dbus_list_append ( watched_dirs , link -> data ) ) goto oom ; } for ( link = _dbus_list_get_first_link ( & parser -> service_dirs ) ; link != NULL ; link = _dbus_list_get_next_link ( & parser -> service_dirs , link ) ) { BusConfigServiceDir * dir = link -> data ; if ( dir -> flags & BUS_SERVICE_DIR_FLAGS_NO_WATCH ) continue ; if ( ! _dbus_list_append ( watched_dirs , dir -> path ) ) goto oom ; } return TRUE ; oom : _dbus_list_clear ( watched_dirs ) ; return FALSE ; }
Return a list of the directories that should be watched with inotify,
 as strings.
Return a list of the directories that should be watched with inotify as strings .