~ubuntu-branches/debian/sid/conky/sid

« back to all changes in this revision

Viewing changes to src/tailhead.h

  • Committer: Bazaar Package Importer
  • Author(s): Cesare Tirabassi
  • Date: 2010-03-28 21:19:51 UTC
  • mfrom: (1.3.1 upstream) (16.1.17 lucid)
  • Revision ID: james.westby@ubuntu.com-20100328211951-ejq536k2r858srli
Tags: 1.8.0-1
* New upstream release:
  - add AF_UNIX socket support
  - fix sigsegv if config file is deleted (LP: #525926)
  - the following debian bugs are closed by this upload:
    + change automake1.10 to automake1.11 (Closes: #550929)
    + hwmon made compatible with kernels >= 2.6.31 (Closes: #556926)
    + text_buffer_size change is well documented (Closes: #519401)
    + fix diskio for not existing devices (Closes: #536557)
    + fix wrong mixer values on some systems (Closes: #540282)
    + fix minor memory leak (Closes: #566524)
    + fix some documentation error re. graphs (Closes: #564518)
    + add -p/--pause startup option (Closes: #513440)
    + fix documentation about mixer values (Closes: #538760)
* This release is based on the Ubuntu package with the following changes
  necessary for Debian (Closes: #536320):
  - change control and rules to build correctly on non-Linux arches
    (Closes: #536326)
  - updated NEWS, descriptions in control and changelog
  - change archive area to contrib
* Change priority of metapackage to extra
* My utmost thanks go to Kapil Hari Paranjape for his packaging work and to
  Luca Falavigna for being so kind to review and sponsor this release

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* Conky, a system monitor, based on torsmo
 
1
/* -*- mode: c; c-basic-offset: 4; tab-width: 4; indent-tabs-mode: t -*-
 
2
 *
 
3
 * Conky, a system monitor, based on torsmo
2
4
 *
3
5
 * Any original torsmo code is licensed under the BSD license
4
6
 *
7
9
 * Please see COPYING for details
8
10
 *
9
11
 * Copyright (c) 2004, Hannu Saransaari and Lauri Hakkarainen
10
 
 * Copyright (c) 2005-2009 Brenden Matthews, Philip Kovacs, et. al.
 
12
 * Copyright (c) 2005-2010 Brenden Matthews, Philip Kovacs, et. al.
11
13
 *      (see AUTHORS)
12
14
 * All rights reserved.
13
15
 *
24
26
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
25
27
 *
26
28
 */
 
29
 
27
30
#ifndef _TAILHEAD_H
28
31
#define _TAILHEAD_H
29
32
 
30
 
#include "text_object.h"
31
 
 
32
 
#define MAX_TAIL_LINES 100
33
 
 
34
 
enum tailhead_type {
35
 
        TAIL,
36
 
        HEAD,
37
 
};
38
 
 
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)
41
 
 
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);
 
33
void free_tailhead(struct text_object *);
 
34
void init_tailhead(const char *, const char *, struct text_object *, void *);
 
35
void print_tailhead(const char *, struct text_object *, char *, int);
 
36
 
 
37
void print_lines(struct text_object *, char *, int);
 
38
void print_words(struct text_object *, char *, int);
46
39
 
47
40
#endif /* _TAILHEAD_H */