libweed 0.6.0

- Main Page
- Data Structures
- Files

- File List
- Globals

All Data Structures Files Functions Variables Typedefs Macros
weed-utils.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
21 mainly based on LiViDO, which is developed by:
22
23
24 Niels Elburg - http://veejay.sf.net
25
26 Gabriel "Salsaman" Finch - http://lives.sourceforge.net
27
28 Denis "Jaromil" Rojo - http://freej.dyne.org
29
30 Tom Schouten - http://zwizwa.fartit.com
31
32 Andraz Tori - http://cvs.cinelerra.org
33
34 reviewed with suggestions and contributions from:
35
36 Silvano "Kysucix" Galliani - http://freej.dyne.org
37
38 Kentaro Fukuchi - http://megaui.net/fukuchi
39
40 Jun Iio - http://www.malib.net
41
42 Carlo Prelz - http://www2.fluido.as:8080/
43
44 */
45
46 /* (C) Gabriel "Salsaman" Finch, 2005 - 2010 */
47
48 #ifndef __WEED_UTILS_H__
49 #define __WEED_UTILS_H__
50
51 #ifndef __WEED_H__
52 #include <weed/weed.h>
53 #endif
54
55 #ifdef __cplusplus
56 extern "C"
57 {
58 #endif /* __cplusplus */
59
60 int weed_plant_has_leaf(weed_plant_t *plant, const char *key);
61 int weed_set_int_value(weed_plant_t *plant, const char *key, int value);
62 int weed_set_double_value(weed_plant_t *plant, const char *key, double value);
63 int weed_set_boolean_value(weed_plant_t *plant, const char *key, int value);
64 int weed_set_int64_value(weed_plant_t *plant, const char *key, int64_t value);
65 int weed_set_string_value(weed_plant_t *plant, const char *key, const char *value);
66 int weed_set_plantptr_value(weed_plant_t *plant, const char *key, weed_plant_t *value);
67 int weed_set_voidptr_value(weed_plant_t *plant, const char *key, void *value);
68
69 int weed_get_int_value(weed_plant_t *plant, const char *key, int *error);
70 double weed_get_double_value(weed_plant_t *plant, const char *key, int *error);
71 int weed_get_boolean_value(weed_plant_t *plant, const char *key, int *error);
72 int64_t weed_get_int64_value(weed_plant_t *plant, const char *key, int *error);
73 char *weed_get_string_value(weed_plant_t *plant, const char *key, int *error);
74 void *weed_get_voidptr_value(weed_plant_t *plant, const char *key, int *error);
75 weed_plant_t *weed_get_plantptr_value(weed_plant_t *plant, const char *key, int *error);
76
77 int *weed_get_int_array(weed_plant_t *plant, const char *key, int *error);
78 double *weed_get_double_array(weed_plant_t *plant, const char *key, int *error);
79 int *weed_get_boolean_array(weed_plant_t *plant, const char *key, int *error);
80 int64_t *weed_get_int64_array(weed_plant_t *plant, const char *key, int *error);
81 char **weed_get_string_array(weed_plant_t *plant, const char *key, int *error);
82 void **weed_get_voidptr_array(weed_plant_t *plant, const char *key, int *error);
83 weed_plant_t **weed_get_plantptr_array(weed_plant_t *plant, const char *key, int *error);
84
85 int weed_set_int_array(weed_plant_t *plant, const char *key, int num_elems, int *values);
86 int weed_set_double_array(weed_plant_t *plant, const char *key, int num_elems, double *values);
87 int weed_set_boolean_array(weed_plant_t *plant, const char *key, int num_elems, int *values);
88 int weed_set_int64_array(weed_plant_t *plant, const char *key, int num_elems, int64_t *values);
89 int weed_set_string_array(weed_plant_t *plant, const char *key, int num_elems, char **values);
90 int weed_set_voidptr_array(weed_plant_t *plant, const char *key, int num_elems, void **values);
91 int weed_set_plantptr_array(weed_plant_t *plant, const char *key, int num_elems, weed_plant_t **values);
92
93 int weed_leaf_copy(weed_plant_t *dest, const char *keyt, weed_plant_t *src, const char *keyf);
94 weed_plant_t *weed_plant_copy(weed_plant_t *src);
95 int weed_get_plant_type(weed_plant_t *plant);
96
97 #ifdef __cplusplus
98 }
99 #endif /* __cplusplus */
100
101 #endif // #ifndef __WEED_UTILS_H__
weed_set_double_value
int weed_set_double_value(weed_plant_t *plant, const char *key, double value)
Definition: weed-utils.c:87
weed.h
weed_set_plantptr_array
int weed_set_plantptr_array(weed_plant_t *plant, const char *key, int num_elems, weed_plant_t **values)
Definition: weed-utils.c:424
weed_get_double_array
double * weed_get_double_array(weed_plant_t *plant, const char *key, int *error)
Definition: weed-utils.c:234
weed_get_string_value
char * weed_get_string_value(weed_plant_t *plant, const char *key, int *error)
Definition: weed-utils.c:166
weed_leaf_copy
int weed_leaf_copy(weed_plant_t *dst, const char *keyt, weed_plant_t *src, const char *keyf)
Definition: weed-utils.c:432
weed_set_int_array
int weed_set_int_array(weed_plant_t *plant, const char *key, int num_elems, int *values)
Definition: weed-utils.c:400
weed_get_boolean_array
int * weed_get_boolean_array(weed_plant_t *plant, const char *key, int *error)
Definition: weed-utils.c:259
weed_set_int_value
int weed_set_int_value(weed_plant_t *plant, const char *key, int value)
Definition: weed-utils.c:82
weed_set_int64_value
int weed_set_int64_value(weed_plant_t *plant, const char *key, int64_t value)
Definition: weed-utils.c:97
weed_set_string_array
int weed_set_string_array(weed_plant_t *plant, const char *key, int num_elems, char **values)
Definition: weed-utils.c:416
weed_get_voidptr_array
void ** weed_get_voidptr_array(weed_plant_t *plant, const char *key, int *error)
Definition: weed-utils.c:346
weed_get_double_value
double weed_get_double_value(weed_plant_t *plant, const char *key, int *error)
Definition: weed-utils.c:136
weed_plant_has_leaf
int weed_plant_has_leaf(weed_plant_t *plant, const char *key)
Definition: weed-utils.c:74
weed_set_plantptr_value
int weed_set_plantptr_value(weed_plant_t *plant, const char *key, weed_plant_t *value)
Definition: weed-utils.c:107
weed_get_plant_type
int weed_get_plant_type(weed_plant_t *plant)
Definition: weed-utils.c:515
weed_get_plantptr_value
weed_plant_t * weed_get_plantptr_value(weed_plant_t *plant, const char *key, int *error)
Definition: weed-utils.c:195
weed_get_int64_array
int64_t * weed_get_int64_array(weed_plant_t *plant, const char *key, int *error)
Definition: weed-utils.c:285
weed_plant_t
weed_leaf_t weed_plant_t
Definition: weed.h:99
weed_get_voidptr_value
void * weed_get_voidptr_value(weed_plant_t *plant, const char *key, int *error)
Definition: weed-utils.c:185
weed_set_double_array
int weed_set_double_array(weed_plant_t *plant, const char *key, int num_elems, double *values)
Definition: weed-utils.c:404
weed_get_boolean_value
int weed_get_boolean_value(weed_plant_t *plant, const char *key, int *error)
Definition: weed-utils.c:146
weed_set_boolean_array
int weed_set_boolean_array(weed_plant_t *plant, const char *key, int num_elems, int *values)
Definition: weed-utils.c:408
weed_get_int64_value
int64_t weed_get_int64_value(weed_plant_t *plant, const char *key, int *error)
Definition: weed-utils.c:156
weed_set_string_value
int weed_set_string_value(weed_plant_t *plant, const char *key, const char *value)
Definition: weed-utils.c:102
weed_get_string_array
char ** weed_get_string_array(weed_plant_t *plant, const char *key, int *error)
Definition: weed-utils.c:311
weed_get_int_value
int weed_get_int_value(weed_plant_t *plant, const char *key, int *error)
Definition: weed-utils.c:127
weed_get_int_array
int * weed_get_int_array(weed_plant_t *plant, const char *key, int *error)
Definition: weed-utils.c:208
weed_get_plantptr_array
weed_plant_t ** weed_get_plantptr_array(weed_plant_t *plant, const char *key, int *error)
Definition: weed-utils.c:372
weed_plant_copy
weed_plant_t * weed_plant_copy(weed_plant_t *src)
Definition: weed-utils.c:493
weed_set_int64_array
int weed_set_int64_array(weed_plant_t *plant, const char *key, int num_elems, int64_t *values)
Definition: weed-utils.c:412
weed_set_voidptr_array
int weed_set_voidptr_array(weed_plant_t *plant, const char *key, int num_elems, void **values)
Definition: weed-utils.c:420
weed_set_boolean_value
int weed_set_boolean_value(weed_plant_t *plant, const char *key, int value)
Definition: weed-utils.c:92
weed_set_voidptr_value
int weed_set_voidptr_value(weed_plant_t *plant, const char *key, void *value)
Definition: weed-utils.c:112