mrcp_unirtsp_client_agent.h 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  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_client_agent.h 2136 2014-07-04 06:33:36Z achaloyan@gmail.com $
  17. */
  18. #ifndef MRCP_UNIRTSP_CLIENT_AGENT_H
  19. #define MRCP_UNIRTSP_CLIENT_AGENT_H
  20. /**
  21. * @file mrcp_unirtsp_client_agent.h
  22. * @brief Implementation of MRCP Signaling Interface using UniRTSP
  23. */
  24. #include <apr_network_io.h>
  25. #include "apt_string.h"
  26. #include "mrcp_sig_agent.h"
  27. APT_BEGIN_EXTERN_C
  28. /** Declaration of UniRTSP agent config */
  29. typedef struct rtsp_client_config_t rtsp_client_config_t;
  30. /** Configuration of UniRTSP agent */
  31. struct rtsp_client_config_t {
  32. /** SDP origin */
  33. char *origin;
  34. /** Number of max RTSP connections */
  35. apr_size_t max_connection_count;
  36. /** Request timeout */
  37. apr_size_t request_timeout;
  38. };
  39. /**
  40. * Create UniRTSP signaling agent.
  41. */
  42. MRCP_DECLARE(mrcp_sig_agent_t*) mrcp_unirtsp_client_agent_create(const char *id, rtsp_client_config_t *config, apr_pool_t *pool);
  43. /**
  44. * Allocate UniRTSP config.
  45. */
  46. MRCP_DECLARE(rtsp_client_config_t*) mrcp_unirtsp_client_config_alloc(apr_pool_t *pool);
  47. APT_END_EXTERN_C
  48. #endif /* MRCP_UNIRTSP_CLIENT_AGENT_H */