LCOV - code coverage report
Current view: top level - obj-x86_64-pc-linux-gnu/ipc/ipdl - PRtspController.cpp (source / functions) Hit Total Coverage
Test: output.info Lines: 0 215 0.0 %
Date: 2017-07-14 16:53:18 Functions: 0 47 0.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : //
       2             : // Automatically generated by ipdlc.
       3             : // Edit at your own risk
       4             : //
       5             : 
       6             : 
       7             : #include "mozilla/net/PRtspController.h"
       8             : 
       9             : namespace mozilla {
      10             : namespace net {
      11             : namespace PRtspController {
      12             : 
      13             : nsresult
      14           0 : CreateEndpoints(
      15             :         base::ProcessId aParentDestPid,
      16             :         base::ProcessId aChildDestPid,
      17             :         mozilla::ipc::Endpoint<mozilla::net::PRtspControllerParent>* aParent,
      18             :         mozilla::ipc::Endpoint<mozilla::net::PRtspControllerChild>* aChild)
      19             : {
      20           0 :     return mozilla::ipc::CreateEndpoints(mozilla::ipc::PrivateIPDLInterface(), aParentDestPid, aChildDestPid, PRtspControllerMsgStart, PRtspControllerMsgStartChild, aParent, aChild);
      21             : }
      22             : void
      23           0 : Transition(
      24             :         MessageType msg,
      25             :         State* next)
      26             : {
      27           0 :     switch ((*(next))) {
      28             :     case __Null:
      29           0 :         if ((Msg___delete____ID) == (msg)) {
      30           0 :             (*(next)) = __Dead;
      31             :         }
      32           0 :         break;
      33             :     case __Dead:
      34           0 :         mozilla::ipc::LogicError("__delete__()d actor");
      35           0 :         break;
      36             :     default:
      37           0 :         mozilla::ipc::LogicError("corrupted actor state");
      38           0 :         break;
      39             :     }
      40           0 : }
      41             : IPC::Message*
      42           0 : Msg_AsyncOpen(int32_t routingId)
      43             : {
      44           0 :     return new IPC::Message(routingId, Msg_AsyncOpen__ID, 0, IPC::Message::NOT_NESTED, IPC::Message::NORMAL_PRIORITY, IPC::Message::COMPRESSION_NONE, "PRtspController::Msg_AsyncOpen", true);
      45             : }
      46             : IPC::Message*
      47           0 : Msg_Play(int32_t routingId)
      48             : {
      49           0 :     return new IPC::Message(routingId, Msg_Play__ID, 0, IPC::Message::NOT_NESTED, IPC::Message::NORMAL_PRIORITY, IPC::Message::COMPRESSION_NONE, "PRtspController::Msg_Play", true);
      50             : }
      51             : IPC::Message*
      52           0 : Msg_Pause(int32_t routingId)
      53             : {
      54           0 :     return new IPC::Message(routingId, Msg_Pause__ID, 0, IPC::Message::NOT_NESTED, IPC::Message::NORMAL_PRIORITY, IPC::Message::COMPRESSION_NONE, "PRtspController::Msg_Pause", true);
      55             : }
      56             : IPC::Message*
      57           0 : Msg_Resume(int32_t routingId)
      58             : {
      59           0 :     return new IPC::Message(routingId, Msg_Resume__ID, 0, IPC::Message::NOT_NESTED, IPC::Message::NORMAL_PRIORITY, IPC::Message::COMPRESSION_NONE, "PRtspController::Msg_Resume", true);
      60             : }
      61             : IPC::Message*
      62           0 : Msg_Suspend(int32_t routingId)
      63             : {
      64           0 :     return new IPC::Message(routingId, Msg_Suspend__ID, 0, IPC::Message::NOT_NESTED, IPC::Message::NORMAL_PRIORITY, IPC::Message::COMPRESSION_NONE, "PRtspController::Msg_Suspend", true);
      65             : }
      66             : IPC::Message*
      67           0 : Msg_Seek(int32_t routingId)
      68             : {
      69           0 :     return new IPC::Message(routingId, Msg_Seek__ID, 0, IPC::Message::NOT_NESTED, IPC::Message::NORMAL_PRIORITY, IPC::Message::COMPRESSION_NONE, "PRtspController::Msg_Seek", true);
      70             : }
      71             : IPC::Message*
      72           0 : Msg_Stop(int32_t routingId)
      73             : {
      74           0 :     return new IPC::Message(routingId, Msg_Stop__ID, 0, IPC::Message::NOT_NESTED, IPC::Message::NORMAL_PRIORITY, IPC::Message::COMPRESSION_NONE, "PRtspController::Msg_Stop", true);
      75             : }
      76             : IPC::Message*
      77           0 : Msg_PlaybackEnded(int32_t routingId)
      78             : {
      79           0 :     return new IPC::Message(routingId, Msg_PlaybackEnded__ID, 0, IPC::Message::NOT_NESTED, IPC::Message::NORMAL_PRIORITY, IPC::Message::COMPRESSION_NONE, "PRtspController::Msg_PlaybackEnded", true);
      80             : }
      81             : IPC::Message*
      82           0 : Msg___delete__(int32_t routingId)
      83             : {
      84           0 :     return new IPC::Message(routingId, Msg___delete____ID, 0, IPC::Message::NOT_NESTED, IPC::Message::NORMAL_PRIORITY, IPC::Message::COMPRESSION_NONE, "PRtspController::Msg___delete__", true);
      85             : }
      86             : IPC::Message*
      87           0 : Reply___delete__(int32_t routingId)
      88             : {
      89           0 :     return new IPC::Message(routingId, Reply___delete____ID, 0, IPC::Message::NOT_NESTED, IPC::Message::NORMAL_PRIORITY, IPC::Message::COMPRESSION_NONE, "PRtspController::Reply___delete__", true);
      90             : }
      91             : IPC::Message*
      92           0 : Msg_OnMediaDataAvailable(int32_t routingId)
      93             : {
      94           0 :     return new IPC::Message(routingId, Msg_OnMediaDataAvailable__ID, 0, IPC::Message::NOT_NESTED, IPC::Message::NORMAL_PRIORITY, IPC::Message::COMPRESSION_NONE, "PRtspController::Msg_OnMediaDataAvailable", true);
      95             : }
      96             : IPC::Message*
      97           0 : Msg_OnConnected(int32_t routingId)
      98             : {
      99           0 :     return new IPC::Message(routingId, Msg_OnConnected__ID, 0, IPC::Message::NOT_NESTED, IPC::Message::NORMAL_PRIORITY, IPC::Message::COMPRESSION_NONE, "PRtspController::Msg_OnConnected", true);
     100             : }
     101             : IPC::Message*
     102           0 : Msg_OnDisconnected(int32_t routingId)
     103             : {
     104           0 :     return new IPC::Message(routingId, Msg_OnDisconnected__ID, 0, IPC::Message::NOT_NESTED, IPC::Message::NORMAL_PRIORITY, IPC::Message::COMPRESSION_NONE, "PRtspController::Msg_OnDisconnected", true);
     105             : }
     106             : IPC::Message*
     107           0 : Msg_AsyncOpenFailed(int32_t routingId)
     108             : {
     109           0 :     return new IPC::Message(routingId, Msg_AsyncOpenFailed__ID, 0, IPC::Message::NOT_NESTED, IPC::Message::NORMAL_PRIORITY, IPC::Message::COMPRESSION_NONE, "PRtspController::Msg_AsyncOpenFailed", true);
     110             : }
     111             : 
     112             : } // namespace PRtspController
     113             : } // namespace net
     114             : } // namespace mozilla
     115             : 
     116             : //-----------------------------------------------------------------------------
     117             : // Method definitions for the IPDL type |union RtspMetaValue|
     118             : //
     119             : namespace mozilla {
     120             : namespace net {
     121           0 : auto RtspMetaValue::MaybeDestroy(Type aNewType) -> bool
     122             : {
     123           0 :     if ((mType) == (T__None)) {
     124           0 :         return true;
     125             :     }
     126           0 :     if ((mType) == (aNewType)) {
     127           0 :         return false;
     128             :     }
     129           0 :     switch (mType) {
     130             :     case Tbool:
     131             :         {
     132           0 :             (ptr_bool())->~bool__tdef();
     133           0 :             break;
     134             :         }
     135             :     case Tuint8_t:
     136             :         {
     137           0 :             (ptr_uint8_t())->~uint8_t__tdef();
     138           0 :             break;
     139             :         }
     140             :     case Tuint32_t:
     141             :         {
     142           0 :             (ptr_uint32_t())->~uint32_t__tdef();
     143           0 :             break;
     144             :         }
     145             :     case Tuint64_t:
     146             :         {
     147           0 :             (ptr_uint64_t())->~uint64_t__tdef();
     148           0 :             break;
     149             :         }
     150             :     case TnsCString:
     151             :         {
     152           0 :             (ptr_nsCString())->~nsCString__tdef();
     153           0 :             break;
     154             :         }
     155             :     default:
     156             :         {
     157           0 :             mozilla::ipc::LogicError("not reached");
     158           0 :             break;
     159             :         }
     160             :     }
     161           0 :     return true;
     162             : }
     163             : 
     164           0 : MOZ_IMPLICIT RtspMetaValue::RtspMetaValue(const bool& aOther)
     165             : {
     166           0 :     new (mozilla::KnownNotNull, ptr_bool()) bool(aOther);
     167           0 :     mType = Tbool;
     168           0 : }
     169             : 
     170           0 : MOZ_IMPLICIT RtspMetaValue::RtspMetaValue(const uint8_t& aOther)
     171             : {
     172           0 :     new (mozilla::KnownNotNull, ptr_uint8_t()) uint8_t(aOther);
     173           0 :     mType = Tuint8_t;
     174           0 : }
     175             : 
     176           0 : MOZ_IMPLICIT RtspMetaValue::RtspMetaValue(const uint32_t& aOther)
     177             : {
     178           0 :     new (mozilla::KnownNotNull, ptr_uint32_t()) uint32_t(aOther);
     179           0 :     mType = Tuint32_t;
     180           0 : }
     181             : 
     182           0 : MOZ_IMPLICIT RtspMetaValue::RtspMetaValue(const uint64_t& aOther)
     183             : {
     184           0 :     new (mozilla::KnownNotNull, ptr_uint64_t()) uint64_t(aOther);
     185           0 :     mType = Tuint64_t;
     186           0 : }
     187             : 
     188           0 : MOZ_IMPLICIT RtspMetaValue::RtspMetaValue(const nsCString& aOther)
     189             : {
     190           0 :     new (mozilla::KnownNotNull, ptr_nsCString()) nsCString(aOther);
     191           0 :     mType = TnsCString;
     192           0 : }
     193             : 
     194           0 : MOZ_IMPLICIT RtspMetaValue::RtspMetaValue(const RtspMetaValue& aOther)
     195             : {
     196           0 :     (aOther).AssertSanity();
     197           0 :     switch ((aOther).type()) {
     198             :     case Tbool:
     199             :         {
     200           0 :             new (mozilla::KnownNotNull, ptr_bool()) bool((aOther).get_bool());
     201           0 :             break;
     202             :         }
     203             :     case Tuint8_t:
     204             :         {
     205           0 :             new (mozilla::KnownNotNull, ptr_uint8_t()) uint8_t((aOther).get_uint8_t());
     206           0 :             break;
     207             :         }
     208             :     case Tuint32_t:
     209             :         {
     210           0 :             new (mozilla::KnownNotNull, ptr_uint32_t()) uint32_t((aOther).get_uint32_t());
     211           0 :             break;
     212             :         }
     213             :     case Tuint64_t:
     214             :         {
     215           0 :             new (mozilla::KnownNotNull, ptr_uint64_t()) uint64_t((aOther).get_uint64_t());
     216           0 :             break;
     217             :         }
     218             :     case TnsCString:
     219             :         {
     220           0 :             new (mozilla::KnownNotNull, ptr_nsCString()) nsCString((aOther).get_nsCString());
     221           0 :             break;
     222             :         }
     223             :     case T__None:
     224             :         {
     225           0 :             break;
     226             :         }
     227             :     default:
     228             :         {
     229           0 :             mozilla::ipc::LogicError("unreached");
     230           0 :             return;
     231             :         }
     232             :     }
     233           0 :     mType = (aOther).type();
     234             : }
     235             : 
     236           0 : RtspMetaValue::~RtspMetaValue()
     237             : {
     238           0 :     static_cast<void>(MaybeDestroy(T__None));
     239           0 : }
     240             : 
     241           0 : auto RtspMetaValue::operator=(const bool& aRhs) -> RtspMetaValue&
     242             : {
     243           0 :     if (MaybeDestroy(Tbool)) {
     244           0 :         new (mozilla::KnownNotNull, ptr_bool()) bool;
     245             :     }
     246           0 :     (*(ptr_bool())) = aRhs;
     247           0 :     mType = Tbool;
     248           0 :     return (*(this));
     249             : }
     250             : 
     251           0 : auto RtspMetaValue::operator=(const uint8_t& aRhs) -> RtspMetaValue&
     252             : {
     253           0 :     if (MaybeDestroy(Tuint8_t)) {
     254           0 :         new (mozilla::KnownNotNull, ptr_uint8_t()) uint8_t;
     255             :     }
     256           0 :     (*(ptr_uint8_t())) = aRhs;
     257           0 :     mType = Tuint8_t;
     258           0 :     return (*(this));
     259             : }
     260             : 
     261           0 : auto RtspMetaValue::operator=(const uint32_t& aRhs) -> RtspMetaValue&
     262             : {
     263           0 :     if (MaybeDestroy(Tuint32_t)) {
     264           0 :         new (mozilla::KnownNotNull, ptr_uint32_t()) uint32_t;
     265             :     }
     266           0 :     (*(ptr_uint32_t())) = aRhs;
     267           0 :     mType = Tuint32_t;
     268           0 :     return (*(this));
     269             : }
     270             : 
     271           0 : auto RtspMetaValue::operator=(const uint64_t& aRhs) -> RtspMetaValue&
     272             : {
     273           0 :     if (MaybeDestroy(Tuint64_t)) {
     274           0 :         new (mozilla::KnownNotNull, ptr_uint64_t()) uint64_t;
     275             :     }
     276           0 :     (*(ptr_uint64_t())) = aRhs;
     277           0 :     mType = Tuint64_t;
     278           0 :     return (*(this));
     279             : }
     280             : 
     281           0 : auto RtspMetaValue::operator=(const nsCString& aRhs) -> RtspMetaValue&
     282             : {
     283           0 :     if (MaybeDestroy(TnsCString)) {
     284           0 :         new (mozilla::KnownNotNull, ptr_nsCString()) nsCString;
     285             :     }
     286           0 :     (*(ptr_nsCString())) = aRhs;
     287           0 :     mType = TnsCString;
     288           0 :     return (*(this));
     289             : }
     290             : 
     291           0 : auto RtspMetaValue::operator=(const RtspMetaValue& aRhs) -> RtspMetaValue&
     292             : {
     293           0 :     (aRhs).AssertSanity();
     294           0 :     Type t = (aRhs).type();
     295           0 :     switch (t) {
     296             :     case Tbool:
     297             :         {
     298           0 :             if (MaybeDestroy(t)) {
     299           0 :                 new (mozilla::KnownNotNull, ptr_bool()) bool;
     300             :             }
     301           0 :             (*(ptr_bool())) = (aRhs).get_bool();
     302           0 :             break;
     303             :         }
     304             :     case Tuint8_t:
     305             :         {
     306           0 :             if (MaybeDestroy(t)) {
     307           0 :                 new (mozilla::KnownNotNull, ptr_uint8_t()) uint8_t;
     308             :             }
     309           0 :             (*(ptr_uint8_t())) = (aRhs).get_uint8_t();
     310           0 :             break;
     311             :         }
     312             :     case Tuint32_t:
     313             :         {
     314           0 :             if (MaybeDestroy(t)) {
     315           0 :                 new (mozilla::KnownNotNull, ptr_uint32_t()) uint32_t;
     316             :             }
     317           0 :             (*(ptr_uint32_t())) = (aRhs).get_uint32_t();
     318           0 :             break;
     319             :         }
     320             :     case Tuint64_t:
     321             :         {
     322           0 :             if (MaybeDestroy(t)) {
     323           0 :                 new (mozilla::KnownNotNull, ptr_uint64_t()) uint64_t;
     324             :             }
     325           0 :             (*(ptr_uint64_t())) = (aRhs).get_uint64_t();
     326           0 :             break;
     327             :         }
     328             :     case TnsCString:
     329             :         {
     330           0 :             if (MaybeDestroy(t)) {
     331           0 :                 new (mozilla::KnownNotNull, ptr_nsCString()) nsCString;
     332             :             }
     333           0 :             (*(ptr_nsCString())) = (aRhs).get_nsCString();
     334           0 :             break;
     335             :         }
     336             :     case T__None:
     337             :         {
     338           0 :             static_cast<void>(MaybeDestroy(t));
     339           0 :             break;
     340             :         }
     341             :     default:
     342             :         {
     343           0 :             mozilla::ipc::LogicError("unreached");
     344           0 :             break;
     345             :         }
     346             :     }
     347           0 :     mType = t;
     348           0 :     return (*(this));
     349             : }
     350             : 
     351           0 : auto RtspMetaValue::operator==(const bool& aRhs) const -> bool
     352             : {
     353           0 :     return (get_bool()) == (aRhs);
     354             : }
     355             : 
     356           0 : auto RtspMetaValue::operator==(const uint8_t& aRhs) const -> bool
     357             : {
     358           0 :     return (get_uint8_t()) == (aRhs);
     359             : }
     360             : 
     361           0 : auto RtspMetaValue::operator==(const uint32_t& aRhs) const -> bool
     362             : {
     363           0 :     return (get_uint32_t()) == (aRhs);
     364             : }
     365             : 
     366           0 : auto RtspMetaValue::operator==(const uint64_t& aRhs) const -> bool
     367             : {
     368           0 :     return (get_uint64_t()) == (aRhs);
     369             : }
     370             : 
     371           0 : auto RtspMetaValue::operator==(const nsCString& aRhs) const -> bool
     372             : {
     373           0 :     return (get_nsCString()) == (aRhs);
     374             : }
     375             : 
     376           0 : auto RtspMetaValue::operator==(const RtspMetaValue& aRhs) const -> bool
     377             : {
     378           0 :     if ((type()) != ((aRhs).type())) {
     379           0 :         return false;
     380             :     }
     381             : 
     382           0 :     switch (type()) {
     383             :     case Tbool:
     384             :         {
     385           0 :             return (get_bool()) == ((aRhs).get_bool());
     386             :         }
     387             :     case Tuint8_t:
     388             :         {
     389           0 :             return (get_uint8_t()) == ((aRhs).get_uint8_t());
     390             :         }
     391             :     case Tuint32_t:
     392             :         {
     393           0 :             return (get_uint32_t()) == ((aRhs).get_uint32_t());
     394             :         }
     395             :     case Tuint64_t:
     396             :         {
     397           0 :             return (get_uint64_t()) == ((aRhs).get_uint64_t());
     398             :         }
     399             :     case TnsCString:
     400             :         {
     401           0 :             return (get_nsCString()) == ((aRhs).get_nsCString());
     402             :         }
     403             :     default:
     404             :         {
     405           0 :             mozilla::ipc::LogicError("unreached");
     406           0 :             return false;
     407             :         }
     408             :     }
     409             : }
     410             : 
     411           0 : auto RtspMetaValue::get(bool* aOutValue) const -> void
     412             : {
     413           0 :     (*(aOutValue)) = get_bool();
     414           0 : }
     415             : 
     416           0 : auto RtspMetaValue::get(uint8_t* aOutValue) const -> void
     417             : {
     418           0 :     (*(aOutValue)) = get_uint8_t();
     419           0 : }
     420             : 
     421           0 : auto RtspMetaValue::get(uint32_t* aOutValue) const -> void
     422             : {
     423           0 :     (*(aOutValue)) = get_uint32_t();
     424           0 : }
     425             : 
     426           0 : auto RtspMetaValue::get(uint64_t* aOutValue) const -> void
     427             : {
     428           0 :     (*(aOutValue)) = get_uint64_t();
     429           0 : }
     430             : 
     431           0 : auto RtspMetaValue::get(nsCString* aOutValue) const -> void
     432             : {
     433           0 :     (*(aOutValue)) = get_nsCString();
     434           0 : }
     435             : 
     436             : } // namespace net
     437             : } // namespace mozilla
     438             : 
     439             : //-----------------------------------------------------------------------------
     440             : // Method definitions for the IPDL type |struct RtspMetadataParam|
     441             : //
     442             : namespace mozilla {
     443             : namespace net {
     444           0 : MOZ_IMPLICIT RtspMetadataParam::RtspMetadataParam() :
     445           0 :     name_()
     446             : {
     447           0 :     Init();
     448           0 : }
     449             : 
     450           0 : RtspMetadataParam::~RtspMetadataParam()
     451             : {
     452           0 : }
     453             : 
     454           0 : auto RtspMetadataParam::operator==(const RtspMetadataParam& _o) const -> bool
     455             : {
     456           0 :     if ((!((name()) == ((_o).name())))) {
     457           0 :         return false;
     458             :     }
     459           0 :     if ((!((value()) == ((_o).value())))) {
     460           0 :         return false;
     461             :     }
     462           0 :     return true;
     463             : }
     464             : 
     465           0 : auto RtspMetadataParam::operator!=(const RtspMetadataParam& _o) const -> bool
     466             : {
     467           0 :     return (!(operator==(_o)));
     468             : }
     469             : 
     470           0 : auto RtspMetadataParam::Init() -> void
     471             : {
     472           0 : }
     473             : 
     474           0 : auto RtspMetadataParam::Assign(
     475             :         const nsCString& _name,
     476             :         const RtspMetaValue& _value) -> void
     477             : {
     478           0 :     name_ = _name;
     479           0 :     value_ = _value;
     480           0 : }
     481             : 
     482             : } // namespace net
     483             : } // namespace mozilla

Generated by: LCOV version 1.13