hxbrdcst.h
上传用户:zhongxx05
上传日期:2007-06-06
资源大小:33641k
文件大小:11k
源码类别:

Symbian

开发平台:

C/C++

  1. /* ***** BEGIN LICENSE BLOCK ***** 
  2.  * Version: RCSL 1.0/RPSL 1.0 
  3.  *  
  4.  * Portions Copyright (c) 1995-2002 RealNetworks, Inc. All Rights Reserved. 
  5.  *      
  6.  * The contents of this file, and the files included with this file, are 
  7.  * subject to the current version of the RealNetworks Public Source License 
  8.  * Version 1.0 (the "RPSL") available at 
  9.  * http://www.helixcommunity.org/content/rpsl unless you have licensed 
  10.  * the file under the RealNetworks Community Source License Version 1.0 
  11.  * (the "RCSL") available at http://www.helixcommunity.org/content/rcsl, 
  12.  * in which case the RCSL will apply. You may also obtain the license terms 
  13.  * directly from RealNetworks.  You may not use this file except in 
  14.  * compliance with the RPSL or, if you have a valid RCSL with RealNetworks 
  15.  * applicable to this file, the RCSL.  Please see the applicable RPSL or 
  16.  * RCSL for the rights, obligations and limitations governing use of the 
  17.  * contents of the file.  
  18.  *  
  19.  * This file is part of the Helix DNA Technology. RealNetworks is the 
  20.  * developer of the Original Code and owns the copyrights in the portions 
  21.  * it created. 
  22.  *  
  23.  * This file, and the files included with this file, is distributed and made 
  24.  * available on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 
  25.  * EXPRESS OR IMPLIED, AND REALNETWORKS HEREBY DISCLAIMS ALL SUCH WARRANTIES, 
  26.  * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, FITNESS 
  27.  * FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 
  28.  * 
  29.  * Technology Compatibility Kit Test Suite(s) Location: 
  30.  *    http://www.helixcommunity.org/content/tck 
  31.  * 
  32.  * Contributor(s): 
  33.  *  
  34.  * ***** END LICENSE BLOCK ***** */ 
  35. #ifndef _HXBRDCST_H_
  36. #define _HXBRDCST_H_
  37. /*
  38.  * Forward declarations of some interfaces defined here-in.
  39.  */
  40. typedef _INTERFACE  IHXRemoteBroadcastServices               IHXRemoteBroadcastServices;
  41. typedef _INTERFACE  IHXRemoteBroadcastConfiguration          IHXRemoteBroadcastConfiguration;
  42. typedef _INTERFACE  IHXRemoteBroadcastConfigurationResponse  IHXRemoteBroadcastConfigurationResponse;
  43. typedef _INTERFACE  IHXAuthResponse  IHXAuthResponse;
  44. /****************************************************************************
  45.  * 
  46.  *  Interface:
  47.  * 
  48.  * IHXRemoteBroadcastServices
  49.  * 
  50.  *  Purpose:
  51.  * 
  52.  *       To act as the interface to the RealSystem iQ broadcast engine in
  53.  *  contexts that exist outside of the Helix Server process space.     
  54.  * 
  55.  *  IID_IHXRemoteBroadcastServices:
  56.  * 
  57.  *    {8F933081-27B6-11d5-9569-00902742E832}
  58.  */
  59. DEFINE_GUID(IID_IHXRemoteBroadcastServices, 0x8f933081, 
  60.     0x27b6, 0x11d5, 0x95, 0x69, 0x0, 0x90, 0x27, 0x42, 0xe8, 0x32);
  61. #undef  INTERFACE
  62. #define INTERFACE   IHXRemoteBroadcastServices
  63. DECLARE_INTERFACE_(IHXRemoteBroadcastServices, IUnknown)
  64. {
  65.     /*
  66.      * IUnknown methods
  67.      */
  68.     STDMETHOD(QueryInterface) (THIS_
  69. REFIID riid,
  70. void** ppvObj) PURE;
  71.     STDMETHOD_(ULONG32,AddRef) (THIS) PURE;
  72.     STDMETHOD_(ULONG32,Release) (THIS) PURE;
  73.     /*
  74.      * IHXRemoteBroadcastServices Methods
  75.      */
  76.     /************************************************************************
  77.      * Method:
  78.      *     IHXRemoteBroadcastServices::InitRemoteBroadcast
  79.      * Purpose:
  80.      *      Load an initial configuration for the remote broadcast plugin
  81.      *
  82.      */
  83.     STDMETHOD(InitRemoteBroadcast) (THIS_
  84. IHXBuffer* pConfgFilePath) PURE;
  85.     /************************************************************************
  86.      *  Method:
  87.      *      IHXRemoteBroadcastServices::InitRemoteBroadcast
  88.      *  Purpose:
  89.      *       Load an initial configuration for the remote broadcast plugin
  90.      *       : the RBS Authentication version
  91.      */
  92.     STDMETHOD(InitRemoteBroadcast)      (THIS_
  93.                                         IHXBuffer* pConfgFilePath,
  94.                                         IHXAuthResponse *pAuthResponse,
  95.                                         IHXBuffer* pSessionName) PURE;
  96.     
  97.     /************************************************************************
  98.      * Method:
  99.      *     IHXRemoteBroadcastServices::NewRemoteBroadcastSession
  100.      * Purpose:
  101.      *      Initiate a new broadcast session
  102.      *
  103.      */
  104.     STDMETHOD(NewRemoteBroadcastSession)  (THIS_
  105.    IHXBuffer*          pSessionName,
  106.    IUnknown* pSessionSource) PURE;
  107.     /************************************************************************
  108.      * Method:
  109.      *     IHXRemoteBroadcastServices::Process
  110.      * Purpose:
  111.      *      Yeild processing time to the scheduler
  112.      *
  113.      */
  114.     STDMETHOD(Process)             (THIS) PURE;
  115.     /************************************************************************
  116.      * Method:
  117.      *     IHXRemoteBroadcastServices::Close
  118.      * Purpose:
  119.      *      Cleanup Remote Broadcast Services. 
  120.      *
  121.      */
  122.     STDMETHOD(Close)             (THIS) PURE;
  123.     /************************************************************************
  124.      * Method:
  125.      *     IHXRemoteBroadcastServices::GetTime
  126.      * Purpose:
  127.      *      Get current scheduler time
  128.      *
  129.      */
  130.     STDMETHOD_(UINT32,GetTime)     (THIS) PURE;
  131. };
  132. // {C88D3530-1455-11d6-93D7-0002B31090EC}
  133. DEFINE_GUID(IID_IHXAuthResponse, 
  134. 0xc88d3530, 0x1455, 0x11d6, 0x93, 0xd7, 0x0, 0x2, 0xb3, 0x10, 0x90, 0xec);
  135. #undef  INTERFACE
  136. #define INTERFACE   IHXAuthResponse
  137. DECLARE_INTERFACE_(IHXAuthResponse, IUnknown)
  138. {
  139.     /*
  140.      * IUnknown methods
  141.      */
  142.     STDMETHOD(QueryInterface) (THIS_
  143. REFIID riid,
  144. void** ppvObj) PURE;
  145.     STDMETHOD_(ULONG32,AddRef) (THIS) PURE;
  146.     STDMETHOD_(ULONG32,Release) (THIS) PURE;
  147.     /*
  148.      * IHXAuthResponse Methods
  149.      */
  150.     STDMETHOD(AuthDone)  (THIS_
  151. BOOL bAuthSucceeded) PURE;
  152. };
  153. /****************************************************************************
  154.  * 
  155.  *  Interface:
  156.  * 
  157.  * IHXRemoteBroadcastConfiguration
  158.  * 
  159.  *  Purpose:
  160.  * 
  161.  *     To provide a simple interface to the XML based config
  162.  * 
  163.  *  IID_IHXRemoteBroadcastConfiguration:
  164.  *
  165.  *  {8F933083-27B6-11d5-9569-00902742E832}
  166.  * 
  167.  */
  168. DEFINE_GUID(IID_IHXRemoteBroadcastConfiguration, 
  169.     0x8f933083, 0x27b6, 0x11d5, 0x95, 0x69, 0x0, 0x90, 0x27, 0x42, 0xe8, 0x32);
  170. #undef  INTERFACE
  171. #define INTERFACE   IHXRemoteBroadcastConfiguration
  172. DECLARE_INTERFACE_(IHXRemoteBroadcastConfiguration, IUnknown)
  173. {
  174.     /*
  175.      * IUnknown methods
  176.      */
  177.     STDMETHOD(QueryInterface) (THIS_
  178. REFIID riid,
  179. void** ppvObj) PURE;
  180.     STDMETHOD_(ULONG32,AddRef) (THIS) PURE;
  181.     STDMETHOD_(ULONG32,Release) (THIS) PURE;
  182.     /*
  183.      * IHXRemoteBroadcastServices Methods
  184.      */
  185.     STDMETHOD(Init)  (THIS_
  186.  IHXRemoteBroadcastConfigurationResponse* pResponse) PURE;
  187.     /************************************************************************
  188.      * Method:
  189.      *     IHXRemoteBroadcastConfiguration::AddDestination
  190.      * Purpose:
  191.      *
  192.      *    Add a new destination to which to broadcast.  Destinations
  193.      *  are defined as an IHXValues struct with the following fields
  194.      *  
  195.      *  Name             <string>      unique user defined name of destination 
  196.      *  RelayMode        <int>         TRUE or FALSE, should always be FALSE for remote
  197.      *  Protocol         <string>      protocol string: <udp/unicast>, <udp/multicast>, <tcp>
  198.      *  Password         <string>      user defined
  199.      *  SecurityType     <string>      'None' or 'Basic' 
  200.      *  Address          <string>      hostname or IP of remote receiver
  201.      *  PortRange        <string/int>  outbound port range to use (should match receiver)
  202.      *  PathPrefix       <string>      prefix of media to broadcast (can be * for wildcard)
  203.      *  ResendSupported  <int>         TRUE or FALSE
  204.      *  FECLevel         <int>         % redundancy to use for FEC    
  205.      *   TTL              <int>         multicast packet time to live.
  206.      *
  207.      *   TCPReconectTimeout      <int>     
  208.      *   TCPWouldBlockedTimeout  <int>
  209.      *   RedundancySendInterval  <int>
  210.      *   AcquisitionDataInterval <int>  rate (in seconds) at which to send header blocks
  211.      *                                  for stream (re)establishment.
  212.      */
  213.     STDMETHOD(AddDestination)    (THIS_
  214.  IHXValues*   pDestination,
  215.  BOOL          bOverwrite) PURE;
  216.     
  217.     STDMETHOD(UpdateDestination)        (THIS_
  218.  IHXValues*   pDestination) PURE;
  219.     
  220.     STDMETHOD(RemoveDestination)  (THIS_
  221.  const char*   pDestinationName) PURE;
  222.     
  223.     STDMETHOD(RetrieveDestination)      (THIS_
  224.  const char*   pDestinationName, 
  225.  REF(IHXValues*) /*OUT*/ pDestination) PURE;
  226.      /************************************************************************
  227.      * Method:
  228.      *     IHXRemoteBroadcastConfiguration::AddPullSplit
  229.      * Purpose:
  230.      *
  231.      *    Add a new pullsplit to which to broadcast.  PullSplits
  232.      *  are defined as an IHXValues struct with the following fields
  233.      *  
  234.      *  Name             <string>      unique user defined name of destination 
  235.      *  ListenPort       <int>         port on which pull split connections are accepted
  236.      *  LocalAddress     <string>      address of interface to which to bind
  237.      *   PathPrefix       <string>      prefix of media to broadcast (can be * for wildcard)
  238.      *  Password         <string>      user defined
  239.      *  SecurityType     <string>      'None' or 'Basic' 
  240.      *
  241.      *   TCPReconectTimeout      <int>     
  242.      *   TCPWouldBlockedTimeout  <int>
  243.      */
  244.     STDMETHOD(AddPullSplit)            (THIS_
  245.  IHXValues*   pPullSplit,
  246.  BOOL          bOverwrite) PURE;
  247.     
  248.     STDMETHOD(UpdatePullSplit)          (THIS_
  249.  IHXValues*   pPullSplit) PURE;
  250.     
  251.     STDMETHOD(RemovePullSplit)          (THIS_
  252.  const char*   pPullSplitName) PURE;
  253.     
  254.     STDMETHOD(RetrievePullSplit)         (THIS_
  255.  const char*   pPullSplitName, 
  256.  REF(IHXValues*) /*OUT*/ pPullSplit) PURE;
  257.     STDMETHOD(Commit)  (THIS) PURE;
  258. };
  259. /****************************************************************************
  260.  * 
  261.  *  Interface:
  262.  * 
  263.  * IHXRemoteBroadcastConfigurationResponse
  264.  * 
  265.  *  Purpose:
  266.  * 
  267.  *     To notify the user of IHXRemoteBroadcastConfiguration of the status
  268.  * asychronous configuration modifications.
  269.  * 
  270.  *  IID_IHXRemoteBroadcastConfigurationResponse:
  271.  *
  272.  *  {67C1BA10-39BC-11d5-956A-00902742E832}
  273.  * 
  274.  */
  275. DEFINE_GUID(IID_IHXRemoteBroadcastConfigurationResponse, 
  276. 0x67c1ba10, 0x39bc, 0x11d5, 0x95, 0x6a, 0x0, 0x90, 0x27, 0x42, 0xe8, 0x32);
  277. #undef  INTERFACE
  278. #define INTERFACE   IHXRemoteBroadcastConfigurationResponse
  279. DECLARE_INTERFACE_(IHXRemoteBroadcastConfigurationResponse, IUnknown)
  280. {
  281.     STDMETHOD(CommitDone)  (THIS_
  282.  HX_RESULT hResult) PURE;
  283. };
  284. #endif /* _HXBRDCST_H_ */