Bindings: fixing libipc.h.
parent
f07b915124
commit
6601eb61b0
|
@ -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);
|
||||||
|
|
Reference in New Issue