timer_proc.h 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. /*
  2. * $Id$
  3. *
  4. * Copyright (C) 2009 iptelorg GmbH
  5. *
  6. * Permission to use, copy, modify, and distribute this software for any
  7. * purpose with or without fee is hereby granted, provided that the above
  8. * copyright notice and this permission notice appear in all copies.
  9. *
  10. * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
  11. * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
  12. * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
  13. * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
  14. * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
  15. * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
  16. * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  17. */
  18. /*
  19. * History:
  20. * --------
  21. * 2009-03-10 initial version (andrei)
  22. */
  23. /**
  24. * @file
  25. * @brief SIP-router core :: timer_proc.h - separate process timers
  26. *
  27. * (unrelated to the main fast and slow timers)
  28. * @ingroup core
  29. * Module: @ref core
  30. */
  31. #ifndef __timer_proc_h
  32. #define __timer_proc_h
  33. #include "local_timer.h"
  34. /** @brief forks a separate simple sleep() periodic timer */
  35. int fork_dummy_timer(int child_id, char* desc, int make_sock,
  36. timer_function* f, void* param, int interval);
  37. /** @briefforks a timer process based on the local timer */
  38. int fork_local_timer_process(int child_id, char* desc, int make_sock,
  39. struct local_timer** lt_h);
  40. #endif /*__timer_proc_h*/
  41. /* vi: set ts=4 sw=4 tw=79:ai:cindent: */