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