kmediad 0.5.0a
A cross-platform Web-based audio player
Data Fields
_klib_Object Struct Reference

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.

Detailed Description

The basic basic structure underling all klib objects.


Field Documentation

char _klib_Object::class_name[KLIB_CLASSNAME_MAX_LEN]

The type name of the class, used for rudimentary type-safe operations.

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


The documentation for this struct was generated from the following file: