/*
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"
\
ret = SSS_SIFP_ATTR_MISSING; \
break; \
} \
\
break; \
} \
\
ret = SSS_SIFP_ATTR_NULL; \
break; \
} \
\
\
ret = SSS_SIFP_OK; \
} while (0)
do { \
\
ret = SSS_SIFP_ATTR_MISSING; \
break; \
} \
\
break; \
} \
\
out_num = 0; \
ret = SSS_SIFP_ATTR_NULL; \
break; \
} \
\
\
ret = SSS_SIFP_OK; \
} while (0)
const char *name)
{
int i;
return NULL;
}
return attrs[i];
}
}
return NULL;
}
const char *name,
bool *_value)
{
return ret;
}
const char *name,
{
return ret;
}
const char *name,
{
return ret;
}
const char *name,
{
return ret;
}
const char *name,
{
return ret;
}
const char *name,
{
return ret;
}
const char *name,
{
return ret;
}
const char *name,
const char **_value)
{
if (ret == SSS_SIFP_ATTR_NULL) {
return ret;
}
return ret;
}
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)
{
return ret;
}
const char *name,
unsigned int *_num_values,
{
return ret;
}
const char *name,
unsigned int *_num_values,
{
return ret;
}
const char *name,
unsigned int *_num_values,
{
return ret;
}
const char *name,
unsigned int *_num_values,
{
return ret;
}
const char *name,
unsigned int *_num_values,
{
return ret;
}
const char *name,
unsigned int *_num_values,
{
return ret;
}
const char *name,
unsigned int *_num_values,
const char * const **_value)
{
char **value;
}
return ret;
}