refactor: remove conditional compilation layers
This commit is contained in:
10
ipc.h
10
ipc.h
@@ -1,7 +1,5 @@
|
||||
#ifndef STRANS_IPC_H
|
||||
#define STRANS_IPC_H
|
||||
|
||||
#include <stddef.h>
|
||||
#include <stdint.h>
|
||||
|
||||
/*
|
||||
* Request: [flags, modifiers, key byte 0, ..., key byte 3].
|
||||
@@ -51,9 +49,9 @@ struct Ipcresp
|
||||
size_t npreedit;
|
||||
};
|
||||
|
||||
void ipcpackreq(unsigned char[Ipcreqsz], int, unsigned int, unsigned int);
|
||||
void ipcpackreq(unsigned char[Ipcreqsz], int, uint32_t, uint32_t);
|
||||
void ipcpackreset(unsigned char[Ipcreqsz], int);
|
||||
void ipcunpackreq(const unsigned char[Ipcreqsz], int*, unsigned int*, unsigned int*);
|
||||
void ipcunpackreq(const unsigned char[Ipcreqsz], int*, uint32_t*, uint32_t*);
|
||||
int ipcreqreset(const unsigned char[Ipcreqsz]);
|
||||
int ipcpackresp(unsigned char*, size_t, int, const char*, size_t, const char*, size_t, int);
|
||||
int ipcreadn(int, void*, size_t);
|
||||
@@ -61,5 +59,3 @@ int ipcsend(int, const void*, size_t);
|
||||
int ipcreadresp(int, int, char*, size_t, char*, size_t, Ipcresp*);
|
||||
int ipcpath(char*, size_t);
|
||||
int ipcconnect(void);
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user