Jamoma API  0.6.0.a19
PureData/library/source/JamomaObject.cpp
Go to the documentation of this file.
1 /** @file
2  *
3  * @ingroup implementationPdLibrary
4  *
5  * @brief The global jamoma object.
6  *
7  * @details Functions and resources used by Max objects.
8  *
9  * @authors Tim Place, Trond Lossius, Antoine Villeret
10  *
11  * @copyright Copyright © 2007, Tim Place @n
12  * Copyright © 2015, Antoine Villeret@n
13  * This code is licensed under the terms of the "New BSD License" @n
14  * http://creativecommons.org/licenses/BSD/
15  */
16 
17 #include "JamomaObject.h"
18 
19 // statics and globals
20 static t_eclass *s_jamoma_class;
21 
22 /************************************************************************************/
23 
25 {
26  t_eclass *c;
27 
28  // Define our class
29  c = eclass_new( "jamoma",
30  (method)jamoma_object_new,
31  (method)jamoma_object_free,
32  sizeof(t_jamoma_object),
33  0L, A_NULL, 0);
34 
35  // Finalize our class
36  s_jamoma_class = c;
37 }
38 
39 
40 t_object *jamoma_object_new()
41 {
42  t_jamoma_object *obj = (t_jamoma_object *)eobj_new(s_jamoma_class);
43  if (obj) {
44  ;
45  }
46  return (t_object*)obj;
47 }
48 
49 
51 {
52  ;
53 }
54 
Data Structure for the global jamoma object.
void jamoma_object_initclass(void)
Set up the class.
t_object * jamoma_object_new()
Object instantiation.
void jamoma_object_free(t_jamoma_object *obj)
Called when the object is freed.