Defines | |
| #define | IKX_DECLARE_OBJECT_BEGIN(obj) typedef struct { |
| Beginning of an object declaration. | |
| #define | IKX_DECLARE_OBJECT_FIELD(type, field) type field; |
| Object attribute declaration. | |
| #define | IKX_DECLARE_OBJECT_END(obj) |
| End of an object declaration. | |
| #define | IKX_DECLARE_HIDED_OBJECT(obj) |
| Declaration of an hidden object. | |
| #define | IKX_IMPLEMENT_HIDED_OBJECT_BEGIN(obj) struct _##obj { |
| Beginning of an hidden object declaration. | |
| #define | IKX_IMPLEMENT_OBJECT_NEW(obj) |
| Implementation of the new function. | |
| #define | IKX_IMPLEMENT_OBJECT_INIT_BEGIN(obj) void obj##_init (obj* object) { |
| Beginning of the implementation of the init function. | |
| #define | IKX_IMPLEMENT_OBJECT_INIT(field, value) object->field = value; |
| Implementation of the init function. | |
| #define | IKX_IMPLEMENT_OBJECT_INIT_KOBJECT(field, type) object->field = type##_new (); |
| Implementation of the init function for the object type KOBJECT. | |
| #define | IKX_IMPLEMENT_OBJECT_INIT_END }; |
| End of the implementation of the init function. | |
| #define | IKX_IMPLEMENT_OBJECT_BEGIN(obj) IKX_IMPLEMENT_OBJECT_NEW(obj) |
| General implementation of an object. | |
| #define | IKX_IMPLEMENT_OBJECT_DELETE_BEGIN(obj) |
| Implementation of the delete function. | |
| #define | IKX_IMPLEMENT_OBJECT_DELETE_END |
| End of the general implementation of an object. | |
| #define | IKX_IMPLEMENT_OBJECT_END IKX_IMPLEMENT_OBJECT_DELETE_END |
| End of the general implementation of an object. | |
| #define | IKX_IMPLEMENT_OBJECT_INIT_STRING_HT(field) object->field = g_hash_table_new(g_str_hash,g_str_equal); |
| Creation of an hash table for an object attribute. | |
| #define | IKX_IMPLEMENT_OBJECT_INIT_STRING_DELHT(field, fDeleteKey, fDeleteValue) object->field=g_hash_table_new_full(g_str_hash, g_str_equal, fDeleteKey, fDeleteValue); |
| Destruction of an hash table for an object attribute. | |
| #define | IKX_IMPLEMENT_OBJECT_DELETE_KOBJECT(field, type) |
| Destruction of an object attribute. | |
| #define | IKX_IMPLEMENT_OBJECT_DELETE_MALLOC(field) |
| Free memory of an object attribute. | |
| #define | IKX_IMPLEMENT_OBJECT_DELETE_KLIST(field) |
| Deletes an object attribute of KLIST type. | |
| #define | IKX_IMPLEMENT_OBJECT_DELETE_GHASHTABLE(field) |
| Deletes an object attribute of GHASHTABLE type. | |
| #define | KOBJECT_DECLARES_STRUCT(kobject) |
| Declaration of a structure. | |
| #define | KOBJECT_DECLARES_FUNTION(kobject) |
| Declaration of the main functions of an object. | |
| #define | KOBJECT_DECLARATION(kobject) |
| Declaration of both the structure the main functions of an object. | |
| #define | KOBJECT_DECLARES_FUNTION_DYNLIB(kobject, macro_api) |
| Declaration of the main functions of an object. | |
| #define | KOBJECT_DECLARATION_DYNLIB(kobject, macro_api) |
| Declaration of both the structure the main functions of an object. | |
| #define | KOBJECT_IMLEMENTATION(kobject) |
| Implementation of the main functions for KOBJECT. | |
Macros to use
|
|
Value: Declaration of an hidden object.
|
|
|
Beginning of an object declaration.
|
|
|
Value: End of an object declaration.
|
|
|
Object attribute declaration.
|
|
|
Beginning of an hidden object declaration.
|
|
|
General implementation of an object. Implementation of the new function. End of the implementation of the init function
|
|
|
Value: Implementation of the delete function.
|
|
|
Value: Deletes an object attribute of GHASHTABLE type.
|
|
|
Value: Deletes an object attribute of KLIST type.
|
|
|
Value: Destruction of an object attribute.
|
|
|
Value: Free memory of an object attribute.
|
|
|
Implementation of the init function.
|
|
|
Beginning of the implementation of the init function.
|
|
|
Implementation of the init function for the object type KOBJECT.
|
|
|
Destruction of an hash table for an object attribute.
|
|
|
Creation of an hash table for an object attribute.
|
|
|
Value: Implementation of the new function.
|
|
|
Value: Declaration of both the structure the main functions of an object.
|
|
|
Value: Declaration of both the structure the main functions of an object. This macro concerns the dynamic library
|
|
|
Value: Declaration of the main functions of an object.
|
|
|
Value: Declaration of the main functions of an object. This macro concerns the dynamic library
|
|
|
Value: Declaration of a structure.
|
|
|
Value: Implementation of the main functions for KOBJECT.
|
1.3.8