Changeset 6646
- Timestamp:
- 06/18/09 17:15:31 (15 months ago)
- Location:
- branches/bugfix-0.9.1
- Files:
-
- 2 modified
-
CHANGES (modified) (1 diff)
-
src/sources/harbor_input.ml (modified) (3 diffs, 1 prop)
Legend:
- Unmodified
- Added
- Removed
-
branches/bugfix-0.9.1/CHANGES
r6645 r6646 12 12 - Get a node's striping status when stripping 13 13 blank with strip_blank (#260). 14 - on_connect function for input.harbor now receives the 15 list of headers given by the connected source (#266). 14 16 15 17 0.9.0 (01-03-2009) -
branches/bugfix-0.9.1/src/sources/harbor_input.ml
-
Property
svn:mergeinfo set
to
/trunk/liquidsoap/src/sources/harbor_input.ml merged eligible
r6644 r6646 166 166 if relaying then self#disconnect 167 167 168 method relay socket =168 method relay (headers:(string*string) list) socket = 169 169 relaying <- true ; 170 on_connect () ; 170 let headers = List.map (fun (x,y) -> String.lowercase x,y) headers in 171 on_connect headers ; 171 172 begin match dumpfile with 172 173 | Some f -> … … 218 219 Some "Maximum duration of the buffered data."; 219 220 220 "on_connect", Lang.fun_t [] Lang.unit_t, 221 Some (Lang.val_cst_fun [] Lang.unit), 222 Some "Functions to excecute when a source is connected"; 221 "on_connect", Lang.fun_t 222 [false,"",Lang.list_t (Lang.product_t Lang.string_t Lang.string_t)] Lang.unit_t, 223 Some (Lang.val_cst_fun 224 ["","headers",None] Lang.unit), 225 Some "Function to execute when a source is connected. \ 226 Its receives the list of headers, of the form: \ 227 (\"label\",\"value\"). All labels are lowercase."; 223 228 224 229 "on_disconnect",Lang.fun_t [] Lang.unit_t, … … 309 314 let bufferize = Lang.to_float (List.assoc "buffer" p) in 310 315 let max = Lang.to_float (List.assoc "max" p) in 311 let on_connect () = 312 ignore (Lang.apply (List.assoc "on_connect" p) []) 316 let on_connect l = 317 let l = 318 List.map 319 (fun (x,y) -> Lang.product (Lang.string x) (Lang.string y)) 320 l 321 in 322 let arg = Lang.list l in 323 ignore (Lang.apply (List.assoc "on_connect" p) ["",arg]) 313 324 in 314 325 let on_disconnect = fun () -> ignore (Lang.apply -
Property
svn:mergeinfo set
to
