Macros by Elektra.
More...
Macros by Elektra.
Macros start with ELEKTRA_ and are uppercase.
- Copyright
- BSD License (see doc/LICENSE.md or http://www.libelektra.org)
#define ELEKTRA_SET_ERROR_READ_ONLY |
( |
|
info, |
|
|
|
returned, |
|
|
|
error |
|
) |
| |
Value:do \
{ \
while ((k =
ksNext (returned))) \
{ \
if (!c) \
return -1; \
} \
return -1; \
} \
} \
if ((k =
ksNext (info)) != 0) \
return -1; \
} while (0)
#define ELEKTRA_SET_ERRORF(number, key, formatstring,...)
Sets the error in the keys metadata.
Definition: doc.h:139
int ksDel(KeySet *ks)
A destructor for KeySet objects.
Definition: keyset.c:350
int ksRewind(KeySet *ks)
Rewinds the KeySet internal cursor.
Definition: keyset.c:1215
const char * keyString(const Key *key)
Get the c-string representing the value.
Definition: keyvalue.c:193
Key * ksNext(KeySet *ks)
Returns the next Key in a KeySet.
Definition: keyset.c:1245
const char * keyName(const Key *key)
Returns a pointer to the abbreviated real internal key name.
Definition: elektra/keyname.c:213
Sets error 84 if info != returned.
- Parameters
-
info | how the info is now (freshly received) |
returned | how the info passed from user is |
error | key to set error to |
- Returns
- with -1 on error