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

#ifndef PMIDIManager_h
#define PMIDIManager_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"
#include "mozilla/dom/MIDITypes.h"

namespace mozilla {
namespace dom {
class PMIDIManagerParent;
} // namespace dom
} // namespace mozilla
namespace mozilla {
namespace dom {
class PMIDIManagerChild;
} // namespace dom
} // namespace mozilla

//-----------------------------------------------------------------------------
// Code common to PMIDIManagerChild and PMIDIManagerParent
//
namespace mozilla {
namespace dom {
namespace PMIDIManager {

nsresult
CreateEndpoints(
        mozilla::ipc::EndpointProcInfo aParentDestInfo,
        mozilla::ipc::EndpointProcInfo aChildDestInfo,
        mozilla::ipc::Endpoint<::mozilla::dom::PMIDIManagerParent>* aParent,
        mozilla::ipc::Endpoint<::mozilla::dom::PMIDIManagerChild>* aChild);

nsresult
CreateEndpoints(
        mozilla::ipc::Endpoint<::mozilla::dom::PMIDIManagerParent>* aParent,
        mozilla::ipc::Endpoint<::mozilla::dom::PMIDIManagerChild>* aChild);

enum MessageType {
    PMIDIManagerStart = PMIDIManagerMsgStart << 16,
    Msg_Refresh__ID,
    Msg_Shutdown__ID,
    Msg_MIDIPortListUpdate__ID,
    PMIDIManagerEnd
};

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

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

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



} // namespace PMIDIManager
} // namespace dom
} // namespace mozilla

#endif // ifndef PMIDIManager_h
