--- deliantra/server/include/cfperl.h 2007/01/07 02:39:14 1.47 +++ deliantra/server/include/cfperl.h 2007/01/26 22:06:30 1.52 @@ -62,6 +62,7 @@ void cfperl_init (); void cfperl_main (); +void cfperl_emergency_save (); ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// @@ -132,7 +133,6 @@ enum { F_DESTROYED = 0x01, - F_BORROWED = 0x02, }; // object is delete'd after the refcount reaches 0 @@ -142,6 +142,7 @@ MTH void refcnt_inc () const { ++refcnt; } MTH void refcnt_dec () const { --refcnt; } + MTH int refcnt_cnt () const; // check wether the object has died and destroy MTH void refcnt_chk () { if (refcnt <= 0) do_check (); } @@ -165,7 +166,8 @@ AV *cb; // CF+ callbacks shstr attach; // generic extension attachment information - void optimise (); // possibly save some memory by destroying unneeded data + void sever_self (); // sever this object from its self, if it has one. + void optimise (); // possibly save some memory by destroying unneeded data attachable () : flags (0), refcnt (0), self (0), cb (0), attach (0) @@ -182,7 +184,7 @@ attachable &operator =(const attachable &src); bool invoke (event_type event, ...); - void instantiate (); + MTH void instantiate (); void reattach (); protected: