Jamoma API  0.6.0.a19
Max/library/includes/JamomaObject.h
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
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 #ifndef __JAMOMA_OBJECT_H__
17 #define __JAMOMA_OBJECT_H__
18 
19 #include "JamomaForMax.h"
20 
21 /** Data Structure for the global jamoma object.
22  *
23  * @details This object is instantiated once when the jamoma_init() method is first called and the Jamoma environment is loaded.
24  */
25 typedef struct _jamoma_object
26 {
27  t_object obj;
29 
30 #ifdef __cplusplus
31 extern "C" {
32 #endif
33 
34 /** Set up the class.
35  */
36 void jamoma_object_initclass(void);
37 
38 
39 /** Object instantiation.
40  @return Pointer to the instantiated object.
41  */
42 t_object *jamoma_object_new();
43 
44 
45 /** Called when the object is freed.
46  @param obj Pointer to the object.
47  */
49 
50 
51 #ifdef __cplusplus
52 }
53 #endif
54 
55 #endif //__JAMOMA_OBJECT_H__
56 
Data Structure for the global jamoma object.
void jamoma_object_initclass(void)
Set up the class.
t_object * jamoma_object_new()
Object instantiation.
Various utilities for interfacing with Max that are not specific to JamomaModular as such...
void jamoma_object_free(t_jamoma_object *obj)
Called when the object is freed.