]> git.ipfire.org Git - thirdparty/asterisk.git/commit
stasis_state: Create internal stasis_state_proxy object.
authorCorey Farrell <git@cfware.com>
Fri, 20 Sep 2019 14:08:02 +0000 (10:08 -0400)
committerCorey Farrell <git@cfware.com>
Tue, 24 Sep 2019 19:33:33 +0000 (14:33 -0500)
commitf7045cefd900f64988bca9ae3233be0433bda9a4
treeae25289ef36f84b341c0ceaffb18f515a18f4dde
parentf67ae064b09df519177fcd60336eaf2645bee080
stasis_state: Create internal stasis_state_proxy object.

This improves the way which stasis_state reference counting works.
Since manager->states holds onto the proxy object instead of the real
object this allows stasis_state objects to be freed when appropriate
without use of a special state_remove function.  Additionally each
distinct eid associated with the state holds a reference to the state to
prevent early release and potentially allow easier debug of leaks.

Change-Id: I400e0db4b9afa3d5cb4ac7dad60907897e73f9a9
main/stasis_state.c