JULEA
Typedefs | Enumerations | Functions
jmessage.h File Reference
#include <glib.h>
#include <gio/gio.h>
#include <core/jsemantics.h>

Go to the source code of this file.

Typedefs

typedef enum JMessageType JMessageType
 
typedef struct JMessage JMessage
 

Enumerations

enum  JMessageType {
  J_MESSAGE_NONE , J_MESSAGE_PING , J_MESSAGE_STATISTICS , J_MESSAGE_OBJECT_CREATE ,
  J_MESSAGE_OBJECT_DELETE , J_MESSAGE_OBJECT_GET_ALL , J_MESSAGE_OBJECT_GET_BY_PREFIX , J_MESSAGE_OBJECT_READ ,
  J_MESSAGE_OBJECT_STATUS , J_MESSAGE_OBJECT_SYNC , J_MESSAGE_OBJECT_WRITE , J_MESSAGE_KV_PUT ,
  J_MESSAGE_KV_DELETE , J_MESSAGE_KV_GET , J_MESSAGE_KV_GET_ALL , J_MESSAGE_KV_GET_BY_PREFIX ,
  J_MESSAGE_DB_SCHEMA_CREATE , J_MESSAGE_DB_SCHEMA_GET , J_MESSAGE_DB_SCHEMA_DELETE , J_MESSAGE_DB_INSERT ,
  J_MESSAGE_DB_UPDATE , J_MESSAGE_DB_DELETE , J_MESSAGE_DB_QUERY
}
 

Functions

G_END_DECLS G_BEGIN_DECLS JMessagej_message_new (JMessageType op_type, gsize length)
 
JMessagej_message_new_reply (JMessage *message)
 
JMessagej_message_ref (JMessage *message)
 
void j_message_unref (JMessage *message)
 
JMessageType j_message_get_type (JMessage const *message)
 
guint32 j_message_get_count (JMessage const *message)
 
gboolean j_message_append_1 (JMessage *message, gconstpointer data)
 
gboolean j_message_append_4 (JMessage *message, gconstpointer data)
 
gboolean j_message_append_8 (JMessage *message, gconstpointer data)
 
gboolean j_message_append_n (JMessage *message, gconstpointer data, gsize length)
 
gboolean j_message_append_string (JMessage *message, gchar const *str)
 
gchar j_message_get_1 (JMessage *message)
 
gint32 j_message_get_4 (JMessage *message)
 
gint64 j_message_get_8 (JMessage *message)
 
gpointer j_message_get_n (JMessage *message, gsize length)
 
gchar const * j_message_get_string (JMessage *message)
 
gboolean j_message_send (JMessage *message, gpointer stream)
 
gboolean j_message_receive (JMessage *message, gpointer stream)
 
gboolean j_message_read (JMessage *message, GInputStream *stream)
 
gboolean j_message_write (JMessage *message, GOutputStream *stream)
 
void j_message_add_send (JMessage *message, gconstpointer data, guint64 length)
 
void j_message_add_operation (JMessage *message, gsize length)
 
void j_message_set_semantics (JMessage *message, JSemantics *semantics)
 
JSemanticsj_message_get_semantics (JMessage *message)