libweed  0.6.0
 All Data Structures Files Functions Variables Typedefs Macros
Functions | Variables
weed-utils.c File Reference
#include <string.h>
#include "weed.h"

Functions

int weed_plant_has_leaf (weed_plant_t *plant, const char *key)
 
int weed_set_int_value (weed_plant_t *plant, const char *key, int value)
 
int weed_set_double_value (weed_plant_t *plant, const char *key, double value)
 
int weed_set_boolean_value (weed_plant_t *plant, const char *key, int value)
 
int weed_set_int64_value (weed_plant_t *plant, const char *key, int64_t value)
 
int weed_set_string_value (weed_plant_t *plant, const char *key, const char *value)
 
int weed_set_plantptr_value (weed_plant_t *plant, const char *key, weed_plant_t *value)
 
int weed_set_voidptr_value (weed_plant_t *plant, const char *key, void *value)
 
int weed_get_value (weed_plant_t *plant, const char *key, void *value)
 
int weed_get_int_value (weed_plant_t *plant, const char *key, int *error)
 
double weed_get_double_value (weed_plant_t *plant, const char *key, int *error)
 
int weed_get_boolean_value (weed_plant_t *plant, const char *key, int *error)
 
int64_t weed_get_int64_value (weed_plant_t *plant, const char *key, int *error)
 
char * weed_get_string_value (weed_plant_t *plant, const char *key, int *error)
 
void * weed_get_voidptr_value (weed_plant_t *plant, const char *key, int *error)
 
weed_plant_tweed_get_plantptr_value (weed_plant_t *plant, const char *key, int *error)
 
int * weed_get_int_array (weed_plant_t *plant, const char *key, int *error)
 
double * weed_get_double_array (weed_plant_t *plant, const char *key, int *error)
 
int * weed_get_boolean_array (weed_plant_t *plant, const char *key, int *error)
 
int64_t * weed_get_int64_array (weed_plant_t *plant, const char *key, int *error)
 
char ** weed_get_string_array (weed_plant_t *plant, const char *key, int *error)
 
void ** weed_get_voidptr_array (weed_plant_t *plant, const char *key, int *error)
 
weed_plant_t ** weed_get_plantptr_array (weed_plant_t *plant, const char *key, int *error)
 
int weed_set_int_array (weed_plant_t *plant, const char *key, int num_elems, int *values)
 
int weed_set_double_array (weed_plant_t *plant, const char *key, int num_elems, double *values)
 
int weed_set_boolean_array (weed_plant_t *plant, const char *key, int num_elems, int *values)
 
int weed_set_int64_array (weed_plant_t *plant, const char *key, int num_elems, int64_t *values)
 
int weed_set_string_array (weed_plant_t *plant, const char *key, int num_elems, char **values)
 
int weed_set_voidptr_array (weed_plant_t *plant, const char *key, int num_elems, void **values)
 
int weed_set_plantptr_array (weed_plant_t *plant, const char *key, int num_elems, weed_plant_t **values)
 
int weed_leaf_copy (weed_plant_t *dst, const char *keyt, weed_plant_t *src, const char *keyf)
 
weed_plant_tweed_plant_copy (weed_plant_t *src)
 
int weed_get_plant_type (weed_plant_t *plant)
 

Variables

weed_leaf_set_f weed_leaf_set
 
weed_leaf_get_f weed_leaf_get
 
weed_plant_new_f weed_plant_new
 
weed_plant_list_leaves_f weed_plant_list_leaves
 
weed_leaf_num_elements_f weed_leaf_num_elements
 
weed_leaf_element_size_f weed_leaf_element_size
 
weed_leaf_seed_type_f weed_leaf_seed_type
 
weed_leaf_get_flags_f weed_leaf_get_flags
 
weed_malloc_f weed_malloc
 
weed_free_f weed_free
 
weed_memcpy_f weed_memcpy
 
weed_memset_f weed_memset
 

Function Documentation

