libweed 0.0.3

weed-utils.h

Go to the documentation of this file.
00001 /* WEED is free software; you can redistribute it and/or
00002    modify it under the terms of the GNU Lesser General Public
00003    License as published by the Free Software Foundation; either
00004    version 3 of the License, or (at your option) any later version.
00005 
00006    Weed is distributed in the hope that it will be useful,
00007    but WITHOUT ANY WARRANTY; without even the implied warranty of
00008    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00009    Lesser General Public License for more details.
00010 
00011    You should have received a copy of the GNU Lesser General Public
00012    License along with this source code; if not, write to the Free Software
00013    Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
00014 
00015 
00016    Weed is developed by:
00017 
00018    Gabriel "Salsaman" Finch - http://lives.sourceforge.net
00019 
00020 
00021    mainly based on LiViDO, which is developed by:
00022 
00023 
00024    Niels Elburg - http://veejay.sf.net
00025 
00026    Gabriel "Salsaman" Finch - http://lives.sourceforge.net
00027 
00028    Denis "Jaromil" Rojo - http://freej.dyne.org
00029 
00030    Tom Schouten - http://zwizwa.fartit.com
00031 
00032    Andraz Tori - http://cvs.cinelerra.org
00033 
00034    reviewed with suggestions and contributions from:
00035 
00036    Silvano "Kysucix" Galliani - http://freej.dyne.org
00037 
00038    Kentaro Fukuchi - http://megaui.net/fukuchi
00039 
00040    Jun Iio - http://www.malib.net
00041 
00042    Carlo Prelz - http://www2.fluido.as:8080/
00043 
00044 */
00045 
00046 /* (C) Gabriel "Salsaman" Finch, 2005 - 2010 */
00047 
00048 #ifndef __WEED_UTILS_H__
00049 #define __WEED_UTILS_H__
00050 
00051 #ifndef __WEED_H__
00052 #include <weed/weed.h>
00053 #endif
00054 
00055 #ifdef __cplusplus
00056 extern "C"
00057 {
00058 #endif /* __cplusplus */
00059 
00060 int weed_plant_has_leaf (weed_plant_t *plant, const char *key);
00061 int weed_set_int_value (weed_plant_t *plant, const char *key, int value);
00062 int weed_set_double_value (weed_plant_t *plant, const char *key, double value);
00063 int weed_set_boolean_value (weed_plant_t *plant, const char *key, int value);
00064 int weed_set_int64_value (weed_plant_t *plant, const char *key, int64_t value);
00065 int weed_set_string_value (weed_plant_t *plant, const char *key, const char *value);
00066 int weed_set_plantptr_value (weed_plant_t *plant, const char *key, weed_plant_t *value);
00067 int weed_set_voidptr_value (weed_plant_t *plant, const char *key, void *value);
00068 
00069 int weed_get_int_value (weed_plant_t *plant, const char *key, int *error);
00070 double weed_get_double_value (weed_plant_t *plant, const char *key, int *error);
00071 int weed_get_boolean_value (weed_plant_t *plant, const char *key, int *error);
00072 int64_t weed_get_int64_value (weed_plant_t *plant, const char *key, int *error);
00073 char *weed_get_string_value (weed_plant_t *plant, const char *key, int *error);
00074 void *weed_get_voidptr_value (weed_plant_t *plant, const char *key, int *error);
00075 weed_plant_t *weed_get_plantptr_value (weed_plant_t *plant, const char *key, int *error);
00076 
00077 int *weed_get_int_array (weed_plant_t *plant, const char *key, int *error);
00078 double *weed_get_double_array (weed_plant_t *plant, const char *key, int *error);
00079 int *weed_get_boolean_array (weed_plant_t *plant, const char *key, int *error);
00080 int64_t *weed_get_int64_array (weed_plant_t *plant, const char *key, int *error);
00081 char **weed_get_string_array (weed_plant_t *plant, const char *key, int *error);
00082 void **weed_get_voidptr_array (weed_plant_t *plant, const char *key, int *error);
00083 weed_plant_t **weed_get_plantptr_array (weed_plant_t *plant, const char *key, int *error);
00084 
00085 int weed_set_int_array (weed_plant_t *plant, const char *key, int num_elems, int *values);
00086 int weed_set_double_array (weed_plant_t *plant, const char *key, int num_elems, double *values);
00087 int weed_set_boolean_array (weed_plant_t *plant, const char *key, int num_elems, int *values);
00088 int weed_set_int64_array (weed_plant_t *plant, const char *key, int num_elems, int64_t *values);
00089 int weed_set_string_array (weed_plant_t *plant, const char *key, int num_elems, char **values);
00090 int weed_set_voidptr_array (weed_plant_t *plant, const char *key, int num_elems, void **values);
00091 int weed_set_plantptr_array (weed_plant_t *plant, const char *key, int num_elems, weed_plant_t **values);
00092 
00093 int weed_leaf_copy (weed_plant_t *dest, const char *keyt, weed_plant_t *src, const char *keyf);
00094 weed_plant_t *weed_plant_copy (weed_plant_t *src);
00095 int weed_get_plant_type (weed_plant_t *plant);
00096 
00097 #ifdef __cplusplus
00098 }
00099 #endif /* __cplusplus */
00100 
00101 #endif // #ifndef __WEED_UTILS_H__
 All Data Structures Files Functions Variables Typedefs Defines