libweed  0.6.0
 All Data Structures Files Functions Variables Typedefs Macros
weed-plugin.h
Go to the documentation of this file.
1 /* WEED is free software; you can redistribute it and/or
2  modify it under the terms of the GNU Lesser General Public
3  License as published by the Free Software Foundation; either
4  version 3 of the License, or (at your option) any later version.
5 
6  Weed is distributed in the hope that it will be useful,
7  but WITHOUT ANY WARRANTY; without even the implied warranty of
8  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
9  Lesser General Public License for more details.
10 
11  You should have received a copy of the GNU Lesser General Public
12  License along with this source code; if not, write to the Free Software
13  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
14 
15 
16  Weed is developed by:
17 
18  Gabriel "Salsaman" Finch - http://lives.sourceforge.net
19 
20  mainly based on LiViDO, which is developed by:
21 
22 
23  Niels Elburg - http://veejay.sf.net
24 
25  Gabriel "Salsaman" Finch - http://lives.sourceforge.net
26 
27  Denis "Jaromil" Rojo - http://freej.dyne.org
28 
29  Tom Schouten - http://zwizwa.fartit.com
30 
31  Andraz Tori - http://cvs.cinelerra.org
32 
33  reviewed with suggestions and contributions from:
34 
35  Silvano "Kysucix" Galliani - http://freej.dyne.org
36 
37  Kentaro Fukuchi - http://megaui.net/fukuchi
38 
39  Jun Iio - http://www.malib.net
40 
41  Carlo Prelz - http://www2.fluido.as:8080/
42 
43 */
44 
45 /* (C) Gabriel "Salsaman" Finch, 2005 - 2013 */
46 
47 #ifndef __WEED_PLUGIN_H__
48 #define __WEED_PLUGIN_H__
49 
50 #ifndef __WEED_H__
51 #include <weed/weed.h>
52 #endif
53 
54 #ifdef __cplusplus
55 extern "C"
56 {
57 #endif /* __cplusplus */
58 
59 #ifndef __WEED_INTERNAL__
60 
70 
72 static weed_free_f weed_free;
75 
76 #else
77 
79 extern weed_leaf_set_f weed_leaf_set;
80 extern weed_leaf_get_f weed_leaf_get;
81 extern weed_plant_new_f weed_plant_new;
82 extern weed_plant_list_leaves_f weed_plant_list_leaves;
83 extern weed_leaf_num_elements_f weed_leaf_num_elements;
84 extern weed_leaf_element_size_f weed_leaf_element_size;
85 extern weed_leaf_seed_type_f weed_leaf_seed_type;
86 extern weed_leaf_get_flags_f weed_leaf_get_flags;
87 
88 extern weed_malloc_f weed_malloc;
89 extern weed_free_f weed_free;
90 extern weed_memcpy_f weed_memcpy;
91 extern weed_memset_f weed_memset;
92 #endif
93 
94 #ifdef __cplusplus
95 }
96 #endif /* __cplusplus */
97 
98 #endif // #ifndef __WEED_PLUGIN_H__
weed_plant_list_leaves_f weed_plant_list_leaves
Definition: weed-host.h:82
weed_leaf_get_flags_f weed_leaf_get_flags
Definition: weed-host.h:86
weed_leaf_element_size_f weed_leaf_element_size
Definition: weed-host.h:84
void *(* weed_memset_f)(void *s, int c, size_t n)
Definition: weed.h:91
weed_leaf_set_f weed_leaf_set
Definition: weed-host.h:77
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_plant_new_f weed_plant_new
Definition: weed-host.h:79
weed_free_f weed_free
Definition: weed-host.h:90
weed_leaf_num_elements_f weed_leaf_num_elements
Definition: weed-host.h:83
weed_memcpy_f weed_memcpy
Definition: weed-host.h:91
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
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_plant_t *(* weed_plant_new_f)(int plant_type)
Definition: weed.h:125
weed_leaf_seed_type_f weed_leaf_seed_type
Definition: weed-host.h:85
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_memset_f weed_memset
Definition: weed-host.h:92
int(* weed_leaf_get_f)(weed_plant_t *plant, const char *key, int idx, void *value)
Definition: weed.h:128
weed_malloc_f weed_malloc
Definition: weed-host.h:89
weed_leaf_get_f weed_leaf_get
Definition: weed-host.h:76