1TICKIT_TERM_REF(3)         Library Functions Manual         TICKIT_TERM_REF(3)
2
3
4

NAME

6       tickit_term_ref, tickit_term_unref - adjust the refcount of a terminal
7

SYNOPSIS

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

DESCRIPTION

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 de‐
23       stroyed.  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

RETURN VALUE

29       tickit_term_ref() returns a terminal instance pointer.  tickit_term_un‐
30       ref() returns no value.
31

SEE ALSO

33       tickit_term_build(3), tickit_term(7), tickit(7)
34
35
36
37                                                            TICKIT_TERM_REF(3)
Impressum