//
// Automatically generated by ipdlc.
// Edit at your own risk
//

#ifndef PVRGPU_h
#define PVRGPU_h

#include "mozilla/Attributes.h"
#include "IPCMessageStart.h"
#include "mozilla/RefPtr.h"
#include "nsString.h"
#include "nsTArray.h"
#include "nsTHashtable.h"
#include "mozilla/MozPromise.h"
#include "mozilla/OperatorNewExtensions.h"
#include "mozilla/UniquePtr.h"
#include "mozilla/ipc/ByteBuf.h"
#include "mozilla/ipc/FileDescriptor.h"
#include "mozilla/ipc/IPCForwards.h"
#include "mozilla/ipc/Shmem.h"

namespace mozilla {
namespace gfx {
class PVRGPUParent;
} // namespace gfx
} // namespace mozilla
namespace mozilla {
namespace gfx {
class PVRGPUChild;
} // namespace gfx
} // namespace mozilla

//-----------------------------------------------------------------------------
// Code common to PVRGPUChild and PVRGPUParent
//
namespace mozilla {
namespace gfx {
namespace PVRGPU {

nsresult
CreateEndpoints(
        mozilla::ipc::EndpointProcInfo aParentDestInfo,
        mozilla::ipc::EndpointProcInfo aChildDestInfo,
        mozilla::ipc::Endpoint<::mozilla::gfx::PVRGPUParent>* aParent,
        mozilla::ipc::Endpoint<::mozilla::gfx::PVRGPUChild>* aChild);

enum MessageType {
    PVRGPUStart = PVRGPUMsgStart << 16,
    Msg_StartVRService__ID,
    Msg_StopVRService__ID,
    Msg_PuppetSubmit__ID,
    Msg_PuppetReset__ID,
    Msg_PuppetCheckForCompletion__ID,
    Msg_NotifyPuppetComplete__ID,
    PVRGPUEnd
};

mozilla::UniquePtr<IPC::Message>
Msg_StartVRService(IPC::Message::routeid_t routingId);

mozilla::UniquePtr<IPC::Message>
Msg_StopVRService(IPC::Message::routeid_t routingId);

mozilla::UniquePtr<IPC::Message>
Msg_PuppetSubmit(IPC::Message::routeid_t routingId);

mozilla::UniquePtr<IPC::Message>
Msg_PuppetReset(IPC::Message::routeid_t routingId);

mozilla::UniquePtr<IPC::Message>
Msg_PuppetCheckForCompletion(IPC::Message::routeid_t routingId);

mozilla::UniquePtr<IPC::Message>
Msg_NotifyPuppetComplete(IPC::Message::routeid_t routingId);



} // namespace PVRGPU
} // namespace gfx
} // namespace mozilla

#endif // ifndef PVRGPU_h
