cec.h 504 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. typedef struct {
  2. uchar dst[6];
  3. uchar src[6];
  4. ushort etype;
  5. uchar type;
  6. uchar conn;
  7. uchar seq;
  8. uchar len;
  9. uchar data[1500];
  10. } Pkt;
  11. enum {
  12. Fkbd,
  13. Fcec,
  14. Ffatal,
  15. };
  16. typedef struct Mux Mux;
  17. #pragma incomplete Mux;
  18. enum{
  19. Iowait = 2000,
  20. Etype = 0xbcbc,
  21. };
  22. int debug;
  23. Mux *mux(int fd[2]);
  24. void muxfree(Mux*);
  25. int muxread(Mux*, Pkt*);
  26. int netget(void *, int);
  27. int netopen(char *name);
  28. int netsend(void *, int);
  29. void dump(uchar*, int);
  30. void exits0(char*);
  31. void rawoff(void);
  32. void rawon(void);