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

« back to all changes in this revision

Viewing changes to src/eve.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
 * Copyright (c) 2008 Asbjørn Zweidorff Kjær
4
 
 * Copyright (c) 2005-2009 Brenden Matthews, Philip Kovacs, et. al.
 
6
 * Copyright (c) 2005-2010 Brenden Matthews, Philip Kovacs, et. al.
5
7
 *      (see AUTHORS)
6
8
 * All rights reserved.
7
9
 *
19
21
 *
20
22
 */
21
23
 
22
 
#define _GNU_SOURCE
23
 
#define MAXCHARS 4
24
 
#define EVE_UPDATE_DELAY 60
25
 
 
26
 
#include <stdio.h>
27
 
#include <stdlib.h>
28
 
#include <unistd.h>
29
 
#include <string.h>
30
 
 
31
 
#include <time.h>
32
 
 
33
 
typedef struct {
34
 
        char *charid;
35
 
        char *skillname;
36
 
        char *time;
37
 
        char *lastOutput;
38
 
 
39
 
        struct tm ends;
40
 
        struct tm cache;
41
 
 
42
 
        time_t delay;
43
 
 
44
 
        int level;
45
 
        int skill;
46
 
} Character;
47
 
 
48
 
struct xmlData {
49
 
        char *data;
50
 
        size_t size;
51
 
};
52
 
 
53
 
char *eve(char *, char *, char *);
54
 
char *getXmlFromAPI(const char *, const char *, const char *, const char *);
55
 
char *getSkillname(const char *, int);
56
 
char *formatTime(struct tm *);
57
 
int parseTrainingXml(char *, Character *);
58
 
int parseSkilltreeXml(char *, char *);
59
 
int isCacheValid(struct tm);
60
 
int file_exists(const char *);
61
 
void writeSkilltree(char *, const char *);
62
 
void init_eve(void);
 
24
#ifndef _EVE_H
 
25
#define _EVE_H
 
26
 
 
27
void scan_eve(struct text_object *, const char *);
 
28
void print_eve(struct text_object *, char *, int);
 
29
void free_eve(struct text_object *);
 
30
 
 
31
#endif /* _EVE_H */