package liquidsoap-lang

  1. Overview
  2. Docs

A plug is something where plug-ins plug.

type 'a t = {
  1. name : string;
  2. doc : Doc.Plug.t;
  3. register_hook : string -> 'a -> unit;
  4. mutable items : (string * 'a) list;
}

A plug.

val create : ?register_hook:(string -> 'a -> unit) -> doc:string -> string -> 'a t

Create a plug.

val register : 'a t -> string -> doc:string -> 'a -> unit
val get : 'a t -> string -> 'a option
val list : 'a t -> (string * 'a) list

List all the plugins.

val iter : 'a t -> (string -> 'a -> unit) -> unit
OCaml

Innovation. Community. Security.