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