int* weed_get_boolean_array ( weed_plant_t plant,
const char *  key,
int *  error 
)
int weed_get_boolean_value ( weed_plant_t plant,
const char *  key,
int *  error 
)
double* weed_get_double_array ( weed_plant_t plant,
const char *  key,
int *  error 
)
double weed_get_double_value ( weed_plant_t plant,
const char *  key,
int *  error 
)
int64_t* weed_get_int64_array ( weed_plant_t plant,
const char *  key,
int *  error 
)
int64_t weed_get_int64_value ( weed_plant_t plant,
const char *  key,
int *  error 
)
int* weed_get_int_array ( weed_plant_t plant,
const char *  key,
int *  error 
)
int weed_get_int_value ( weed_plant_t plant,
const char *  key,
int *  error 
)
int weed_get_plant_type ( weed_plant_t plant)
weed_plant_t** weed_get_plantptr_array ( weed_plant_t plant,
const char *  key,
int *  error 
)
weed_plant_t* weed_get_plantptr_value ( weed_plant_t plant,
const char *  key,
int *  error 
)
char** weed_get_string_array ( weed_plant_t plant,
const char *  key,
int *  error 
)
char* weed_get_string_value ( weed_plant_t plant,
const char *  key,
int *  error 
)
int weed_get_value ( weed_plant_t plant,
const char *  key,
void *  value 
)
inline
void** weed_get_voidptr_array ( weed_plant_t plant,
const char *  key,
int *  error 
)
void* weed_get_voidptr_value ( weed_plant_t plant,
const char *  key,
int *  error 
)
int weed_leaf_copy ( weed_plant_t dst,
const char *  keyt,
weed_plant_t src,
const char *  keyf 
)
weed_plant_t* weed_plant_copy ( weed_plant_t src)
int weed_plant_has_leaf ( weed_plant_t plant,
const char *  key 
)
int weed_set_boolean_array ( weed_plant_t plant,
const char *  key,
int  num_elems,
int *  values 
)
int weed_set_boolean_value ( weed_plant_t plant,
const char *  key,
int  value 
)
int weed_set_double_array ( weed_plant_t plant,
const char *  key,
int  num_elems,
double *  values 
)
int weed_set_double_value ( weed_plant_t plant,
const char *  key,
double  value 
)
int weed_set_int64_array ( weed_plant_t plant,
const char *  key,
int  num_elems,
int64_t *  values 
)
int weed_set_int64_value ( weed_plant_t plant,
const char *  key,
int64_t  value 
)
int weed_set_int_array ( weed_plant_t plant,
const char *  key,
int  num_elems,
int *  values 
)
int weed_set_int_value ( weed_plant_t plant,
const char *  key,
int  value 
)
int weed_set_plantptr_array ( weed_plant_t plant,
const char *  key,
int  num_elems,
weed_plant_t **  values 
)
int weed_set_plantptr_value ( weed_plant_t plant,
const char *  key,
weed_plant_t value 
)
int weed_set_string_array ( weed_plant_t plant,
const char *  key,
int  num_elems,
char **  values 
)
int weed_set_string_value ( weed_plant_t plant,
const char *  key,
const char *  value 
)
int weed_set_voidptr_array ( weed_plant_t plant,
const char *  key,
int  num_elems,
void **  values 
)
int weed_set_voidptr_value ( weed_plant_t plant,
const char *  key,
void *  value 
)

Variable Documentation

weed_free_f weed_free
weed_leaf_element_size_f weed_leaf_element_size
weed_leaf_get_f weed_leaf_get
weed_leaf_get_flags_f weed_leaf_get_flags
weed_leaf_num_elements_f weed_leaf_num_elements
weed_leaf_seed_type_f weed_leaf_seed_type
weed_leaf_set_f weed_leaf_set
weed_malloc_f weed_malloc
weed_memcpy_f weed_memcpy
weed_memset_f weed_memset
weed_plant_list_leaves_f weed_plant_list_leaves
weed_plant_new_f weed_plant_new