version 1.5.2.1, 2012/03/13 08:25:25
|
version 1.6.4.1, 2012/05/11 08:46:41
|
Line 129 rpcServerCalls(rpc_func_t *call, int ic, array_t *iv)
|
Line 129 rpcServerCalls(rpc_func_t *call, int ic, array_t *iv)
|
memset(val, 0, len); |
memset(val, 0, len); |
|
|
for (f = srv->srv_funcs, i = 0; f; f = f->func_next) { |
for (f = srv->srv_funcs, i = 0; f; f = f->func_next) { |
if (*f->func_name) { | if (*AIT_GET_STR(&f->func_name)) { |
memset(str, 0, sizeof str); |
memset(str, 0, sizeof str); |
snprintf(str, sizeof str, "/%s/%s(%d); ", | if (AIT_ISEMPTY(&f->func_file)) |
*f->func_file ? f->func_file : "*", | snprintf(str, sizeof str, "/*/%s(%d); ", |
f->func_name, io_arraySize(f->func_vars)); | AIT_GET_STR(&f->func_name), io_arraySize(f->func_vars)); |
| else |
| snprintf(str, sizeof str, "/%s/%s(%d); ", AIT_GET_STR(&f->func_file), |
| AIT_GET_STR(&f->func_name), io_arraySize(f->func_vars)); |
strlcat(val, str, len); |
strlcat(val, str, len); |
} |
} |
} |
} |
Line 181 rpcServerShutdown(rpc_func_t *call, int ic, array_t *i
|
Line 184 rpcServerShutdown(rpc_func_t *call, int ic, array_t *i
|
else |
else |
srv = call->func_parent; |
srv = call->func_parent; |
|
|
pthread_mutex_lock(&srv->srv_mtx); |
|
srv->srv_kill = kill; |
srv->srv_kill = kill; |
pthread_mutex_unlock(&srv->srv_mtx); |
|
|
|
return 0; |
return 0; |
} |
} |
Line 201 rpcBLOBServerShutdown(rpc_func_t *call, int ic, array_
|
Line 202 rpcBLOBServerShutdown(rpc_func_t *call, int ic, array_
|
else |
else |
srv = call->func_parent; |
srv = call->func_parent; |
|
|
pthread_mutex_lock(&srv->srv_blob.mtx); |
|
srv->srv_blob.state = kill; |
srv->srv_blob.state = kill; |
pthread_mutex_unlock(&srv->srv_blob.mtx); |
|
|
|
return 0; |
return 0; |
} |
} |
Line 278 rpcBLOBServerState(rpc_func_t *call, int ic, array_t *
|
Line 277 rpcBLOBServerState(rpc_func_t *call, int ic, array_t *
|
if (AIT_TYPE(io_array(iv, 0, ait_val_t*)) != i32) |
if (AIT_TYPE(io_array(iv, 0, ait_val_t*)) != i32) |
return -1; |
return -1; |
|
|
pthread_mutex_lock(&srv->srv_mtx); |
|
srv->srv_blob.state = AIT_GET_I32(io_array(iv, 0, ait_val_t*)); |
srv->srv_blob.state = AIT_GET_I32(io_array(iv, 0, ait_val_t*)); |
pthread_mutex_unlock(&srv->srv_mtx); |
|
return 0; |
return 0; |
} |
} |
|
|