• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<?xml version="1.0" encoding="UTF-8"?>
2<protocol name="small_test">
3
4  <copyright>
5    Copyright © 2016 Collabora, Ltd.
6
7    Permission is hereby granted, free of charge, to any person
8    obtaining a copy of this software and associated documentation files
9    (the "Software"), to deal in the Software without restriction,
10    including without limitation the rights to use, copy, modify, merge,
11    publish, distribute, sublicense, and/or sell copies of the Software,
12    and to permit persons to whom the Software is furnished to do so,
13    subject to the following conditions:
14
15    The above copyright notice and this permission notice (including the
16    next paragraph) shall be included in all copies or substantial
17    portions of the Software.
18
19    THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
20    EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
21    MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
22    NONINFRINGEMENT.  IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
23    BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
24    ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
25    CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
26    SOFTWARE.
27  </copyright>
28
29  <interface name="intf_A" version="3">
30    <description summary="the thing A">
31      A useless example trying to tickle the scanner.
32    </description>
33
34    <request name="rq1">
35      <arg name="untyped_new" type="new_id"/>
36    </request>
37
38    <request name="rq2">
39      <arg name="typed_new" type="new_id" interface="intf_not_here"/>
40      <arg name="str" type="string"/>
41      <arg name="i" type="int"/>
42      <arg name="u" type="uint"/>
43      <arg name="f" type="fixed"/>
44      <arg name="fd" type="fd"/>
45      <arg name="obj" type="object" interface="another_intf"/>
46    </request>
47
48    <request name="destroy" type="destructor"/>
49
50    <event name="hey"/>
51
52    <enum name="foo">
53	<entry name="first" value="0" summary="this is the first"/>
54	<entry name="second" value="1" summary="this is the second"/>
55	<entry name="third" value="2" since="2" summary="this is the third"/>
56    </enum>
57  </interface>
58</protocol>
59