2024-01-09 09:07:34 +00:00
|
|
|
// SPDX-FileCopyrightText: 2002-2024 PCSX2 Dev Team
|
2024-07-30 11:42:36 +00:00
|
|
|
// SPDX-License-Identifier: GPL-3.0+
|
2020-08-08 06:43:41 +00:00
|
|
|
|
2022-09-14 02:20:25 +00:00
|
|
|
/* A reference client implementation for interfacing with PINE is available
|
2021-05-29 16:01:27 +00:00
|
|
|
* here: https://code.govanify.com/govanify/pine/ */
|
2020-08-08 06:43:41 +00:00
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
2021-05-29 16:01:27 +00:00
|
|
|
// PINE uses a concept of "slot" to be able to communicate with multiple
|
2021-03-03 21:32:52 +00:00
|
|
|
// emulators at the same time, each slot should be unique to each emulator to
|
|
|
|
// allow PnP and configurable by the end user so that several runs don't
|
|
|
|
// conflict with each others
|
2021-05-29 16:01:27 +00:00
|
|
|
#define PINE_DEFAULT_SLOT 28011
|
2021-03-03 21:32:52 +00:00
|
|
|
|
2024-01-09 09:07:34 +00:00
|
|
|
namespace PINEServer
|
2020-08-08 06:43:41 +00:00
|
|
|
{
|
2024-01-09 09:07:34 +00:00
|
|
|
bool IsInitialized();
|
|
|
|
int GetSlot();
|
2024-01-09 09:01:08 +00:00
|
|
|
|
2023-01-24 19:28:03 +00:00
|
|
|
bool Initialize(int slot = PINE_DEFAULT_SLOT);
|
|
|
|
void Deinitialize();
|
2024-01-09 09:07:34 +00:00
|
|
|
} // namespace PINEServer
|