GRU - Generic Reusable Utilities
|
#include "gru_keypair.h"
Functions | |
gru_keypair_t * | gru_keypair_new (gru_status_t *status) |
Creates a new key/pair struct. More... | |
void | gru_keypair_destroy (gru_keypair_t **ptr) |
Destroys a key/pair struct. More... | |
void | gru_keypair_destroy_list_item (void **ptr) |
Destructor wrapper for gru_list_clean. More... | |
bool | gru_keypair_set_key (gru_keypair_t *kp, const char *key) |
Sets the key. More... | |
gru_keypair_t * | gru_keypair_clone (const gru_keypair_t *kp, gru_status_t *status) |
Clone a key/pair struct. More... | |
bool | gru_keypair_key_equals (const gru_keypair_t *kp, const char *key) |
Checks whether a key/pair struct matches the key. More... | |
char * | strndup (const char *source, size_t limit) |
gru_keypair_t * | gru_keypair_parse (const char *str, gru_status_t *status) |
Parse a string in the format key=pair and returns an gru_keypair_t. More... | |
gru_keypair_t * gru_keypair_clone | ( | const gru_keypair_t * | kp, |
gru_status_t * | status | ||
) |
Clone a key/pair struct.
kp | |
status |
void gru_keypair_destroy | ( | gru_keypair_t ** | ptr | ) |
Destroys a key/pair struct.
ptr |
|
inline |
Destructor wrapper for gru_list_clean.
ptr |
bool gru_keypair_key_equals | ( | const gru_keypair_t * | kp, |
const char * | key | ||
) |
Checks whether a key/pair struct matches the key.
kp | |
key |
gru_keypair_t * gru_keypair_new | ( | gru_status_t * | status | ) |
Creates a new key/pair struct.
status |
gru_keypair_t * gru_keypair_parse | ( | const char * | str, |
gru_status_t * | status | ||
) |
Parse a string in the format key=pair and returns an gru_keypair_t.
str | |
status |
bool gru_keypair_set_key | ( | gru_keypair_t * | kp, |
const char * | key | ||
) |
Sets the key.
kp | |
key |
char * strndup | ( | const char * | source, |
size_t | limit | ||
) |