1
0
mirror of https://github.com/haiwen/libsearpc.git synced 2025-08-31 12:27:10 +00:00

replace json-glib with jansson

This commit is contained in:
vegarden
2013-08-08 16:24:20 +08:00
parent 4f28361e4d
commit 09b9b0cb27
84 changed files with 610 additions and 30686 deletions

View File

@@ -2,22 +2,22 @@
#define SEARPC_SERVER_H
#include <glib.h>
#include <json-glib/json-glib.h>
#include <glib-object.h>
#include <jansson.h>
#ifndef DFT_DOMAIN
#define DFT_DOMAIN g_quark_from_string(G_LOG_DOMAIN)
#endif
struct _JsonArray;
typedef gchar* (*SearpcMarshalFunc) (void *func, struct _JsonArray *param_array,
typedef gchar* (*SearpcMarshalFunc) (void *func, json_t *param_array,
gsize *ret_len);
typedef void (*RegisterMarshalFunc) (void);
void searpc_set_string_to_ret_object (JsonObject *object, gchar *ret);
void searpc_set_int_to_ret_object (JsonObject *object, gint64 ret);
void searpc_set_object_to_ret_object (JsonObject *object, GObject *ret);
void searpc_set_objlist_to_ret_object (JsonObject *object, GList *ret);
gchar *searpc_marshal_set_ret_common (JsonObject *object, gsize *len, GError *error);
void searpc_set_string_to_ret_object (json_t *object, char *ret);
void searpc_set_int_to_ret_object (json_t *object, json_int_t ret);
void searpc_set_object_to_ret_object (json_t *object, GObject *ret);
void searpc_set_objlist_to_ret_object (json_t *object, GList *ret);
char *searpc_marshal_set_ret_common (json_t *object, int *len, GError *error);
/**
* searpc_server_init: