]> git.ipfire.org Git - thirdparty/asterisk.git/commit
main/devicestate: Prevent duplicate registration of device state providers 84/784/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 15:24:39 +0000 (10:24 -0500)
commit328f0be806cc8236288c8760007ab149a865a196
treebbffadb701473c8f6ce482741a9a59d137e73173
parente51d86682a33ab410c3fa0ceb069657614915ef9
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