sssd_dbus_properties.c revision 1319e71fd1680ca4864afe0b1aca2b8c8e4a1ee4
/*
Authors:
Stef Walter <stefw@redhat.com>
Copyright (C) 2014 Red Hat
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "sbus/sssd_dbus.h"
#include "sbus/sssd_dbus_meta.h"
#include "sbus/sssd_dbus_private.h"
static int
struct sbus_interface *intf,
{
const char *signature;
const struct sbus_interface_meta *meta;
const struct sbus_property_meta *property;
const char *interface_name;
const char *property_name;
const char *type;
struct sbus_request *req;
if (!req)
return ENOMEM;
return sbus_request_fail_and_finish(req,
"Invalid argument types passed " \
"to Set method"));
}
return sbus_request_fail_and_finish(req,
"No such interface"));
}
return sbus_request_fail_and_finish(req,
"No such property"));
}
return sbus_request_fail_and_finish(req,
"Property is not writable"));
}
return sbus_request_fail_and_finish(req,
"Invalid data type for property"));
}
if (!handler_fn) {
return sbus_request_fail_and_finish(req,
"Not implemented"));
}
return EOK;
}
{
const char *member;
/* Set is handled a lot like a method invocation */
}
return ERR_SBUS_NOSUP;
}