/usr/share/vala/vapi/fsotransport-2.0.vapi is in libfsoframework-dev 0.12.0-5.
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 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 | /* fsotransport-2.0.vapi generated by valac 0.24.0, do not modify. */
namespace FsoFramework {
[CCode (cheader_filename = "fsotransport.h")]
public abstract class AbstractCommandHandler {
public GLib.SourceFunc? callback;
public uint retry;
public uint timeout;
public AbstractCommandHandler ();
public abstract string to_string ();
public abstract void writeToTransport (FsoFramework.Transport t);
}
[CCode (cheader_filename = "fsotransport.h")]
public abstract class AbstractCommandQueue : FsoFramework.CommandQueue, GLib.Object {
protected FsoFramework.AbstractCommandHandler current;
protected FsoFramework.CommandQueue.UnsolicitedHandler urchandler;
public AbstractCommandQueue (FsoFramework.Transport transport);
protected bool checkRestartingQ ();
public virtual async void close ();
protected void enqueueCommand (FsoFramework.AbstractCommandHandler command);
public virtual async void freeze (bool drain = false);
protected bool is_busy ();
protected void onHupFromTransport ();
protected abstract void onReadFromTransport (FsoFramework.Transport t);
protected virtual void onResponseTimeout (FsoFramework.AbstractCommandHandler ach);
protected bool onTimeout ();
public virtual async bool open ();
protected void reset ();
protected void resetTimeout ();
public virtual async void thaw ();
protected void writeNextCommand ();
public signal void hangup ();
}
[CCode (cheader_filename = "fsotransport.h")]
public class BaseParser : FsoFramework.Parser, GLib.Object {
protected FsoFramework.Parser.ExpectedPrefixFunc expectedPrefix;
protected FsoFramework.Parser.HaveCommandFunc haveCommand;
protected FsoFramework.Parser.SolicitedCompletedFunc solicitedCompleted;
protected FsoFramework.Parser.UnsolicitedCompletedFunc unsolicitedCompleted;
public BaseParser ();
public virtual int feed (void* data, int len);
}
[CCode (cheader_filename = "fsotransport.h")]
public class BaseTransport : FsoFramework.Transport {
protected GLib.ByteArray buffer;
protected int fd;
protected bool hard;
protected FsoFramework.TransportFunc hupfunc;
protected string name;
protected bool raw;
protected FsoFramework.TransportFunc readfunc;
protected uint speed;
public BaseTransport (string name, uint speed = 0, bool raw = true, bool hard = true);
public size_t _read (void* rdata, int rlength, int maxWait = 2000);
protected virtual ssize_t _real_read (int fd, void* data, int len);
protected virtual ssize_t _real_write (int fd, void* data, int len);
public override void close ();
protected virtual void configure ();
public override void drain ();
public override void flush ();
public override int freeze ();
public override void getDelegates (out FsoFramework.TransportFunc? readfun, out FsoFramework.TransportFunc? hupfun);
public override string getName ();
public override bool isOpen ();
public override bool open ();
public override async bool openAsync ();
protected Posix.speed_t parse_speed (uint speed);
public override int read (void* data, int len);
public virtual string repr ();
protected void restartWriter ();
public override void resume ();
public override void setBuffered (bool on);
public override void setDelegates (FsoFramework.TransportFunc? readfunc, FsoFramework.TransportFunc? hupfunc);
public override void setPriorities (int rp, int wp);
public override bool suspend ();
public override void thaw ();
public override int write (void* data, int len);
public override int writeAndRead (uchar* wdata, int wlength, uchar* rdata, int rlength, int maxWait = 5000);
}
[CCode (cheader_filename = "fsotransport.h")]
public class CombinedTransport : FsoFramework.BaseTransport {
public CombinedTransport (string specification);
public override void close ();
public override int freeze ();
public override bool isOpen ();
public override bool open ();
public override int read (void* data, int length);
public override void setBuffered (bool on);
public override void thaw ();
public override int write (void* data, int length);
public override int writeAndRead (void* wdata, int wlength, void* rdata, int rlength, int maxWait = 1000);
}
[CCode (cheader_filename = "fsotransport.h")]
public class DelegateTransport : FsoFramework.BaseTransport {
public DelegateTransport (FsoFramework.TransportDataFunc writefunc, FsoFramework.TransportDataFunc readfunc, FsoFramework.TransportFunc hupfunc, FsoFramework.TransportBoolFunc openfunc, FsoFramework.TransportFunc closefunc, FsoFramework.TransportIntFunc freezefunc, FsoFramework.TransportFunc thawfunc);
public override void close ();
public override int freeze ();
public override bool isOpen ();
public override bool open ();
public override int read (void* data, int length);
public override void setBuffered (bool on);
public override void thaw ();
public override int write (void* data, int length);
public override int writeAndRead (void* wdata, int wlength, void* rdata, int rlength, int maxWait = 1000);
}
[CCode (cheader_filename = "fsotransport.h")]
public class FdPipe : GLib.Object {
public FdPipe (int s, int din, int dout);
}
[CCode (cheader_filename = "fsotransport.h")]
public class LineByLineParser : FsoFramework.BaseParser {
public LineByLineParser (string termination = "\r\n", bool swallow = true);
public override int feed (char* data, int len);
}
[CCode (cheader_filename = "fsotransport.h")]
public class NgsmAdvancedMuxTransport : FsoFramework.NgsmTransport {
public NgsmAdvancedMuxTransport (string portname, uint portspeed, uint framesize = 64);
}
[CCode (cheader_filename = "fsotransport.h")]
public class NgsmBasicMuxTransport : FsoFramework.NgsmTransport {
public NgsmBasicMuxTransport (string portname, uint portspeed, uint framesize = 64);
}
[CCode (cheader_filename = "fsotransport.h")]
public class NgsmTransport : FsoFramework.BaseTransport {
public NgsmTransport (string portname, uint portspeed, bool advanced, uint framesize = 64);
public override void close ();
public override bool open ();
public override string repr ();
}
[CCode (cheader_filename = "fsotransport.h")]
public class NullParser : FsoFramework.BaseParser {
public NullParser ();
public override int feed (void* data, int len);
}
[CCode (cheader_filename = "fsotransport.h")]
public class NullTransport : FsoFramework.BaseTransport {
public NullTransport (string name = "null", uint speed = 0, bool raw = true, bool hard = true);
public override void close ();
public override int freeze ();
public override string getName ();
public override bool isOpen ();
public override bool open ();
public override int read (void* data, int len);
public override string repr ();
public override void thaw ();
public override int write (void* data, int len);
public override int writeAndRead (void* wdata, int wlength, void* rdata, int rlength, int maxWait = 1000);
}
[CCode (cheader_filename = "fsotransport.h")]
public class PtyTransport : FsoFramework.BaseTransport {
public PtyTransport ();
public override string getName ();
public override bool open ();
public override string repr ();
}
[CCode (cheader_filename = "fsotransport.h")]
public class RawTransport : FsoFramework.BaseTransport {
public RawTransport (string portname);
protected override void configure ();
public override bool open ();
public override string repr ();
public override void resume ();
public override bool suspend ();
}
[CCode (cheader_filename = "fsotransport.h")]
public class SerialTransport : FsoFramework.BaseTransport {
public bool dtr_cycle;
public SerialTransport (string portname, uint portspeed, bool raw = true, bool hard = true);
public override bool open ();
public override string repr ();
}
[CCode (cheader_filename = "fsotransport.h")]
public class SocketTransport : FsoFramework.BaseTransport {
public SocketTransport (string type, string host, uint port);
public override void configure ();
public override string getName ();
public override bool open ();
public override string repr ();
}
[CCode (cheader_filename = "fsotransport.h")]
public abstract class Transport : GLib.Object {
public FsoFramework.Logger logger;
public Transport ();
public abstract void close ();
public static FsoFramework.Transport? create (string type, string name = "", uint speed = 0, bool raw = true, bool hard = true);
public abstract void drain ();
public abstract void flush ();
public abstract int freeze ();
public abstract void getDelegates (out FsoFramework.TransportFunc? readfun, out FsoFramework.TransportFunc? hupfun);
public abstract string getName ();
public abstract bool isOpen ();
public abstract bool open ();
public abstract async bool openAsync ();
public abstract int read (void* data, int length);
public abstract void resume ();
public abstract void setBuffered (bool on);
public abstract void setDelegates (FsoFramework.TransportFunc? readfunc, FsoFramework.TransportFunc? hupfunc);
public abstract void setPriorities (int rp, int wp);
public abstract bool suspend ();
public abstract void thaw ();
public abstract int write (void* data, int length);
public abstract int writeAndRead (void* wdata, int wlength, void* rdata, int rlength, int maxWait = 5000);
}
[CCode (cheader_filename = "fsotransport.h")]
public class TransportSpec {
public bool hard;
public string name;
public bool raw;
public uint speed;
public string type;
public TransportSpec (string type, string name = "", uint speed = 0, bool raw = true, bool hard = true);
public FsoFramework.Transport create ();
public static FsoFramework.TransportSpec parse (string line);
public string repr ();
}
[CCode (cheader_filename = "fsotransport.h")]
public interface CommandQueue : GLib.Object {
public delegate void UnsolicitedHandler (string prefix, string response, string? pdu = null);
public abstract async void close ();
public abstract async void freeze (bool drain = false);
public abstract async bool open ();
public abstract void registerUnsolicitedHandler (FsoFramework.CommandQueue.UnsolicitedHandler urchandler);
public abstract async void thaw ();
public abstract FsoFramework.Transport transport { get; set; }
}
[CCode (cheader_filename = "fsotransport.h")]
public interface Parser : GLib.Object {
public delegate bool ExpectedPrefixFunc (string line);
public delegate bool HaveCommandFunc ();
public delegate void SolicitedCompletedFunc (string[] response);
public delegate void UnsolicitedCompletedFunc (string[] response);
public abstract int feed (void* data, int len);
public abstract void setDelegates (FsoFramework.Parser.HaveCommandFunc haveCommand, FsoFramework.Parser.ExpectedPrefixFunc expectedPrefix, FsoFramework.Parser.SolicitedCompletedFunc solicitedCompleted, FsoFramework.Parser.UnsolicitedCompletedFunc unsolicitedCompleted);
}
[CCode (cheader_filename = "fsotransport.h")]
public enum TransportState {
CLOSED,
OPEN,
ALIVE,
FROZEN,
DEAD
}
[CCode (cheader_filename = "fsotransport.h")]
public errordomain TransportError {
UNABLE_TO_OPEN,
UNABLE_TO_WRITE
}
[CCode (cheader_filename = "fsotransport.h")]
public delegate bool TransportBoolFunc (FsoFramework.Transport transport);
[CCode (cheader_filename = "fsotransport.h")]
public delegate int TransportDataFunc (void* data, int length, FsoFramework.Transport transport);
[CCode (cheader_filename = "fsotransport.h")]
public delegate void TransportFunc (FsoFramework.Transport transport);
[CCode (cheader_filename = "fsotransport.h")]
public delegate int TransportIntFunc (FsoFramework.Transport transport);
}
|