RetroArch
connection.h
Go to the documentation of this file.
1 #pragma once
2 
3 // This is to wrap the platform specific kinds of connect/read/write.
4 
5 #include <stdint.h>
6 #include <stdlib.h>
7 
8 // not really connectiony, but need per-platform
9 int GetProcessId();
10 
12  static BaseConnection* Create();
13  static void Destroy(BaseConnection*&);
14  bool isOpen{false};
15  bool Open();
16  bool Close();
17  bool Write(const void* data, size_t length);
18  bool Read(void* data, size_t length);
19 };
Definition: connection.h:11
int GetProcessId()
Definition: connection_unix.cpp:12
static BaseConnection * Create()
Definition: connection_unix.cpp:39
bool Write(const void *data, size_t length)
Definition: connection_unix.cpp:91
Definition: ibxm.h:9
bool isOpen
Definition: connection.h:14
static void Destroy(BaseConnection *&)
Definition: connection_unix.cpp:45
bool Open()
Definition: connection_unix.cpp:52
bool Read(void *data, size_t length)
Definition: connection_unix.cpp:106
GLenum GLuint GLenum GLsizei length
Definition: glext.h:6233
bool Close()
Definition: connection_unix.cpp:79