mrcp_unirtsp_server_agent.h 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. /*
  2. * Copyright 2008-2014 Arsen Chaloyan
  3. *
  4. * Licensed under the Apache License, Version 2.0 (the "License");
  5. * you may not use this file except in compliance with the License.
  6. * You may obtain a copy of the License at
  7. *
  8. * http://www.apache.org/licenses/LICENSE-2.0
  9. *
  10. * Unless required by applicable law or agreed to in writing, software
  11. * distributed under the License is distributed on an "AS IS" BASIS,
  12. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. * See the License for the specific language governing permissions and
  14. * limitations under the License.
  15. *
  16. * $Id: mrcp_unirtsp_server_agent.h 2252 2014-11-21 02:45:15Z achaloyan@gmail.com $
  17. */
  18. #ifndef MRCP_UNIRTSP_SERVER_AGENT_H
  19. #define MRCP_UNIRTSP_SERVER_AGENT_H
  20. /**
  21. * @file mrcp_unirtsp_server_agent.h
  22. * @brief Implementation of MRCP Signaling Interface using UniRTSP
  23. */
  24. #include <apr_network_io.h>
  25. #include "mrcp_sig_agent.h"
  26. APT_BEGIN_EXTERN_C
  27. /** UniRTSP config declaration */
  28. typedef struct rtsp_server_config_t rtsp_server_config_t;
  29. /** UniRTSP config */
  30. struct rtsp_server_config_t {
  31. /** Local IP address to bind to */
  32. char *local_ip;
  33. /** Local port to bind to */
  34. apr_port_t local_port;
  35. /** Resource location */
  36. char *resource_location;
  37. /** SDP origin */
  38. char *origin;
  39. /** Map of the MRCP resource names */
  40. apr_table_t *resource_map;
  41. /** Number of max RTSP connections */
  42. apr_size_t max_connection_count;
  43. /** Force destination IP address. Should be used only in case
  44. SDP contains incorrect connection address (local IP address behind NAT) */
  45. apt_bool_t force_destination;
  46. };
  47. /**
  48. * Create UniRTSP signaling agent.
  49. */
  50. MRCP_DECLARE(mrcp_sig_agent_t*) mrcp_unirtsp_server_agent_create(const char *id, rtsp_server_config_t *config, apr_pool_t *pool);
  51. /**
  52. * Allocate UniRTSP config.
  53. */
  54. MRCP_DECLARE(rtsp_server_config_t*) mrcp_unirtsp_server_config_alloc(apr_pool_t *pool);
  55. APT_END_EXTERN_C
  56. #endif /* MRCP_UNIRTSP_SERVER_AGENT_H */