This file is indexed.

/usr/lib/ocaml/eliom/client/eliom_comet_base.mli is in libeliom-ocaml-dev 2.2.2-1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  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
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
(* Ocsigen
 * http://www.ocsigen.org
 * Copyright (C) 2010-2011
 * Raphaƫl Proust
 * Pierre Chambart
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU Lesser General Public License as published by
 * the Free Software Foundation, with linking exception;
 * either version 2.1 of the License, or (at your option) any later version.
 *
 * This program 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 Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 *)

type 'a chan_id

val string_of_chan_id : 'a chan_id -> string
val chan_id_of_string : string -> 'a chan_id

type position =
  | Newest of int
  | After of int
  | Last of int option (** None means 'newest channel' *)
deriving (Json)

type comet_stateless_request = (string*position) array
deriving (Json)

type command =
  | Register of string
  | Close of string
deriving (Json)

type comet_stateful_request =
  | Request_data of int
  | Commands of command array
deriving (Json)

type comet_request =
  | Stateless of comet_stateless_request
  | Stateful of comet_stateful_request
deriving (Json)

val comet_request_param :
  (comet_request, [ `WithoutSuffix ],
   [ `One of comet_request Eliom_parameter.caml ] Eliom_parameter.param_name)
 Eliom_parameter.params_type

type 'a channel_data =
  | Data of 'a
  | Full
  | Closed
deriving (Json)

type answer =
  | Stateless_messages of ( string * (string * int) channel_data ) array
  | Stateful_messages of ( string * string channel_data ) array
  | Timeout
  | Process_closed
  | Comet_error of string
deriving (Json)

type comet_service =
    (unit, comet_request,
     Eliom_service.service_kind,
     [ `WithoutSuffix ], unit,
     [ `One of comet_request Eliom_parameter.caml ] Eliom_parameter.param_name,
     Eliom_service.registrable,
     Eliom_registration.http_service )
      Eliom_service.service

type internal_comet_service =
    (unit, comet_request,
     Eliom_service.internal_service_kind,
     [ `WithoutSuffix ], unit,
     [ `One of comet_request Eliom_parameter.caml ] Eliom_parameter.param_name,
     [ `Registrable ],
     Eliom_registration.http_service )
      Eliom_service.service

type stateless_kind =
  | After_kind of int
  | Newest_kind of int
  | Last_kind of int option

type 'a wrapped_channel =
  | Stateful_channel of (comet_service * 'a chan_id)
  | Stateless_channel of (comet_service * 'a chan_id * stateless_kind)


type 'a bus_send_service =
    (unit,
     'a list,
     [ `Nonattached of [ `Post ] Eliom_service.na_s ],
     [ `WithoutSuffix ],
     unit,
            [ `One of 'a list Eliom_parameter.caml ] Eliom_parameter.param_name,
     [ `Registrable ],
     Eliom_registration.http_service
    ) Eliom_service.service

type 'a wrapped_bus =
    ( 'a wrapped_channel )
    * ( 'a bus_send_service )