text stringlengths 0 234 |
|---|
declare |
Seat : WP.Client.Seat renames Seats (Seat_Last_Index + 1).Seat; |
begin |
Seat.Bind (Registry, Id, Unsigned_32'Min (Version, 6)); |
if not Seat.Has_Proxy then |
raise Wayland_Error with "No seat"; |
end if; |
Seat_Events.Subscribe (Seat); |
Seat_Last_Index := Seat_Last_Index + 1; |
Function Definition: procedure Wayland_Ada_Scanner is |
Function Body: use type Ada.Containers.Count_Type; |
use type Wayland_XML.Event_Child; |
use type Wayland_XML.Request_Child; |
use all type Wayland_XML.Arg_Tag; |
use all type Wayland_XML.Copyright_Tag; |
use all type Wayland_XML.Description_Tag; |
use all type Wayland_XML.Entry_Tag; |
use all type Wayland_XML.Enum_Tag; |
use all type Wayland_XML.Event_Tag; |
use all type Wayland_XML.Request_Tag; |
use all type Wayland_XML.Interface_Tag; |
use all type Wayland_XML.Protocol_Tag; |
use all type Aida.Deepend.XML_DOM_Parser.Node_Kind_Id; |
use all type Aida.Deepend.XML_DOM_Parser.Attribute; |
use all type Aida.Deepend.XML_DOM_Parser.XML_Tag; |
use all type Wayland_XML.Protocol_Child_Kind_Id; |
use all type Wayland_XML.Interface_Child_Kind_Id; |
use all type Wayland_XML.Event_Child_Kind_Id; |
use all type Wayland_XML.Arg_Type_Attribute; |
use all type Wayland_XML.Request_Child_Kind_Id; |
use all type Wayland_XML.Enum_Child; |
package SF renames Ada.Strings.Fixed; |
package SU renames Ada.Strings.Unbounded; |
package Unbounded_String_Vectors is new Ada.Containers.Vectors |
(Index_Type => Positive, |
Element_Type => SU.Unbounded_String, |
"=" => SU."="); |
function Trim (Value : String) return String is (SF.Trim (Value, Ada.Strings.Both)); |
function Is_Reserved_Keyword (Name : String) return Boolean is |
(Name in "Begin" | "End"); |
procedure Put |
(File : Ada.Text_IO.File_Type; |
Item : String) renames Ada.Text_IO.Put; |
procedure Put_Line |
(File : Ada.Text_IO.File_Type; |
Item : String) renames Ada.Text_IO.Put_Line; |
procedure Put_Line |
(Item : String) renames Ada.Text_IO.Put_Line; |
procedure New_Line |
(File : Ada.Text_IO.File_Type; |
Spacing : Ada.Text_IO.Positive_Count := 1) renames Ada.Text_IO.New_Line; |
function "+" (Value : String) return SU.Unbounded_String renames SU.To_Unbounded_String; |
function "+" (Value : SU.Unbounded_String) return String renames SU.To_String; |
XML_Exception : exception; |
procedure Create_Wayland_Spec_File (Enable_Comments : Boolean); |
procedure Create_Wayland_Body_File; |
Protocol_Tag : Wayland_XML.Protocol_Tag_Ptr; |
function Is_Deprecated (Interface_Tag : Wayland_XML.Interface_Tag) return Boolean is |
(Name (Interface_Tag) in "wl_shell" | "wl_shell_surface"); |
-- wl_shell[_surface] are deprecated and replaced by the xdg-shell protocol |
function Get_Protocol_Name (Name : String) return String is |
(if Name = "wayland" then "client" else Name); |
package String_Maps is new Ada.Containers.Indefinite_Hashed_Maps |
(Key_Type => String, |
Element_Type => String, |
Hash => Ada.Strings.Hash, |
Equivalent_Keys => "="); |
procedure Generate_Code_For_Arg |
(File : Ada.Text_IO.File_Type; |
Interface_Tag : Wayland_XML.Interface_Tag; |
Arg_Tag : Wayland_XML.Arg_Tag; |
Max_Length : Natural; |
Is_Last : Boolean; |
Enum_Types : in out String_Maps.Map) |
is |
function Get_Enum_Type_Name return String is |
Result : String := Enum (Arg_Tag); |
begin |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.