Moved core logic from app_stasis to res_stasis
authorDavid M. Lee <dlee@digium.com>
Mon, 15 Apr 2013 16:43:47 +0000 (16:43 +0000)
committerDavid M. Lee <dlee@digium.com>
Mon, 15 Apr 2013 16:43:47 +0000 (16:43 +0000)
commitc599aca553a57335267406b93c856e53c5e14db4
treec1f8055e6cfc0cf5f1b6aeec5c9ec860ce6236cc
parent2450722f52401b8537e9c0ffb1192f38b7dd146d
Moved core logic from app_stasis to res_stasis

After some discussion on asterisk-dev, it was decided that the bulk of
the logic in app_stasis actually belongs in a resource module instead
of the application module.

This patch does that, leaves the app specific stuff in app_stasis, and
fixes up everything else to be consistent with that change.

 * Renamed test_app_stasis to test_res_stasis
 * Renamed app_stasis.h to stasis_app.h
   * This is still stasis application support, even though it's no
     longer in an app_ module. The name should never have been tied to
     the type of module, anyways.
 * Now that json isn't a resource module anymore, moved the
   ast_channel_snapshot_to_json function to main/stasis_channels.c,
   where it makes more sense.

Review: https://reviewboard.asterisk.org/r/2430/

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@385742 65c4cc65-6c06-0410-ace0-fbb531ad65f3
16 files changed:
apps/Makefile
apps/app_stasis.c
apps/app_stasis.exports.in [deleted file]
apps/stasis_json.c [deleted file]
include/asterisk/json.h
include/asterisk/stasis_app.h [moved from include/asterisk/app_stasis.h with 77% similarity]
include/asterisk/stasis_channels.h
main/json.c
main/manager_channels.c
main/stasis_channels.c
res/res_stasis.c [new file with mode: 0644]
res/res_stasis.exports.in [new file with mode: 0644]
res/res_stasis_websocket.c
tests/test_json.c
tests/test_res_stasis.c [moved from tests/test_app_stasis.c with 94% similarity]
tests/test_stasis_channels.c