package xenstore

  1. Overview
  2. Docs
type 'a t

A 'handle' is a sub-connection used for a particular purpose. The handle is a convenient place to store sub-connection state

val make : 'a -> 'a t
val get_tid : 'a t -> int32

return the transaction id (typically for debug printing)

val get_client : 'a t -> 'a

return the client instance wrapped in a handle

val no_transaction : 'a -> 'a t

Handle used for 'immediate' non-transactional read/writes

val transaction : 'a -> int32 -> 'a t

Handle used for transactional read/writes

val watching : 'a -> 'a t

Handle used to store watch-related information

val accessed_path : 'a t -> string -> 'a t

Get the list of recorded path accesses

module StringSet : sig ... end
val get_accessed_paths : 'a t -> StringSet.t

Get the list of paths we have accessed

val watch : 'a t -> string -> 'a t

Declare that we are watching a path

val unwatch : 'a t -> string -> 'a t

Declare that we are nolonger watching a path

val get_watched_paths : 'a t -> StringSet.t

Get the list of paths we're currently watching