/usr/include/tickit-termdrv.h is in libtickit-dev 0.2-2ubuntu2.
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 | #ifdef __cplusplus
extern "C" {
#endif
#ifndef __TICKIT_TERMDRV_H__
#define __TICKIT_TERMDRV_H__
/*
* The contents of this file should be considered entirely experimental, and
* subject to any change at any time. We make no API or ABI stability
* guarantees at this time.
*/
#include "tickit.h"
#include <termkey.h>
typedef struct TickitTermDriver TickitTermDriver;
typedef struct {
void (*attach)(TickitTermDriver *ttd, TickitTerm *tt); /* optional */
void (*destroy)(TickitTermDriver *ttd);
void (*start)(TickitTermDriver *ttd); /* optional */
bool (*started)(TickitTermDriver *ttd); /* optional */
void (*stop)(TickitTermDriver *ttd); /* optional */
void (*pause)(TickitTermDriver *ttd); /* optional */
void (*resume)(TickitTermDriver *ttd); /* optional */
bool (*print)(TickitTermDriver *ttd, const char *str, size_t len);
bool (*goto_abs)(TickitTermDriver *ttd, int line, int col);
bool (*move_rel)(TickitTermDriver *ttd, int downward, int rightward);
bool (*scrollrect)(TickitTermDriver *ttd, const TickitRect *rect, int downward, int rightward);
bool (*erasech)(TickitTermDriver *ttd, int count, TickitMaybeBool moveend);
bool (*clear)(TickitTermDriver *ttd);
bool (*chpen)(TickitTermDriver *ttd, const TickitPen *delta, const TickitPen *final);
bool (*getctl_int)(TickitTermDriver *ttd, TickitTermCtl ctl, int *value);
bool (*setctl_int)(TickitTermDriver *ttd, TickitTermCtl ctl, int value);
bool (*setctl_str)(TickitTermDriver *ttd, TickitTermCtl ctl, const char *value);
int (*gotkey)(TickitTermDriver *ttd, TermKey *tk, const TermKeyKey *key); /* optional */
} TickitTermDriverVTable;
struct TickitTermDriver {
TickitTerm *tt;
TickitTermDriverVTable *vtable;
};
void *tickit_termdrv_get_tmpbuffer(TickitTermDriver *ttd, size_t len);
void tickit_termdrv_write_str(TickitTermDriver *ttd, const char *str, size_t len);
void tickit_termdrv_write_strf(TickitTermDriver *ttd, const char *fmt, ...);
TickitPen *tickit_termdrv_current_pen(TickitTermDriver *ttd);
/*
* Function to construct a new TickitTerm directly from a TickitTermDriver
*/
TickitTerm *tickit_term_new_for_driver(TickitTermDriver *ttd);
/*
* Intended for "subclass" terminal methods, to obtain their custom driver
* when given a TT instance
*/
TickitTermDriver *tickit_term_get_driver(TickitTerm *tt);
#endif
#ifdef __cplusplus
}
#endif
|