kv_get_key_major()

#include <kvstore.h>

const char **
kv_get_key_major(const kv_key_t *key) 

Returns the major path components used by the provided key.

Note that the string returned by this function is owned by the key structure, and is valid until the key is released.

Parameters

  • key

    The key parameter is the key structure from which you want to obtain the major path components.