|
kmediad 0.5.0a
A cross-platform Web-based audio player
|
The basic basic structure underling all klib objects. More...
#include <klib_object.h>
Data Fields | |
| char | class_name [KLIB_CLASSNAME_MAX_LEN] |
| The type name of the class, used for rudimentary type-safe operations. | |
| int | ref_count |
| Number of references to this object. | |
| void(* | dispose_func )(struct _klib_Object *self) |
| A pointer to the destructor. | |
| struct _klib_String *(* | tostring_func )(const struct _klib_Object *self) |
| A pointer to the to_string function. | |
The basic basic structure underling all klib objects.
| char _klib_Object::class_name[KLIB_CLASSNAME_MAX_LEN] |
The type name of the class, used for rudimentary type-safe operations.
| void(* _klib_Object::dispose_func)(struct _klib_Object *self) |
A pointer to the destructor.
Subclasses must modify this to point to their own destructors
Number of references to this object.
When the ref_count gets to zero, the object will be disposed
struct _klib_String*(* _klib_Object::tostring_func)(const struct _klib_Object *self) [read] |
A pointer to the to_string function.
Subclases should modify this to point to their own to_string fucntion
1.7.4