src/siri/db/servers.c
/*
 * Returns 1 (true) if all servers are online, 0 (false)
 * if at least one server is not online. ('this' server is NOT included)
 *
 * Server is 'online' when at least running and authenticated but not
 * queue-full
 */
Returns 1 (true) if all servers are online, 0 (false)
if at least one server is not online. ('this' server is NOT included)

Server is 'online' when at least running and authenticated but not
queue-full
Returns 1 ( true ) if all servers are online 0 ( false ) if at least one server is not online . ( ' this ' server is NOT included ) Server is ' online ' when at least running and authenticated but not queue - full
int siridb_servers_online(siridb_t * siridb)
{
    llist_node_t * node = siridb->servers->first;
    siridb_server_t * server;
    while (node != NULL)
    {
        server = (siridb_server_t *) node->data;
        if (siridb->server != server && !siridb_server_is_online(server))
        {
            return 0;
        }
    }
    return 1;
}
int siridb_servers_online ( siridb_t * siridb ) { llist_node_t * node = siridb -> servers -> first ; siridb_server_t * server ; while ( node != NULL ) { server = ( siridb_server_t * ) node -> data ; if ( siridb -> server != server && ! siridb_server_is_online ( server ) ) { return 0 ; } } return 1 ; }
Returns 1 (true) if all servers are online, 0 (false)
 if at least one server is not online.
Returns 1 ( true ) if all servers are online 0 ( false ) if at least one server is not online .