package liquidsoap-lang

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Module Liquidsoap_lang.PlugSource

A plug is something where plug-ins plug.

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

A plug.

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

Create a plug.

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

List all the plugins.

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

Innovation. Community. Security.