3e5e98aae4b14f5447c561ff5b0d854b74046312Pavel Březina/*
3e5e98aae4b14f5447c561ff5b0d854b74046312Pavel Březina Authors:
3e5e98aae4b14f5447c561ff5b0d854b74046312Pavel Březina Pavel Březina <pbrezina@redhat.com>
3e5e98aae4b14f5447c561ff5b0d854b74046312Pavel Březina
3e5e98aae4b14f5447c561ff5b0d854b74046312Pavel Březina Copyright (C) 2016 Red Hat
3e5e98aae4b14f5447c561ff5b0d854b74046312Pavel Březina
3e5e98aae4b14f5447c561ff5b0d854b74046312Pavel Březina This program is free software; you can redistribute it and/or modify
3e5e98aae4b14f5447c561ff5b0d854b74046312Pavel Březina it under the terms of the GNU General Public License as published by
3e5e98aae4b14f5447c561ff5b0d854b74046312Pavel Březina the Free Software Foundation; either version 3 of the License, or
3e5e98aae4b14f5447c561ff5b0d854b74046312Pavel Březina (at your option) any later version.
3e5e98aae4b14f5447c561ff5b0d854b74046312Pavel Březina
3e5e98aae4b14f5447c561ff5b0d854b74046312Pavel Březina This program is distributed in the hope that it will be useful,
3e5e98aae4b14f5447c561ff5b0d854b74046312Pavel Březina but WITHOUT ANY WARRANTY; without even the implied warranty of
3e5e98aae4b14f5447c561ff5b0d854b74046312Pavel Březina MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
3e5e98aae4b14f5447c561ff5b0d854b74046312Pavel Březina GNU General Public License for more details.
3e5e98aae4b14f5447c561ff5b0d854b74046312Pavel Březina
3e5e98aae4b14f5447c561ff5b0d854b74046312Pavel Březina You should have received a copy of the GNU General Public License
3e5e98aae4b14f5447c561ff5b0d854b74046312Pavel Březina along with this program. If not, see <http://www.gnu.org/licenses/>.
3e5e98aae4b14f5447c561ff5b0d854b74046312Pavel Březina*/
3e5e98aae4b14f5447c561ff5b0d854b74046312Pavel Březina
3e5e98aae4b14f5447c561ff5b0d854b74046312Pavel Březina#ifndef _MOCK_DP_H_
3e5e98aae4b14f5447c561ff5b0d854b74046312Pavel Březina#define _MOCK_DP_H_
3e5e98aae4b14f5447c561ff5b0d854b74046312Pavel Březina
3e5e98aae4b14f5447c561ff5b0d854b74046312Pavel Březina#include <talloc.h>
3e5e98aae4b14f5447c561ff5b0d854b74046312Pavel Březina
3e5e98aae4b14f5447c561ff5b0d854b74046312Pavel Březina#include "providers/backend.h"
3e5e98aae4b14f5447c561ff5b0d854b74046312Pavel Březina#include "providers/data_provider/dp_private.h"
3e5e98aae4b14f5447c561ff5b0d854b74046312Pavel Březina
3e5e98aae4b14f5447c561ff5b0d854b74046312Pavel Březinastruct data_provider *mock_dp(TALLOC_CTX *mem_ctx,
3e5e98aae4b14f5447c561ff5b0d854b74046312Pavel Březina struct be_ctx *be_ctx);
3e5e98aae4b14f5447c561ff5b0d854b74046312Pavel Březina
3e5e98aae4b14f5447c561ff5b0d854b74046312Pavel Březinastruct dp_method *mock_dp_get_methods(struct data_provider *provider,
3e5e98aae4b14f5447c561ff5b0d854b74046312Pavel Březina enum dp_targets target);
3e5e98aae4b14f5447c561ff5b0d854b74046312Pavel Březina
62370340092503baeaf6587d7ffe4fe25bd9582dPavel Reichlstruct dp_req_params *mock_dp_req_params(TALLOC_CTX *mem_ctx,
62370340092503baeaf6587d7ffe4fe25bd9582dPavel Reichl struct tevent_context *ev,
62370340092503baeaf6587d7ffe4fe25bd9582dPavel Reichl struct be_ctx *be_ctx,
62370340092503baeaf6587d7ffe4fe25bd9582dPavel Reichl struct sss_domain_info *domain,
62370340092503baeaf6587d7ffe4fe25bd9582dPavel Reichl enum dp_targets target,
62370340092503baeaf6587d7ffe4fe25bd9582dPavel Reichl enum dp_methods method);
62370340092503baeaf6587d7ffe4fe25bd9582dPavel Reichl
3e5e98aae4b14f5447c561ff5b0d854b74046312Pavel Březina#endif /* _MOCK_DP_H_ */