Obsolete
/
libipc-old
Archived
3
0
Fork 0

Bindings: fixing libipc.h.

master
Philippe Pittoli 2023-01-18 17:26:06 +01:00
parent f07b915124
commit 6601eb61b0
1 changed files with 6 additions and 4 deletions

View File

@ -1,6 +1,8 @@
#ifndef LIBIPC #ifndef LIBIPC
#define LIBIPC #define LIBIPC
#include <stdint.h>
struct message { struct message {
uint32_t size; uint32_t size;
char* payload; char* payload;
@ -20,10 +22,10 @@ enum event_types {
// Return type of callback functions when switching. // Return type of callback functions when switching.
enum cb_event_types { enum cb_event_types {
NO_ERROR = 0, // No error. A message was generated. CB_NO_ERROR = 0 // No error. A message was generated.
, ERROR = 1, // Generic error. , CB_ERROR = 1 // Generic error.
, FD_CLOSING = 2, // The fd is closing. , CB_FD_CLOSING = 2 // The fd is closing.
, IGNORE = 3, // The message should be ignored (protocol specific). , CB_IGNORE = 3 // The message should be ignored (protocol specific).
}; };
int ipc_context_init (void** ptr); int ipc_context_init (void** ptr);