Skip to content

Commit

Permalink
[fix] build: plugins compilation (server)
Browse files Browse the repository at this point in the history
  • Loading branch information
BourgerieQuentin committed Aug 6, 2012
1 parent 9599ddf commit 80fe8e1
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 25 deletions.
4 changes: 2 additions & 2 deletions lib/plugins/server/bslClientEvent.ml
Expand Up @@ -34,15 +34,15 @@ let inactive = BslPingRegister.M.Inactive
[BslPingRegister.Client.key]. Used by [register_event] below. *)
(* ************************************************************************** *)
external opa_tc_c_2_bsl_pr_c_k :
BslNet.opa_threadcontext_client -> BslPingRegister.Client.key =
BslUtils.opa_threadcontext_client -> BslPingRegister.Client.key =
"%identity"

(* ************************************************************************** *)
(* Magic conversion of a [BslPingRegister.Client.key] into a
[BslUtils.opa_threadcontext_client]. Used by [register_event] below. *)
(* ************************************************************************** *)
external bsl_pr_c_k_2_opa_tc_c :
BslPingRegister.Client.key -> BslNet.opa_threadcontext_client =
BslPingRegister.Client.key -> BslUtils.opa_threadcontext_client =
"%identity"

module Ping = BslPingRegister.M
Expand Down
1 change: 0 additions & 1 deletion lib/plugins/server/bslDispatcher.ml
Expand Up @@ -17,7 +17,6 @@ open HttpServer

open Cps.Ops

module BslUtils = OpabslMLRuntime.BslUtils
module Client = BslPingRegister.Client
module Ping = BslPingRegister.M
module WebChannel = Session.WebChannel
Expand Down
21 changes: 5 additions & 16 deletions lib/plugins/server/bslNet.ml
Expand Up @@ -12,7 +12,7 @@
module List = BaseList
module HSCp = HttpServerCore_parse

module BslNativeLib = OpabslMLRuntime.BslNativeLib
module BslNativeLib = BslUtils
(* The opa scheduler *)
let default_scheduler = BslScheduler.opa

Expand All @@ -25,21 +25,10 @@ let default_scheduler = BslScheduler.opa
##extern-type binary = Buffer.t
##property[endmli]

##opa-type list('a)
##opa-type tuple_2('a, 'b)
##opa-type tuple_3('a, 'b, 'c)
##opa-type ThreadContext.t
##opa-type ThreadContext.client

let caml_list_to_opa_list f l =
wrap_opa_list (BslNativeLib.unwrap_opa_list (BslNativeLib.caml_list_to_opa_list f l))
let opa_tuple_2 t =
wrap_opa_tuple_2 (BslNativeLib.unwrap_opa_tuple_2 (BslNativeLib.opa_tuple_2 t))
let opa_tuple_3 t =
wrap_opa_tuple_3 (BslNativeLib.unwrap_opa_tuple_3 (BslNativeLib.opa_tuple_3 t))
let opa_list_to_ocaml_list f l =
BslNativeLib.opa_list_to_ocaml_list f
(BslNativeLib.wrap_opa_list (unwrap_opa_list l))
let caml_list_to_opa_list = BslNativeLib.caml_list_to_opa_list
let opa_tuple_2 = BslNativeLib.opa_tuple_2
let opa_tuple_3 = BslNativeLib.opa_tuple_3
let opa_list_to_ocaml_list = BslNativeLib.opa_list_to_ocaml_list
(** *****************************)

##extern-type web_server_status = Requestdef.status
Expand Down
2 changes: 1 addition & 1 deletion lib/plugins/server/bslRPC.ml
Expand Up @@ -63,7 +63,7 @@ end = struct
try
let k = Hashtbl.find rpc_ids id in
Hashtbl.remove rpc_ids id ;
let exc = OpabslMLRuntime.BslNativeLib.OpaExc.OpaRPC.timeout cid fun_id in
let exc = BslUtils.OpaExc.OpaRPC.timeout cid fun_id in
let k_exc = QmlCpsServerLib.handler_cont k in
QmlCpsServerLib.push_cont k_exc exc
with
Expand Down
2 changes: 0 additions & 2 deletions lib/plugins/server/bslScheduler.ml
Expand Up @@ -17,8 +17,6 @@

##extern-type Scheduler.key = Scheduler.async_key

module BslUtils = OpabslMLRuntime.BslUtils

let opa = Scheduler.default

let push f = Scheduler.push opa f
Expand Down
1 change: 1 addition & 0 deletions lib/plugins/server/bslUtils.ml
2 changes: 1 addition & 1 deletion lib/plugins/server/server.opa_plugin
@@ -1,3 +1,4 @@
bslUtils.ml
bslScheduler.ml
bslScheduler.js
bslScheduler.nodejs
Expand All @@ -13,7 +14,6 @@ bslMinJs.ml
bslPingRegister.ml
bslRPC.ml
bslInit.ml
bslClientCode.ml
bslClientEvent.ml
bslIdentGen.ml
bslServer_event.ml
Expand Down
2 changes: 0 additions & 2 deletions lib/plugins/server/session.ml
Expand Up @@ -11,8 +11,6 @@
*)
#<Debugvar:SESSION_DEBUG>

module BslUtils = OpabslMLRuntime.BslUtils

(**********************************************************)
(* Alias **************************************************)
open Cps.Ops
Expand Down

0 comments on commit 80fe8e1

Please sign in to comment.