1 /* Conky, a system monitor, based on torsmo
3 * Any original torsmo code is licensed under the BSD license
5 * All code written since the fork of torsmo is licensed under the GPL
7 * Please see COPYING for details
9 * Copyright (c) 2004, Hannu Saransaari and Lauri Hakkarainen
10 * Copyright (c) 2005-2009 Brenden Matthews, Philip Kovacs, et. al.
12 * All rights reserved.
14 * This program is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU General Public License as published by
16 * the Free Software Foundation, either version 3 of the License, or
17 * (at your option) any later version.
19 * This program is distributed in the hope that it will be useful,
20 * but WITHOUT ANY WARRANTY; without even the implied warranty of
21 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 * GNU General Public License for more details.
23 * You should have received a copy of the GNU General Public License
24 * along with this program. If not, see <http://www.gnu.org/licenses/>.
30 #include "text_object.h"
32 #define MAX_TAIL_LINES 100
39 #define init_tail_object(o, a) init_tailhead_object(TAIL, o, a)
40 #define init_head_object(o, a) init_tailhead_object(HEAD, o, a)
42 int init_tailhead_object(enum tailhead_type,
43 struct text_object *, const char *);
44 int print_head_object(struct text_object *, char *, size_t);
45 int print_tail_object(struct text_object *, char *, size_t);
47 #endif /* _TAILHEAD_H */