1
0
mirror of synced 2024-11-24 05:50:11 +01:00

Fix libpcp headers

This commit is contained in:
Bottersnike 2022-06-26 07:42:44 +01:00
parent a74ec83267
commit cc705ed0d4
3 changed files with 5 additions and 7 deletions

View File

@ -47,12 +47,6 @@ typedef struct pcp_send_data {
size_t length;
} pcp_send_data_t;
// Error helpers
int _pcpaGetErrorFromPcpp(int err);
int _pcppGetErrorFromPcpt(int err);
#define _errP2A(err) _pcpaGetErrorFromPcpp(err)
#define _errT2P(err) _pcppGetErrorFromPcpt(err)
// Errors
#define OPEN_MODE_GLOBAL 0
#define OPEN_MODE_1 1

View File

@ -20,6 +20,9 @@ typedef enum e_pcpa {
e_pcpa_unknown = -21,
} e_pcpa_t;
e_pcpa_t _pcpaGetErrorFromPcpp(e_pcpp_t err);
#define _errP2A(err) _pcpaGetErrorFromPcpp(err)
struct pcpa;
typedef void(pcpa_callback)(struct pcpa* stream, void* data);
@ -66,4 +69,5 @@ e_pcpa_t pcpaSetCallbackFuncBuffer(pcpa_t* stream, pcpa_cb_table_t* callback_tab
e_pcpa_t pcpaSetRecvBinaryBuffer(pcpa_t* stream, byte* recv_buffer, size_t len);
e_pcpa_t pcpaSetSendBinaryBuffer(pcpa_t* stream, byte* send_buffer, size_t len);
pcp_send_data_t* pcpaSetSendPacket(pcpa_t* stream, char* keyword, char* value);
pcp_send_data_t *pcpaAddSendPacket(pcpa_t *stream, char *keyword, char *value);
char* pcpaGetCommand(pcpa_t* pcpa, char* command);

View File

@ -21,7 +21,7 @@ typedef enum e_pcpp {
e_pcpp_unknown = -17,
} e_pcpp_t;
e_pcpp_t _pcppGetErrorFromPcpt(int err);
e_pcpp_t _pcppGetErrorFromPcpt(e_pcpt_t err);
#define _errT2P(err) _pcppGetErrorFromPcpt(err)
typedef struct pcpp {