This week only. Pastebin PRO Accounts Christmas Special! Don't miss out!Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Jul 18th, 2011  |  syntax: None  |  size: 1.33 KB  |  views: 70  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. ocamlmklib -o mlguestfs guestfs_c.o guestfs_c_actions.o guestfs.cmx -L../src/.libs -lguestfs
  2. mkdir -p html
  3. ocamldoc -d html -html guestfs.mli guestfs.ml
  4. /root/libguestfs-1.11.19/ocaml/guestfs.mli : Syntax error in text:
  5. {2 Object-oriented API}
  6.  
  7.     This is an alternate way of calling the API using an object-oriented
  8.     style, so you can use
  9.     [g#]{{!guestfs.add_drive_opts}add_drive_opts} [filename]
  10.     instead of [Guestfs.add_drive_opts g filename].
  11.     Apart from the different style, it offers exactly the same functionality.
  12.  
  13.     Calling [new guestfs ()] creates both the object and the handle.
  14.     The object and handle are closed either implicitly when the
  15.     object is garbage collected, or explicitly by calling the
  16.     [g#]{{!guestfs.close}close} [()] method.
  17.  
  18.     You can get the {!t} handle by calling
  19.     [g#]{{!guestfs.ocaml_handle}ocaml_handle}.
  20.  
  21.     Note that methods that take no parameters (except the implicit handle)
  22.     get an extra unit [()] parameter.  This is so you can create a
  23.     closure from the method easily.  For example
  24.     [g#]{{!guestfs.get_verbose}get_verbose} [()]
  25.     calls the method, whereas [g#get_verbose] is a function.
  26. line 4, character 9:
  27.     [g#]{{!guestfs.add_drive_opts}add_drive_opts} [filename]
  28.          ^
  29. Warning: Element Unix.error not found
  30. 1 error(s) encountered
  31. make[3]: [html/index.html] Error 1 (ignored)
clone this paste RAW Paste Data