sss_sifp_attrs.c revision efa6c1f75c4c18bcc148d6e7efd429c2d56499ad
/*
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 <string.h>
#include "lib/sifp/sss_sifp.h"
#include "lib/sifp/sss_sifp_private.h"
\
return SSS_SIFP_ATTR_MISSING; \
} \
\
return SSS_SIFP_INCORRECT_TYPE; \
} \
\
return SSS_SIFP_ATTR_NULL; \
} \
\
} while (0)
\
return SSS_SIFP_ATTR_MISSING; \
} \
\
return SSS_SIFP_INCORRECT_TYPE; \
} \
\
return SSS_SIFP_ATTR_NULL; \
} \
\
} while (0)
const char *name)
{
int i;
return NULL;
}
return attrs[i];
}
}
return NULL;
}
const char *name,
bool *_value)
{
return SSS_SIFP_OK;
}
const char *name,
{
return SSS_SIFP_OK;
}
const char *name,
{
return SSS_SIFP_OK;
}
const char *name,
{
return SSS_SIFP_OK;
}
const char *name,
{
return SSS_SIFP_OK;
}
const char *name,
{
return SSS_SIFP_OK;
}
const char *name,
{
return SSS_SIFP_OK;
}
const char *name,
const char **_value)
{
return SSS_SIFP_ATTR_NULL;
}
return SSS_SIFP_OK;
}
const char *name,
{
return SSS_SIFP_ATTR_MISSING;
}
return SSS_SIFP_INCORRECT_TYPE;
}
return SSS_SIFP_ATTR_NULL;
}
return SSS_SIFP_OK;
}
/**
* @brief Find attribute in list and return its values.
*
* @param[in] attrs Attributes
* @param[in] name Name of the attribute to find
*
* @return Attribute values or NULL if it is not found.
*/
const char *name,
unsigned int *_num_values,
bool **_value)
{
*_num_values, *_value);
return SSS_SIFP_OK;
}
const char *name,
unsigned int *_num_values,
{
*_num_values, *_value);
return SSS_SIFP_OK;
}
const char *name,
unsigned int *_num_values,
{
*_num_values, *_value);
return SSS_SIFP_OK;
}
const char *name,
unsigned int *_num_values,
{
*_num_values, *_value);
return SSS_SIFP_OK;
}
const char *name,
unsigned int *_num_values,
{
*_num_values, *_value);
return SSS_SIFP_OK;
}
const char *name,
unsigned int *_num_values,
{
*_num_values, *_value);
return SSS_SIFP_OK;
}
const char *name,
unsigned int *_num_values,
{
*_num_values, *_value);
return SSS_SIFP_OK;
}
const char *name,
unsigned int *_num_values,
const char * const **_value)
{
char **value;
*_num_values, value);
return SSS_SIFP_OK;
}