1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
#include "../libssts/baseobject.h"
/*
* I have a distaste C++. So this is not a priority, and may not even
* work at all.
*/
namespace SSTS {
class SObject {
struct SObject self;
inline SObject () {
this.self = s_object_new ();
}
inline ~SObject () {
s_object_free (this.self);
}
inline void
initialize (const schar * name) {
s_object_initialize (this.self, name);
}
inline void
initialize (const std::string name) {
s_object_initialize (this.self, name.c_str);
}
inline void
ref () {
s_object_ref (this.self);
}
inline void
unref () {
s_object_unref (this.self);
}
}
}
|