[asterisk-commits] kmoore: branch kmoore/stasis-device_state r383339 - /team/kmoore/stasis-devic...
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Tue Mar 19 10:42:24 CDT 2013
Author: kmoore
Date: Tue Mar 19 10:42:20 2013
New Revision: 383339
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=383339
Log:
Make sure the cachability flag is actually set
Modified:
team/kmoore/stasis-device_state/main/devicestate.c
Modified: team/kmoore/stasis-device_state/main/devicestate.c
URL: http://svnview.digium.com/svn/asterisk/team/kmoore/stasis-device_state/main/devicestate.c?view=diff&rev=383339&r1=383338&r2=383339
==============================================================================
--- team/kmoore/stasis-device_state/main/devicestate.c (original)
+++ team/kmoore/stasis-device_state/main/devicestate.c Tue Mar 19 10:42:20 2013
@@ -544,7 +544,7 @@
ast_free(device_state->eid);
}
-static struct stasis_device_state *device_state_alloc(const char *device, enum ast_device_state state, enum ast_devstate_cache cached, const struct ast_eid *eid)
+static struct stasis_device_state *device_state_alloc(const char *device, enum ast_device_state state, enum ast_devstate_cache cachable, const struct ast_eid *eid)
{
RAII_VAR(struct stasis_device_state *, new_device_state, ao2_alloc(sizeof(*new_device_state), device_state_dtor), ao2_cleanup);
@@ -554,6 +554,7 @@
ast_string_field_set(new_device_state, device, device);
new_device_state->state = state;
+ new_device_state->cachable = cachable;
if (eid) {
char eid_str[20];
More information about the asterisk-commits
mailing list