Permalink
Browse files

Add RPC client to use with rpc-light

The RPC client is placed next to the original XMLRPC client and does not replace it. It can, however, already be used by xapi's helper daemons.

This patch was originally written by Thomas Gazagnaire <thomas@gazagnaire.org>.

Signed-off-by: Rob Hoes <rob.hoes@citrix.com>
  • Loading branch information...
1 parent bb1d647 commit 0eb627fbd0889c5b30002ee33db1589bc9e7c3f3 @robhoes robhoes committed with matthiasgoergens Jan 26, 2011
View
@@ -91,10 +91,13 @@ OCamlDoc(name, modules, type) =
OCamlDocProgram(name, modules) =
OCamlDoc($(name), $(modules), "program")
-
+
OCamlDocLibrary(name, modules) =
OCamlDoc($(name), $(modules), "library")
+OCamlDocPackage(name, modules) =
+ OCamlDoc($(name), $(modules), "package")
+
#
# Use Camlp4
#
@@ -1,5 +1,5 @@
version = "@VERSION@"
description = "XenAPI client bindings for OCaml"
-requires = "xml-light2,stdext,stunnel,http-svr,log"
+requires = "rpc-light,xml-light2,stdext,stunnel,http-svr,log"
archive(byte) = "xapi_client.cma"
archive(native) = "xapi_client.cmxa"
@@ -54,7 +54,7 @@ COMMON_OBJS = ref \
../datamodel_types xMLRPC event_types \
../api_errors ../api_messages ../../xapi/xapi_globs \
../constants
-CLIENT_OBJS = xmlrpcclient $(AUTOGEN_DIR)/aPI $(AUTOGEN_DIR)/client event_helper
+CLIENT_OBJS = xmlrpcclient rpc_client $(AUTOGEN_DIR)/aPI $(AUTOGEN_DIR)/client event_helper
SERVER_OBJS = ../../database/escaping locking_helpers \
$(AUTOGEN_DIR)/server \
$(AUTOGEN_DIR)/db_actions $(AUTOGEN_DIR)/custom_actions \
@@ -111,6 +111,7 @@ XAPI_CLIENT_OBJS = \
../../util/util_globs_inventory \
../../util/util_inventory \
../../util/version \
+ ../../xapi/xapi_inventory \
$(COMMON_OBJS) \
$(CLIENT_OBJS)
@@ -129,6 +130,7 @@ OCAMLPACKS=$(_OCAMLPACKS)
OCamlDocLibrary(common, $(COMMON_OBJS))
OCamlDocLibrary(client, $(CLIENT_OBJS))
OCamlDocLibrary(server, $(SERVER_OBJS))
+OCamlDocPackage(xapi-client, $(XAPI_CLIENT_OBJS))
.PHONY: clean
clean:
Oops, something went wrong.

0 comments on commit 0eb627f

Please sign in to comment.