mirror of
https://github.com/haiwen/libsearpc.git
synced 2025-09-16 23:08:14 +00:00
Fix a bug in 64bit system:
GType is 64 bit long in x64, cast it to int may loss some data
This commit is contained in:
@@ -101,7 +101,7 @@ fcall_to_str (const char *fname, int n_params, va_list args, gsize *len)
|
|||||||
|
|
||||||
void
|
void
|
||||||
searpc_client_call (SearpcClient *client, const char *fname,
|
searpc_client_call (SearpcClient *client, const char *fname,
|
||||||
const char *ret_type, int gobject_type,
|
const char *ret_type, GType gobject_type,
|
||||||
void *ret_ptr, GError **error,
|
void *ret_ptr, GError **error,
|
||||||
int n_params, ...)
|
int n_params, ...)
|
||||||
{
|
{
|
||||||
@@ -241,7 +241,7 @@ searpc_client_call__string (SearpcClient *client, const char *fname,
|
|||||||
|
|
||||||
GObject *
|
GObject *
|
||||||
searpc_client_call__object (SearpcClient *client, const char *fname,
|
searpc_client_call__object (SearpcClient *client, const char *fname,
|
||||||
int object_type,
|
GType object_type,
|
||||||
GError **error, int n_params, ...)
|
GError **error, int n_params, ...)
|
||||||
{
|
{
|
||||||
g_return_val_if_fail (fname != NULL, NULL);
|
g_return_val_if_fail (fname != NULL, NULL);
|
||||||
@@ -274,7 +274,7 @@ searpc_client_call__object (SearpcClient *client, const char *fname,
|
|||||||
|
|
||||||
GList*
|
GList*
|
||||||
searpc_client_call__objlist (SearpcClient *client, const char *fname,
|
searpc_client_call__objlist (SearpcClient *client, const char *fname,
|
||||||
int object_type,
|
GType object_type,
|
||||||
GError **error, int n_params, ...)
|
GError **error, int n_params, ...)
|
||||||
{
|
{
|
||||||
g_return_val_if_fail (fname != NULL, NULL);
|
g_return_val_if_fail (fname != NULL, NULL);
|
||||||
@@ -367,7 +367,7 @@ searpc_client_async_call_v (SearpcClient *client,
|
|||||||
const char *fname,
|
const char *fname,
|
||||||
AsyncCallback callback,
|
AsyncCallback callback,
|
||||||
const gchar *ret_type,
|
const gchar *ret_type,
|
||||||
int gtype,
|
GType gtype,
|
||||||
void *cbdata,
|
void *cbdata,
|
||||||
int n_params,
|
int n_params,
|
||||||
va_list args)
|
va_list args)
|
||||||
@@ -453,7 +453,7 @@ int
|
|||||||
searpc_client_async_call__object (SearpcClient *client,
|
searpc_client_async_call__object (SearpcClient *client,
|
||||||
const char *fname,
|
const char *fname,
|
||||||
AsyncCallback callback,
|
AsyncCallback callback,
|
||||||
int object_type, void *cbdata,
|
GType object_type, void *cbdata,
|
||||||
int n_params, ...)
|
int n_params, ...)
|
||||||
{
|
{
|
||||||
g_return_val_if_fail (fname != NULL, -1);
|
g_return_val_if_fail (fname != NULL, -1);
|
||||||
@@ -473,7 +473,7 @@ int
|
|||||||
searpc_client_async_call__objlist (SearpcClient *client,
|
searpc_client_async_call__objlist (SearpcClient *client,
|
||||||
const char *fname,
|
const char *fname,
|
||||||
AsyncCallback callback,
|
AsyncCallback callback,
|
||||||
int object_type, void *cbdata,
|
GType object_type, void *cbdata,
|
||||||
int n_params, ...)
|
int n_params, ...)
|
||||||
{
|
{
|
||||||
g_return_val_if_fail (fname != NULL, -1);
|
g_return_val_if_fail (fname != NULL, -1);
|
||||||
|
@@ -36,7 +36,7 @@ void searpc_client_free (SearpcClient *client);
|
|||||||
|
|
||||||
void
|
void
|
||||||
searpc_client_call (SearpcClient *client, const char *fname,
|
searpc_client_call (SearpcClient *client, const char *fname,
|
||||||
const char *ret_type, int gobject_type,
|
const char *ret_type, GType gobject_type,
|
||||||
void *ret_ptr, GError **error,
|
void *ret_ptr, GError **error,
|
||||||
int n_params, ...);
|
int n_params, ...);
|
||||||
|
|
||||||
@@ -54,12 +54,12 @@ searpc_client_call__string (SearpcClient *client, const char *fname,
|
|||||||
|
|
||||||
GObject *
|
GObject *
|
||||||
searpc_client_call__object (SearpcClient *client, const char *fname,
|
searpc_client_call__object (SearpcClient *client, const char *fname,
|
||||||
int object_type,
|
GType object_type,
|
||||||
GError **error, int n_params, ...);
|
GError **error, int n_params, ...);
|
||||||
|
|
||||||
GList*
|
GList*
|
||||||
searpc_client_call__objlist (SearpcClient *client, const char *fname,
|
searpc_client_call__objlist (SearpcClient *client, const char *fname,
|
||||||
int object_type,
|
GType object_type,
|
||||||
GError **error, int n_params, ...);
|
GError **error, int n_params, ...);
|
||||||
|
|
||||||
|
|
||||||
@@ -92,14 +92,14 @@ int
|
|||||||
searpc_client_async_call__object (SearpcClient *client,
|
searpc_client_async_call__object (SearpcClient *client,
|
||||||
const char *fname,
|
const char *fname,
|
||||||
AsyncCallback callback,
|
AsyncCallback callback,
|
||||||
int object_type, void *cbdata,
|
GType object_type, void *cbdata,
|
||||||
int n_params, ...);
|
int n_params, ...);
|
||||||
|
|
||||||
int
|
int
|
||||||
searpc_client_async_call__objlist (SearpcClient *client,
|
searpc_client_async_call__objlist (SearpcClient *client,
|
||||||
const char *fname,
|
const char *fname,
|
||||||
AsyncCallback callback,
|
AsyncCallback callback,
|
||||||
int object_type, void *cbdata,
|
GType object_type, void *cbdata,
|
||||||
int n_params, ...);
|
int n_params, ...);
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user