returning reference pointer on get_ref()

This commit is contained in:
Martin Willi
2008-05-06 10:55:42 +00:00
parent cc0cb93553
commit ff6836716c
6 changed files with 19 additions and 29 deletions
+3 -7
View File
@@ -322,15 +322,11 @@ struct peer_cfg_t {
bool (*equals)(peer_cfg_t *this, peer_cfg_t *other);
/**
* Get a new reference.
* Increase reference count.
*
* Get a new reference to this peer_cfg by increasing
* it's internal reference counter.
* Do not call get_ref or any other function until you
* already have a reference. Otherwise the object may get
* destroyed while calling get_ref(),
* @return reference to this
*/
void (*get_ref) (peer_cfg_t *this);
peer_cfg_t* (*get_ref) (peer_cfg_t *this);
/**
* Destroys the peer_cfg object.