CicmWrapper  Beta 0.4
A wrapper for Pure Data
 All Data Structures Functions Variables Typedefs Enumerations Enumerator Modules Pages
ecommon.h
1 /*
2  * CicmWrapper - Pure Data Enhanced
3 
4  * Copyright (C) 2013 Pierre Guillot, CICM - Université Paris 8
5  * All rights reserved.
6  * Website : https://github.com/CICM/CicmWrapper
7  * Contacts : cicm.mshparisnord@gmail.com
8  * For information on usage and redistribution, and for a DISCLAIMER OF ALL
9  * WARRANTIES, see the file, "LICENSE.txt," in this distribution.
10  */
11 
18 #ifndef DEF_EPD_COMMON
19 #define DEF_EPD_COMMON
20 
21 #include "edefine.h"
22 
23 void object_method(void* x, t_symbol* s, void* z, t_typ_method method, long number, void* other);
24 
29 void epd_init(void);
32 
41 int atoms_get_attributes_offset(int argc, t_atom* argv);
42 
51 
60 int atoms_get_nattributes(int argc, t_atom* argv);
61 
70 
80 t_pd_err atoms_has_attribute(int argc, t_atom* argv, t_symbol *key);
81 
91 
101 int atoms_get_attribute_index(int argc, t_atom *argv, t_symbol *key);
102 
112 
124 t_pd_err atoms_get_attribute(int ac, t_atom* av, t_symbol *key, int *argc, t_atom **argv);
125 
136 t_pd_err binbuf_get_attribute(t_binbuf *d, t_symbol *key, int *argc, t_atom **argv);
137 
148 t_pd_err atoms_get_attribute_long(int ac, t_atom* av, t_symbol *key, long *value);
149 
159 t_pd_err binbuf_get_attribute_long(t_binbuf *d, t_symbol *key, long *value);
160 
171 t_pd_err atoms_get_attribute_float(int ac, t_atom* av, t_symbol *key, float *value);
172 
182 t_pd_err binbuf_get_attribute_float(t_binbuf *d, t_symbol *key, float *value);
183 
193 int atoms_get_keys(int ac, t_atom* av, t_symbol*** keys);
194 
203 int binbuf_get_keys(t_binbuf *d, t_symbol*** keys);
204 
213 t_binbuf* binbuf_via_atoms(int ac, t_atom *av);
214 
225 t_pd_err binbuf_append_attribute(t_binbuf *d, t_symbol *key, int argc, t_atom *argv);
226 
234 void epd_add_folder(const char* name, const char* folder);
235 
237 #endif
int binbuf_get_attributes_offset(t_binbuf *d)
Retrieves the position of the first attribute in a t_binbuf.
Definition: ecommon.c:277
t_pd_err binbuf_get_attribute(t_binbuf *d, t_symbol *key, int *argc, t_atom **argv)
Retrieves the values of an attribute from a t_binbuf.
Definition: ecommon.c:441
int atoms_get_nattributes(int argc, t_atom *argv)
Retrieves the number of attributes in an array of t_atom.
Definition: ecommon.c:282
t_pd_err atoms_has_attribute(int argc, t_atom *argv, t_symbol *key)
Retrieves if an attributes is in an array of t_atom.
Definition: ecommon.c:329
t_pd_err binbuf_has_attribute(t_binbuf *d, t_symbol *key)
Retrieves if an attributes is in a t_binbuf.
Definition: ecommon.c:345
int atoms_get_attribute_index(int argc, t_atom *argv, t_symbol *key)
Retrieves the position of an attribute in an array of t_atom.
Definition: ecommon.c:353
The t_atom struture.
Definition: enative.h:105
The t_binbuf struture.
Definition: enative.h:58
The t_symbol struture.
Definition: enative.h:46
t_pd_err binbuf_append_attribute(t_binbuf *d, t_symbol *key, int argc, t_atom *argv)
Adds the key and the values of an attribute to a t_binbuf.
Definition: ecommon.c:252
t_pd_err atoms_get_attribute(int ac, t_atom *av, t_symbol *key, int *argc, t_atom **argv)
Retrieves the values of an attribute from an array of t_atom.
Definition: ecommon.c:375
void epd_add_folder(const char *name, const char *folder)
Adds a subfolder to library folder.
Definition: ecommon.c:507
void(* t_typ_method)(void *x,...)
The standart method.
Definition: edefine.h:71
long t_pd_err
The error type.
Definition: edefine.h:69
int atoms_get_keys(int ac, t_atom *av, t_symbol ***keys)
Retrieves the keys of attributes presents in an array of t_atom.
Definition: ecommon.c:300
t_pd_err atoms_get_attribute_long(int ac, t_atom *av, t_symbol *key, long *value)
Retrieves the long value of an attribute from an array of t_atom.
Definition: ecommon.c:449
t_pd_err binbuf_get_attribute_long(t_binbuf *d, t_symbol *key, long *value)
Retrieves the long value of an attribute from a t_binbuf.
Definition: ecommon.c:470
t_pd_err binbuf_get_attribute_float(t_binbuf *d, t_symbol *key, float *value)
Retrieves the float value of an attribute from a t_binbuf.
Definition: ecommon.c:499
t_pd_err atoms_get_attribute_float(int ac, t_atom *av, t_symbol *key, float *value)
Retrieves the float value of an attribute from an array of t_atom.
Definition: ecommon.c:478
int binbuf_get_nattributes(t_binbuf *d)
Retrieves the number of attributes in a t_binbuf.
Definition: ecommon.c:295
int atoms_get_attributes_offset(int argc, t_atom *argv)
Retrieves the position of the first attribute in an array of t_atom.
Definition: ecommon.c:264
int binbuf_get_keys(t_binbuf *d, t_symbol ***keys)
Retrieves the keys of attributes presents in a t_binbuf.
Definition: ecommon.c:323
t_binbuf * binbuf_via_atoms(int ac, t_atom *av)
Retrieves a t_binbuf from an array of t_atom.
Definition: ecommon.c:126
int binbuf_get_attribute_index(t_binbuf *d, t_symbol *key)
Retrieves the position of an attribute in a t_binbuf.
Definition: ecommon.c:370