discord-rpc/src/connection.h

19 lines
429 B
C
Raw Normal View History

2017-06-30 16:18:54 -07:00
#pragma once
// This is to wrap the platform specific kinds of connect/read/write.
#include <stdint.h>
2017-07-13 10:10:09 -07:00
#include <stdlib.h>
2017-06-30 16:18:54 -07:00
2017-07-20 14:58:23 -07:00
// not really connectiony, but need per-platform
int GetProcessId();
2017-07-17 09:28:54 -07:00
struct BaseConnection {
static BaseConnection* Create();
static void Destroy(BaseConnection*&);
bool Open();
bool Close();
bool Write(const void* data, size_t length);
bool Read(void* data, size_t length);
2017-06-30 16:18:54 -07:00
};