diff options
author | N.N. <krzyszcz@users.sourceforge.net> | 2003-09-24 10:46:19 +0000 |
---|---|---|
committer | N.N. <krzyszcz@users.sourceforge.net> | 2003-09-24 10:46:19 +0000 |
commit | 9680b47879dfc58f884208f7abf2f945b3b41d25 (patch) | |
tree | 93eda19deb61daff60c533a3bbd1efe79e9cdc9b /shared/common/props.h | |
parent | edab184352cd14788a37c76dce147ac19f7464b4 (diff) |
adding toxy project
svn path=/trunk/externals/miXed/; revision=1024
Diffstat (limited to 'shared/common/props.h')
-rw-r--r-- | shared/common/props.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/shared/common/props.h b/shared/common/props.h new file mode 100644 index 0000000..0eef345 --- /dev/null +++ b/shared/common/props.h @@ -0,0 +1,26 @@ +/* Copyright (c) 2003 krzYszcz and others. + * For information on usage and redistribution, and for a DISCLAIMER OF ALL + * WARRANTIES, see the file, "LICENSE.txt," in this distribution. */ + +#ifndef __PROPS_H__ +#define __PROPS_H__ + +EXTERN_STRUCT _props; +#define t_props struct _props + +typedef char *(*t_propsresolver)(t_pd *, int, t_atom *); + +t_symbol *props_add(t_props *pp, t_symbol *s, int ac, t_atom *av); +int props_remove(t_props *pp, t_symbol *s); +void props_clone(t_props *to, t_props *from); +char *props_getvalue(t_props *pp, char *key); +char *props_firstvalue(t_props *pp, char **keyp); +char *props_nextvalue(t_props *pp, char **keyp); +t_atom *props_getone(t_props *pp, t_symbol *s, int *npp); +t_atom *props_getall(t_props *pp, int *npp); +char *props_getname(t_props *pp); +void props_freeall(t_props *pp); +t_props *props_new(t_pd *owner, char *name, char *thisdelim, + t_props *otherprops, t_propsresolver resolver); + +#endif |