91cf6f4c6069d6aff01aab171825e83a1a669e2fPavel Březina Pavel Březina <pbrezina@redhat.com>
91cf6f4c6069d6aff01aab171825e83a1a669e2fPavel Březina Copyright (C) 2014 Red Hat
91cf6f4c6069d6aff01aab171825e83a1a669e2fPavel Březina This program is free software; you can redistribute it and/or modify
91cf6f4c6069d6aff01aab171825e83a1a669e2fPavel Březina it under the terms of the GNU General Public License as published by
91cf6f4c6069d6aff01aab171825e83a1a669e2fPavel Březina the Free Software Foundation; either version 3 of the License, or
91cf6f4c6069d6aff01aab171825e83a1a669e2fPavel Březina (at your option) any later version.
91cf6f4c6069d6aff01aab171825e83a1a669e2fPavel Březina This program is distributed in the hope that it will be useful,
91cf6f4c6069d6aff01aab171825e83a1a669e2fPavel Březina but WITHOUT ANY WARRANTY; without even the implied warranty of
91cf6f4c6069d6aff01aab171825e83a1a669e2fPavel Březina MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
91cf6f4c6069d6aff01aab171825e83a1a669e2fPavel Březina GNU General Public License for more details.
91cf6f4c6069d6aff01aab171825e83a1a669e2fPavel Březina You should have received a copy of the GNU General Public License
91cf6f4c6069d6aff01aab171825e83a1a669e2fPavel Březina along with this program. If not, see <http://www.gnu.org/licenses/>.
91cf6f4c6069d6aff01aab171825e83a1a669e2fPavel Březinastatic sss_sifp_error sss_sifp_ifp_call(sss_sifp_ctx *ctx,
2a45f13e3139063d3a5842119e7377c8c98aea1dPavel Březina if (object_path == NULL || interface == NULL || method == NULL) {
2a45f13e3139063d3a5842119e7377c8c98aea1dPavel Březina msg = sss_sifp_create_message(object_path, interface, method);
de5160e354c02020f0593c7cabdb811107d5d8e2Pavel Březina bret = dbus_message_append_args_valist(msg, first_arg_type, ap);
91cf6f4c6069d6aff01aab171825e83a1a669e2fPavel Březina ret = sss_sifp_send_message(ctx, msg, _reply);
91cf6f4c6069d6aff01aab171825e83a1a669e2fPavel Březinasss_sifp_create_message(const char *object_path,
2a45f13e3139063d3a5842119e7377c8c98aea1dPavel Březina return dbus_message_new_method_call(SSS_SIFP_ADDRESS, object_path,
91cf6f4c6069d6aff01aab171825e83a1a669e2fPavel Březina return sss_sifp_send_message_ex(ctx, msg, 5000, _reply);
91cf6f4c6069d6aff01aab171825e83a1a669e2fPavel Březina reply = dbus_connection_send_with_reply_and_block(ctx->conn, msg,
91cf6f4c6069d6aff01aab171825e83a1a669e2fPavel Březina if (ctx == NULL || method == NULL || _object_paths == NULL) {
91cf6f4c6069d6aff01aab171825e83a1a669e2fPavel Březina dbus_method = sss_sifp_strcat(ctx, "List", method);
2a45f13e3139063d3a5842119e7377c8c98aea1dPavel Březina ret = sss_sifp_ifp_call(ctx, object_path, interface, dbus_method,
91cf6f4c6069d6aff01aab171825e83a1a669e2fPavel Březina ret = sss_sifp_parse_object_path_list(ctx, reply, _object_paths);
2a45f13e3139063d3a5842119e7377c8c98aea1dPavel Březina ret = sss_sifp_invoke_list_va(ctx, object_path, interface, method,
2a45f13e3139063d3a5842119e7377c8c98aea1dPavel Březina ret = sss_sifp_invoke_list_ex(ctx, SSS_SIFP_PATH, SSS_SIFP_IFACE, method,
91cf6f4c6069d6aff01aab171825e83a1a669e2fPavel Březina if (ctx == NULL || method == NULL || _object_path == NULL) {
91cf6f4c6069d6aff01aab171825e83a1a669e2fPavel Březina dbus_method = sss_sifp_strcat(ctx, "Find", method);
2a45f13e3139063d3a5842119e7377c8c98aea1dPavel Březina ret = sss_sifp_ifp_call(ctx, object_path, interface, dbus_method,
91cf6f4c6069d6aff01aab171825e83a1a669e2fPavel Březina ret = sss_sifp_parse_object_path(ctx, reply, _object_path);
2a45f13e3139063d3a5842119e7377c8c98aea1dPavel Březina ret = sss_sifp_invoke_find_va(ctx, object_path, interface, method,