channel_internal.h 1.3 KB

1234567891011121314151617181920212223242526272829
  1. /*
  2. * Asterisk -- An open source telephony toolkit.
  3. *
  4. * Copyright (C) 1999 - 2012, Digium, Inc.
  5. *
  6. * See http://www.asterisk.org for more information about
  7. * the Asterisk project. Please do not directly contact
  8. * any of the maintainers of this project for assistance;
  9. * the project provides a web site, mailing lists and IRC
  10. * channels for your use.
  11. *
  12. * This program is free software, distributed under the terms of
  13. * the GNU General Public License Version 2. See the LICENSE file
  14. * at the top of the source tree.
  15. */
  16. /*! \file
  17. * \brief Internal channel functions for channel.c to use
  18. */
  19. #define ast_channel_internal_alloc(destructor, assignedid, requestor) __ast_channel_internal_alloc(destructor, assignedid, requestor, __FILE__, __LINE__, __PRETTY_FUNCTION__)
  20. struct ast_channel *__ast_channel_internal_alloc(void (*destructor)(void *obj), const struct ast_assigned_ids *assignedids, const struct ast_channel *requestor, const char *file, int line, const char *function);
  21. void ast_channel_internal_finalize(struct ast_channel *chan);
  22. int ast_channel_internal_is_finalized(struct ast_channel *chan);
  23. void ast_channel_internal_cleanup(struct ast_channel *chan);
  24. int ast_channel_internal_setup_topics(struct ast_channel *chan);
  25. void ast_channel_internal_errno_set(enum ast_channel_error error);
  26. enum ast_channel_error ast_channel_internal_errno(void);