X-Git-Url: https://vcs.maemo.org/git/?a=blobdiff_plain;f=src%2Feve.h;h=a6e42102e3c13c916aca1f5af4193899ea1e97ae;hb=29f013b34da725f7be150abcc4880f294a23b5f6;hp=6d78fa224b9cc52e7738e8c6a068e0fc8ebff2b2;hpb=896863e2d8556c5a369ae0bd276067aab640f714;p=monky
diff --git a/src/eve.h b/src/eve.h
index 6d78fa2..a6e4210 100644
--- a/src/eve.h
+++ b/src/eve.h
@@ -1,7 +1,9 @@
-/* Conky, a system monitor, based on torsmo
+/* -*- mode: c; c-basic-offset: 4; tab-width: 4; indent-tabs-mode: t -*-
+ *
+ * Conky, a system monitor, based on torsmo
*
* Copyright (c) 2008 Asbjørn Zweidorff Kjær
- * Copyright (c) 2005-2008 Brenden Matthews, Philip Kovacs, et. al.
+ * Copyright (c) 2005-2010 Brenden Matthews, Philip Kovacs, et. al.
* (see AUTHORS)
* All rights reserved.
*
@@ -17,50 +19,13 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see .
*
- * $Id$ */
-
-#define _GNU_SOURCE
-#define MAXCHARS 4
-#define EVE_UPDATE_DELAY 60
-#define MY_ENCODING "ISO-8859-1"
-#define EVEURL_TRAINING "http://api.eve-online.com/char/SkillInTraining.xml.aspx"
-#define EVEURL_SKILLTREE "http://api.eve-online.com/eve/Skilltree.xml.aspx"
-#define EVE_OUTPUT_FORMAT "%s %d in %s"
-
-#include
-#include
-#include
-#include
-
-#include
-
-typedef struct {
- char *charid;
- char *skillname;
- char *time;
- char *lastOutput;
-
- struct tm ends;
- struct tm cache;
-
- time_t delay;
+ */
- int level;
- int skill;
-} Character;
+#ifndef _EVE_H
+#define _EVE_H
-struct xmlData {
- char *data;
- size_t size;
-};
+void scan_eve(struct text_object *, const char *);
+void print_eve(struct text_object *, char *, int);
+void free_eve(struct text_object *);
-char *eve(char *, char *, char *);
-char *getXmlFromAPI(const char *, const char *, const char *, const char *);
-char *getSkillname(const char *, int);
-char *formatTime(struct tm *);
-int parseTrainingXml(char *, Character *);
-int parseSkilltreeXml(char *, char *);
-int isCacheValid(struct tm);
-int file_exists(const char *);
-void writeSkilltree(char *, const char *);
-void init_eve(void);
+#endif /* _EVE_H */