/*
Authors:
Pavel Březina <pbrezina@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 <stdlib.h>
#include <string.h>
#include "lib/sifp/sss_sifp.h"
#include "lib/sifp/sss_sifp_dbus.h"
#include "lib/sifp/sss_sifp_private.h"
{
}
{
}
const char *method)
{
}
{
}
sss_sifp_ctx **_ctx)
{
return SSS_SIFP_INVALID_ARGUMENT;
}
goto done;
}
goto done;
}
if (dbus_error_is_set(&dbus_error)) {
goto done;
}
ret = SSS_SIFP_OK;
done:
if (ret != SSS_SIFP_OK) {
sss_sifp_free(&ctx);
}
return ret;
}
const char *
{
return "Invalid sss_sifp context";
}
return NULL;
}
}
const char *
{
return "Invalid sss_sifp context";
}
return NULL;
}
}
const char *
{
switch (error) {
case SSS_SIFP_OK:
return "Success";
case SSS_SIFP_OUT_OF_MEMORY:
return "Out of memory";
return "Invalid argument";
case SSS_SIFP_IO_ERROR:
return "Communication error";
case SSS_SIFP_INTERNAL_ERROR:
return "Internal error";
case SSS_SIFP_NOT_SUPPORTED:
return "Not supported";
case SSS_SIFP_ATTR_MISSING:
return "Attribute does not exist";
case SSS_SIFP_ATTR_NULL:
return "Attribute does not have any value set";
case SSS_SIFP_INCORRECT_TYPE:
return "Incorrect type";
case SSS_SIFP_ERROR_SENTINEL:
return "Invalid error code";
}
return "Invalid error code";
}
const char *object_path,
const char *interface,
const char *name,
sss_sifp_attr ***_attrs)
{
return SSS_SIFP_INVALID_ARGUMENT;
}
/* Message format:
* In: string:interface
* In: string:attribute
* Out: variant(misc:value)
*/
goto done;
}
if (!bret) {
goto done;
}
if (ret != SSS_SIFP_OK) {
goto done;
}
done:
}
}
return ret;
}
const char *object_path,
const char *interface,
sss_sifp_attr ***_attrs)
{
return SSS_SIFP_INVALID_ARGUMENT;
}
goto done;
}
if (!bret) {
goto done;
}
if (ret != SSS_SIFP_OK) {
goto done;
}
done:
}
}
return ret;
}
const char *object_path,
const char *interface,
{
return SSS_SIFP_INVALID_ARGUMENT;
}
if (ret != SSS_SIFP_OK) {
goto done;
}
if (ret != SSS_SIFP_OK) {
goto done;
}
goto done;
}
goto done;
}
goto done;
}
goto done;
}
ret = SSS_SIFP_OK;
done:
if (ret != SSS_SIFP_OK) {
}
return ret;
}
void
{
return;
}
}
}
return;
}
void
sss_sifp_attr ***_attrs)
{
unsigned int i, j;
return;
}
case SSS_SIFP_ATTR_TYPE_BOOL:
break;
case SSS_SIFP_ATTR_TYPE_INT16:
break;
break;
case SSS_SIFP_ATTR_TYPE_INT32:
break;
break;
case SSS_SIFP_ATTR_TYPE_INT64:
break;
break;
for (j = 0; j < attrs[i]->num_values; j++) {
}
break;
}
break;
}
}
}
void
{
return;
}
}
void
char **_str)
{
return;
}
}
void
char ***_str_array)
{
int i;
return;
}
str_array = *_str_array;
}
*_str_array = NULL;
}