Elektra  0.9.5
Functions
keytest.c File Reference

Methods for making tests. More...

#include "kdb.h"
#include "kdbinternal.h"
#include "kdbprivate.h"
Include dependency graph for keytest.c:

Functions

int keyNeedSync (const Key *key)
 Test if a key needs to be synced to backend storage. More...
 
int keyIsBelow (const Key *key, const Key *check)
 Check if the key check is below the key key or not. More...
 
int keyIsBelowOrSame (const Key *key, const Key *check)
 Check if a key is below or same. More...
 
int keyIsDirectlyBelow (const Key *key, const Key *check)
 Check whether the key check is directly below the key key. More...
 
int keyIsBinary (const Key *key)
 Check if a key is binary type. More...
 
int keyIsString (const Key *key)
 Check if a key is string type. More...
 
int keyCompareMeta (const Key *k1, const Key *k2)
 Compares metadata of two keys. More...
 

Detailed Description

Methods for making tests.

Function Documentation

◆ keyCompareMeta()

int keyCompareMeta ( const Key *  k1,
const Key *  k2 
)

Compares metadata of two keys.

Return values
KEY_METAif there is a difference
0if metadata is identical

◆ keyIsBelowOrSame()

int keyIsBelowOrSame ( const Key *  key,
const Key *  check 
)

Check if a key is below or same.

Parameters
keythe key object to work with
See also
keyIsBelow()