1TICKIT_TERM_REF(3) Library Functions Manual TICKIT_TERM_REF(3)
2
3
4
6 tickit_term_ref, tickit_term_unref - adjust the refcount of a terminal
7
9 #include <tickit.h>
10
11 TickitTerm *tickit_term_ref(TickitTerm *tt);
12 void tickit_term_unref(TickitTerm *tt);
13
14 Link with -ltickit.
15
17 tickit_term_ref() increments the stored refcount of the given terminal
18 instance by one. It returns the pointer argument itself, so it is use‐
19 ful for chaining.
20
21 tickit_term_unref() decrements the stored refcount of the given termi‐
22 nal instance by one. If the refcount drops to zero, the instance is
23 destroyed. This will release any resources controlled by it and unbind
24 all the bound event handlers, causing handlers to be invoked with the
25 TICKIT_EV_DESTROY flag if appropriate. It will not close any filehan‐
26 dles associated with the instance.
27
29 tickit_term_ref() returns a terminal instance pointer.
30 tickit_term_unref() returns no value.
31
33 tickit_term_new(3), tickit_term(7), tickit(7)
34
35
36
37 TICKIT_TERM_REF(3)