libweed
0.0.3
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__
Generated on Mon Apr 29 2013 18:34:06 for libweed by
1.8.1.1