fixed useragent
[syren.git] / src / sylib / syren_common.h
blob8dd0b6da25bc61fb383ebffc4f2db0e02e3c8b86
1 /*
2 Syren -- a lightweight downloader for Linux/BSD/MacOSX
3 inspired by Axel Copyright 2001-2002 Wilmer van der Gaast
4 version 0.0.6 (atomic alien)
5 coded by Ketmar // Vampire Avalon
7 This program is free software; you can redistribute it and/or modify
8 it under the terms of the GNU General Public License as published by
9 the Free Software Foundation; either version 3 of the License, or
10 (at your option) any later version.
12 This program is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
17 You should have received a copy of the GNU General Public License with
18 the Debian GNU/Linux distribution in file /usr/doc/copyright/GPL;
19 if not, write to the Free Software Foundation, Inc., 59 Temple Place,
20 Suite 330, Boston, MA 02111-1307 USA
23 Syren commons
25 #ifndef _SYREN_COMMON_H
26 #define _SYREN_COMMON_H
28 #ifdef __cplusplus
29 extern "C" {
30 #endif
33 #ifndef _GNU_SOURCE
34 # define _GNU_SOURCE
35 #endif
38 #include <stdint.h>
39 #include <ctype.h>
40 #include <time.h>
41 #include <stdio.h>
42 #include <stdarg.h>
43 #include <string.h>
45 /*#include "syren_os.h"*/
46 /* see os-specific includes in syren_os.h */
49 #ifdef __linux
50 #define SYREN_OS_NAME "Linux"
51 #else
52 #ifdef __APPLE__
53 #define SYREN_OS_NAME "Darwin"
54 #else
55 #define SYREN_OS_NAME "BSD"
56 #endif
57 #endif
60 #define SYREN_VERSION_CODENAME "atomic alien"
61 #define SYREN_VERSION_STRING "0.0.6"
62 #define SYREN_CDATETIME_STRING __DATE__ " " __TIME__
63 #define SYREN_VERSION_DATETIME_STRING "Syren v" SYREN_VERSION_STRING \
64 " (" SYREN_VERSION_CODENAME ") compile date: " SYREN_CDATETIME_STRING
65 #define SYREN_VDHEADER_STRING SYREN_VERSION_DATETIME_STRING "\ncoded by Ketmar // Vampire Avalon\nGNU GPL v3\n" \
66 "tnx to:\n silver (!!)\n pingw33n\n amber\n"
67 #define SYREN_DEFAULT_USER_AGENT "Mozilla/5.0 (X11; " SYREN_OS_NAME ") Syren v" SYREN_VERSION_STRING \
68 " (" SYREN_VERSION_CODENAME ")"
71 typedef enum {
72 SY_FALSE=0,
73 SY_TRUE=-1
74 } TSyBool;
77 typedef enum {
78 SY_OK=0,
79 SY_ERROR=-1 /* MUST be -1! */
80 } TSyResult;
83 /*#define SYREN_USE_SCRIPT*/
85 #ifdef __cplusplus
87 #endif
89 #endif