Renamed discord-integration to discord_integration

This commit is contained in:
Starman0620
2021-04-21 19:52:16 -04:00
parent 956969f679
commit 89dfeeb247
278 changed files with 47879 additions and 29 deletions

View File

@@ -0,0 +1,19 @@
#pragma once
// This is to wrap the platform specific kinds of connect/read/write.
#include <stdint.h>
#include <stdlib.h>
// 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);
};