This commit adds a scheduler API call, ast_sched_replace that can be used
authorRussell Bryant <russell@russellbryant.com>
Fri, 17 Aug 2007 14:07:44 +0000 (14:07 +0000)
committerRussell Bryant <russell@russellbryant.com>
Fri, 17 Aug 2007 14:07:44 +0000 (14:07 +0000)
commitf5bf66bcd75d243dd4708197fb4d149e8dc4cc27
tree3a369ca76d3642f3c500f34c1d98755f66f54200
parentc78ddffb047767ecdffccbd0a426f3ca91722c24
This commit adds a scheduler API call, ast_sched_replace that can be used
in place of a very common construct.  I also used it in a number of places
in chan_sip.

  if (id > -1)
     ast_sched_del(sched, id);
  id = ast_sched_add(sched, ...);

changes to:

  ast_sched_replace(id, sched, ...);

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@79861 65c4cc65-6c06-0410-ace0-fbb531ad65f3
channels/chan_sip.c
include/asterisk/sched.h
main/sched.c