284937e6b5b0c9d7a1d3382d0d2820d1168842fbPavel Březina Pavel Březina <pbrezina@redhat.com>
284937e6b5b0c9d7a1d3382d0d2820d1168842fbPavel Březina Copyright (C) 2015 Red Hat
284937e6b5b0c9d7a1d3382d0d2820d1168842fbPavel Březina This program is free software; you can redistribute it and/or modify
284937e6b5b0c9d7a1d3382d0d2820d1168842fbPavel Březina it under the terms of the GNU General Public License as published by
284937e6b5b0c9d7a1d3382d0d2820d1168842fbPavel Březina the Free Software Foundation; either version 3 of the License, or
284937e6b5b0c9d7a1d3382d0d2820d1168842fbPavel Březina (at your option) any later version.
284937e6b5b0c9d7a1d3382d0d2820d1168842fbPavel Březina This program is distributed in the hope that it will be useful,
284937e6b5b0c9d7a1d3382d0d2820d1168842fbPavel Březina but WITHOUT ANY WARRANTY; without even the implied warranty of
284937e6b5b0c9d7a1d3382d0d2820d1168842fbPavel Březina MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
284937e6b5b0c9d7a1d3382d0d2820d1168842fbPavel Březina GNU General Public License for more details.
284937e6b5b0c9d7a1d3382d0d2820d1168842fbPavel Březina You should have received a copy of the GNU General Public License
284937e6b5b0c9d7a1d3382d0d2820d1168842fbPavel Březina along with this program. If not, see <http://www.gnu.org/licenses/>.
cbee11e912bb391ba254b0bac8c1159c1f634533Michal Židek#define SSS_TOOL_COMMAND_FLAGS(cmd, msg, err, fn, flags) \
cbee11e912bb391ba254b0bac8c1159c1f634533Michal Židek#define SSS_TOOL_COMMAND_NOMSG(cmd, err, fn) {cmd, NULL, err, fn, 0}
cbee11e912bb391ba254b0bac8c1159c1f634533Michal Židek#define SSS_TOOL_DELIMITER(message) {"", _(message), 0, NULL, 0}
e98ccef2609811186711b79d8ef5d0a4450ab6e0Pavel Březinaerrno_t sss_tool_route(int argc, const char **argv,
e98ccef2609811186711b79d8ef5d0a4450ab6e0Pavel Březinatypedef errno_t (*sss_popt_fn)(poptContext pc, char option, void *pvt);
e98ccef2609811186711b79d8ef5d0a4450ab6e0Pavel Březinaerrno_t sss_tool_popt_ex(struct sss_cmdline *cmdline,
e98ccef2609811186711b79d8ef5d0a4450ab6e0Pavel Březina const char **_fopt,
e98ccef2609811186711b79d8ef5d0a4450ab6e0Pavel Březinaerrno_t sss_tool_popt(struct sss_cmdline *cmdline,
e98ccef2609811186711b79d8ef5d0a4450ab6e0Pavel Březinaerrno_t sss_tool_parse_name(TALLOC_CTX *mem_ctx,
284937e6b5b0c9d7a1d3382d0d2820d1168842fbPavel Březina#endif /* SRC_TOOLS_COMMON_SSS_TOOLS_H_ */