mirror of
https://github.com/transmission/transmission.git
synced 2026-05-08 09:39:08 +01:00
Improve RPC performance for local sessions
Don't unnecessarily de-/serialize JSON data if local session is used.
This commit is contained in:
@@ -21,15 +21,13 @@ extern "C" {
|
||||
**** RPC processing
|
||||
***/
|
||||
|
||||
struct evbuffer;
|
||||
typedef void (*tr_rpc_response_func)(tr_session * session,
|
||||
tr_variant * response,
|
||||
void * user_data);
|
||||
|
||||
typedef void (*tr_rpc_response_func)(tr_session * session,
|
||||
struct evbuffer * response,
|
||||
void * user_data);
|
||||
/* http://www.json.org/ */
|
||||
void tr_rpc_request_exec_json (tr_session * session,
|
||||
const void * request_json,
|
||||
int request_len,
|
||||
const tr_variant * request,
|
||||
tr_rpc_response_func callback,
|
||||
void * callback_user_data);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user