47 #ifndef __WEED_HOST_H__
48 #define __WEED_HOST_H__
60 #define WEED_PLANT_UNKNOWN 0
63 #define WEED_CALLER_HOST 0
64 #define WEED_CALLER_PLUGIN 1
72 #ifndef _SKIP_WEED_API_
73 #ifndef _WEED_VISIBLE_FUNCTIONS_
108 __attribute__((visibility(
"default")));
109 void *
weed_malloc(
size_t n) __attribute__((visibility(
"default")));
110 void weed_free(
void *p) __attribute__((visibility(
"default")));
111 void *
weed_memset(
void *p,
int c,
size_t n) __attribute__((visibility(
"default")));
112 void *
weed_memcpy(
void *dest,
const void *src,
size_t n) __attribute__((visibility(
"default")));
114 __attribute__((visibility(
"default")));
116 __attribute__((visibility(
"default")));
123 #ifndef _WEED_VISIBLE_FUNCTIONS_
132 #endif // #ifndef __WEED_HOST_H__
weed_leaf_seed_type_f weed_leaf_seed_type
Definition: weed-host.h:85
weed_leaf_get_flags_f weed_leaf_get_flags
Definition: weed-host.h:86
weed_free_f weed_free
Definition: weed-host.h:90
void(* weed_plant_free_f)(weed_plant_t *plant)
Definition: weed-host.h:67
int(* weed_leaf_delete_f)(weed_plant_t *plant, const char *key)
Definition: weed-host.h:68
void *(* weed_memset_f)(void *s, int c, size_t n)
Definition: weed.h:91
weed_leaf_delete_f weed_leaf_delete
Definition: weed-host.h:81
void(* weed_free_f)(void *ptr)
Definition: weed.h:90
char **(* weed_plant_list_leaves_f)(weed_plant_t *plant)
Definition: weed.h:126
weed_leaf_num_elements_f weed_leaf_num_elements
Definition: weed-host.h:83
weed_memcpy_f weed_memcpy
Definition: weed-host.h:91
weed_leaf_set_f weed_leaf_set
Definition: weed-host.h:77
void *(* weed_malloc_f)(size_t size)
Definition: weed.h:89
int(* weed_leaf_set_f)(weed_plant_t *plant, const char *key, int seed_type, int num_elems, void *value)
Definition: weed.h:127
weed_memset_f weed_memset
Definition: weed-host.h:92
weed_leaf_element_size_f weed_leaf_element_size
Definition: weed-host.h:84
weed_malloc_f weed_malloc
Definition: weed-host.h:89
int(* weed_leaf_num_elements_f)(weed_plant_t *plant, const char *key)
Definition: weed.h:129
int(* weed_leaf_get_flags_f)(weed_plant_t *plant, const char *key)
Definition: weed.h:132
int(* weed_leaf_seed_type_f)(weed_plant_t *plant, const char *key)
Definition: weed.h:131
weed_leaf_t weed_plant_t
Definition: weed.h:99
weed_plant_t *(* weed_plant_new_f)(int plant_type)
Definition: weed.h:125
weed_leaf_get_f weed_leaf_get
Definition: weed-host.h:76
int(* weed_leaf_set_flags_f)(weed_plant_t *plant, const char *key, int flags)
Definition: weed-host.h:69
size_t(* weed_leaf_element_size_f)(weed_plant_t *plant, const char *key, int idx)
Definition: weed.h:130
void *(* weed_memcpy_f)(void *dest, const void *src, size_t n)
Definition: weed.h:92
weed_plant_new_f weed_plant_new
Definition: weed-host.h:79
int(* weed_leaf_get_f)(weed_plant_t *plant, const char *key, int idx, void *value)
Definition: weed.h:128
int( weed_leaf_set_caller_f)(weed_plant_t *plant, const char *key, int seed_type, int num_elems, void *value, int caller)
Definition: weed-host.h:70
weed_plant_free_f weed_plant_free
Definition: weed-host.h:80
int(* weed_default_getter_f)(weed_plant_t *plant, const char *key, int idx, void *value)
Definition: weed.h:122
weed_plant_list_leaves_f weed_plant_list_leaves
Definition: weed-host.h:82
weed_leaf_set_flags_f weed_leaf_set_flags
Definition: weed-host.h:87
void weed_init(int api_v, weed_malloc_f, weed_free_f, weed_memcpy_f, weed_memset_f) __attribute__((visibility("default")))
Definition: weed-gslice.c:414
weed_leaf_set_f weed_leaf_set_plugin
Definition: weed-host.h:78
weed_default_getter_f weed_default_get
Definition: weed-host.h:75