Skip to content
This repository
tree: c8d1d312e7
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 51 lines (45 sloc) 1.551 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50
(*
Copyright © 2011 MLstate

This file is part of OPA.

OPA is free software: you can redistribute it and/or modify it under the
terms of the GNU Affero General Public License, version 3, as published by
the Free Software Foundation.

OPA is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for
more details.

You should have received a copy of the GNU Affero General Public License
along with OPA. If not, see <http://www.gnu.org/licenses/>.
*)

module type IO_LIGHT =
sig
  module DB : DbSig.DB
  val version : string
  type mode = Create | Append | ReadOnly
  type t = {
    location : string;
    mode : mode;
    mutable dbm : DB.t option;
    mutable link_count : int;
    mutable has_lock : bool;
    mutable timestamp : Time.t;
    mutable next_file_idx : int;
  }
  val dbtbl : (string, t) Hashtbl.t
  val is_open : t -> bool
  val is_closed : t -> bool
  val really_remove_lock_file : t -> unit
  val get_content_file_name : t -> string
  val close : t -> unit
  val make_lock_file : t -> unit
  val remove_lock_file : t -> unit
  val read_lock_file : t -> (string * int) option
  val check_other_used : t -> unit
  val reopen : t -> unit
  val make : mode -> string -> t
  val get_timestamp : t -> Time.t
  val get_location : t -> string
  val get_dbm : t -> DB.t option
  val get_link_count : t -> int
  val get_has_lock : t -> bool
end
Something went wrong with that request. Please try again.