]> git.ipfire.org Git - thirdparty/asterisk.git/commit
main/devicestate: Prevent duplicate registration of device state providers 82/782/2
authorMatt Jordan <mjordan@digium.com>
Sat, 27 Jun 2015 22:51:43 +0000 (17:51 -0500)
committerMatt Jordan <mjordan@digium.com>
Sat, 11 Jul 2015 14:59:49 +0000 (09:59 -0500)
commite545c05e35700590c9e7684ba5be0b414d6d2a73
tree84826ba3a556b1c57b200971e7ef03ace21cb604
parent47ebab959edc93a769be4e6cc959c43dad3c7dd0
main/devicestate: Prevent duplicate registration of device state providers

Currently, the device state provider API will allow you to register a
device state provider with the same case insensitive name more than
once. This could cause strange issues, as the duplicate device state
providers will not be queried when a device's state has to be polled.
This patch updates the API such that a device state provider with the
same name as one that has already registered will be rejected.

Change-Id: I4a418a12280b7b6e4960bd44f302e27cd036ceb2
main/devicestate.c