~ubuntu-branches/ubuntu/trusty/lifelines/trusty

« back to all changes in this revision

Viewing changes to src/hdrs/vtable.h

  • Committer: Bazaar Package Importer
  • Author(s): Felipe Augusto van de Wiel (faw)
  • Date: 2007-05-23 23:49:53 UTC
  • mfrom: (3.1.3 edgy)
  • Revision ID: james.westby@ubuntu.com-20070523234953-ogno9rnbmth61i7p
Tags: 3.0.50-2etch1
* Changing docs/ll-reportmanual.xml and docs/ll-userguide.xml to fix
  documentation build problems (Closes: #418347).

* lifelines-reports
  - Adding a dependency to lifelines >= 3.0.50 to prevent file conflict.
    (Closes: #405500).

* Updating French translation. Thanks to Bernard Adrian. (Closes: #356671).

Show diffs side-by-side

added added

removed removed

Lines of Context:
7
7
*/
8
8
/*==============================================================
9
9
 * vtable.h -- vtables for objects
 
10
 * This header is used by object implementations.
 
11
 * Clients merely using objects use object.h.
10
12
 *============================================================*/
11
13
 
12
14
#ifndef vtable_h_included
29
31
        int (*addref_fnc)(OBJECT obj);
30
32
                /* decrement refcount & delete if 0 */
31
33
                /* returns new refcount, or -1 if not refcounted */
32
 
        int (*delref_fnc)(OBJECT obj);
 
34
        int (*release_fnc)(OBJECT obj);
33
35
                /* returns a copy of object */
34
36
        OBJECT (*copy_fnc)(OBJECT obj, int deep);
35
37
                /* returns name of object type (doesn't need to be freed) */
45
47
        int ref;
46
48
};
47
49
 
 
50
 
 
51
/* vtable functions implementations */
 
52
 
48
53
/* for any object (content to use vtable_class) */
49
54
const char * generic_get_type_name(OBJECT obj);
 
55
 
50
56
/* for non-refcountable object */
51
57
int nonrefcountable_isref(OBJECT obj);
 
58
 
52
59
/* for refcountable object (with refcount right after vtable) */
53
60
int refcountable_isref(OBJECT obj);
54
61
int refcountable_addref(OBJECT obj);
55
 
int refcountable_delref(OBJECT obj);
 
62
int refcountable_release(OBJECT obj);
56
63
 
57
64
#endif /* vtable_h_included */
58
65