]> xenbits.xensource.com Git - xcp/xen-api-libs.git/commit
[rpc-light] Optimize the way (string * t) list are marshaled
authorThomas Gazagnaire <thomas.gazagnaire@eu.citrix.com>
Mon, 11 Jan 2010 17:44:38 +0000 (17:44 +0000)
committerThomas Gazagnaire <thomas.gazagnaire@eu.citrix.com>
Mon, 11 Jan 2010 17:44:38 +0000 (17:44 +0000)
commitc4e6ab5b277cc5265202fa9c069eebd8e55a2e60
tree3f1608fa9f1c7fbfbbf97d5048c0cbb85859b22d
parentbb66b1c20184a215844a739138eb842517e76c18
[rpc-light] Optimize the way (string * t) list are marshaled

This bit is necessary to discuss with the SM backend and it is also a nice optiomization. Basically, if you have: 'type t = (kk, vv) list with rpc' the library will check if value of type 'kk' are marshaled to a string; if yes, instead of having a list of stuff, it creates a dictionary which is what the python XenAPI bindings are looking for.

Signed-off-by: Thomas Gazagnaire <thomas.gazagnaire@citrix.com>
rpc-light/examples/Makefile
rpc-light/p4_rpc.ml