123456789101112131415161718192021222324252627282930313233(*
* Copyright 2019 Cedric LE MOIGNE, cedlemo@gmx.com
* This file is part of OCaml-GObject-Introspection.
*
* OCaml-GObject-Introspection is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* any later version.
*
* OCaml-GObject-Introspection 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 General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with OCaml-GObject-Introspection. If not, see <http://www.gnu.org/licenses/>.
*)(** Flags for a Field_info. *)typeflags=|Is_readable(** field is readable. *)|Is_writable(** field is writable. *)letstring_of_flag=function|Is_readable->"Is_readable"|Is_writable->"Is_writable"moduleFlags=functor(T:Cstubs.Types.TYPE)->structletgi_field_is_readable=T.constant"GI_FIELD_IS_READABLE"T.int64_tletgi_field_is_writable=T.constant"GI_FIELD_IS_WRITABLE"T.int64_tletflags=T.enum"GIFieldInfoFlags"~typedef:true[]~unexpected:(funx->x)end