discord-rpc: Formatting

This commit is contained in:
Jonas Kvinge
2025-04-11 23:27:40 +02:00
parent f9e4f9a09a
commit 634f6ea9f5
20 changed files with 291 additions and 290 deletions

View File

@@ -0,0 +1,22 @@
#pragma once
// This is to wrap the platform specific kinds of connect/read/write.
#include <cstdlib>
namespace discord_rpc {
// not really connectiony, but need per-platform
int GetProcessId();
struct BaseConnection {
static BaseConnection *Create();
static void Destroy(BaseConnection *&);
bool isOpen = false;
bool Open();
bool Close();
bool Write(const void *data, size_t length);
bool Read(void *data, size_t length);
};
} // namespace discord_rpc