1 <!DOCTYPE node PUBLIC "-//freedesktop//DTD D-BUS Object Introspection 1.0//EN"
2 "http://www.freedesktop.org/standards/dbus/1.0/introspect.dtd">
3 <!-- # xml does not allow double-dash in comments :/
6 -prefix=mux src/mux.xml > src/mux.h
9 <!-- interface to a channel muxer as described in gsm07.10.
10 several pseudo ttys are muxed to one serial line. -->
11 <interface name="org.freesmartphone.GSM.MUX">
12 <annotation name="org.freedesktop.DBus.GLib.CSymbol" value="muxer_control"/>
13 <!-- switch modem on/off -->
14 <method name="SetPower">
15 <annotation name="org.freedesktop.DBus.GLib.CSymbol" value="muxer_control_set_power"/>
16 <!-- origin of the call (see AllocChannel) -->
17 <arg name="origin" type="s" direction="in"/>
19 <arg name="on" type="b" direction="in"/>
21 <!-- get if modem is onor off -->
22 <method name="GetPower">
23 <annotation name="org.freedesktop.DBus.GLib.CSymbol" value="muxer_control_get_power"/>
24 <!-- origin of the call (see AllocChannel) -->
25 <arg name="origin" type="s" direction="in"/>
26 <!-- current state -->
27 <arg name="on" type="b" direction="out"/>
31 <annotation name="org.freedesktop.DBus.GLib.CSymbol" value="muxer_control_reset_modem"/>
32 <!-- origin of the call (see AllocChannel) -->
33 <arg name="origin" type="s" direction="in"/>
35 <!-- allocate a muxed channel -->
36 <method name="AllocChannel">
37 <annotation name="org.freedesktop.DBus.GLib.CSymbol" value="muxer_control_alloc_channel"/>
38 <!-- for now the origin will be used for logging only. you will
39 see which channels are closed not only by number but with an
40 explaining name like 'ppp'. future use may be to allocate a
41 special channel because some modems allow some operations on a
42 concret channel number only. -->
43 <arg name="origin" type="s" direction="in"/>
44 <!-- unix device for this channel -->
45 <arg name="channel" type="s" direction="out"/>
48 <method name="ListChannels">
49 <arg name="id" type="a{io}" direction="out"/>
51 <method name="CloseChannel">
52 <arg name="id" type="i" direction="in"/>