586fa3571753ab4a607d40fc31503fc0e8effd70Pavel Březina Pavel Březina <pbrezina@redhat.com>
586fa3571753ab4a607d40fc31503fc0e8effd70Pavel Březina Copyright (C) 2016 Red Hat
586fa3571753ab4a607d40fc31503fc0e8effd70Pavel Březina This program is free software; you can redistribute it and/or modify
586fa3571753ab4a607d40fc31503fc0e8effd70Pavel Březina it under the terms of the GNU General Public License as published by
586fa3571753ab4a607d40fc31503fc0e8effd70Pavel Březina the Free Software Foundation; either version 3 of the License, or
586fa3571753ab4a607d40fc31503fc0e8effd70Pavel Březina (at your option) any later version.
586fa3571753ab4a607d40fc31503fc0e8effd70Pavel Březina This program is distributed in the hope that it will be useful,
586fa3571753ab4a607d40fc31503fc0e8effd70Pavel Březina but WITHOUT ANY WARRANTY; without even the implied warranty of
586fa3571753ab4a607d40fc31503fc0e8effd70Pavel Březina MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
586fa3571753ab4a607d40fc31503fc0e8effd70Pavel Březina GNU General Public License for more details.
586fa3571753ab4a607d40fc31503fc0e8effd70Pavel Březina You should have received a copy of the GNU General Public License
586fa3571753ab4a607d40fc31503fc0e8effd70Pavel Březina along with this program. If not, see <http://www.gnu.org/licenses/>.
586fa3571753ab4a607d40fc31503fc0e8effd70Pavel Březina#include "providers/data_provider/dp_private.h"
586fa3571753ab4a607d40fc31503fc0e8effd70Pavel Březinaerrno_t dp_backend_is_online(struct sbus_request *sbus_req,
586fa3571753ab4a607d40fc31503fc0e8effd70Pavel Březina domain = find_domain_by_name(be_ctx->domain, domname, false);
a06e23c0bcf0c8669a29b801876aca8aac422931Pavel Březina sbus_request_reply_error(sbus_req, SBUS_ERROR_UNKNOWN_DOMAIN,