summaryrefslogtreecommitdiff
path: root/library
authorzecke <zecke>2004-02-20 00:47:08 (UTC)
committer zecke <zecke>2004-02-20 00:47:08 (UTC)
commite54e1cb01c3da0655fc6e86bd9d169b002a63e66 (patch) (unidiff)
tree393cca9eb79bfbb8610f903383fdd21c0d7f36a8 /library
parent2fa9c89fc93d8bf58e3c2239691d6b6d92dc0f93 (diff)
downloadopie-e54e1cb01c3da0655fc6e86bd9d169b002a63e66.zip
opie-e54e1cb01c3da0655fc6e86bd9d169b002a63e66.tar.gz
opie-e54e1cb01c3da0655fc6e86bd9d169b002a63e66.tar.bz2
These values should be set by the buildsystem.
So If Calibration,malloc instead of new,OpiePlayer,Shutdown isn't working anymore this is because the buildsystem lacks sane defaults for your system
Diffstat (limited to 'library') (more/less context) (ignore whitespace changes)
-rw-r--r--library/custom-ipaq.h4
-rw-r--r--library/custom-ramses.h7
-rw-r--r--library/custom-sharp.h7
-rw-r--r--library/custom-simpad.h3
-rwxr-xr-xlibrary/custom-yopy.h2
5 files changed, 0 insertions, 23 deletions
diff --git a/library/custom-ipaq.h b/library/custom-ipaq.h
index 8321199..553b571 100644
--- a/library/custom-ipaq.h
+++ b/library/custom-ipaq.h
@@ -1,24 +1,20 @@
1/********************************************************************** 1/**********************************************************************
2** Copyright (C) 2000-2002 Trolltech AS. All rights reserved. 2** Copyright (C) 2000-2002 Trolltech AS. All rights reserved.
3** 3**
4** This file is part of the Qtopia Environment. 4** This file is part of the Qtopia Environment.
5** 5**
6** This file may be distributed and/or modified under the terms of the 6** This file may be distributed and/or modified under the terms of the
7** GNU General Public License version 2 as published by the Free Software 7** GNU General Public License version 2 as published by the Free Software
8** Foundation and appearing in the file LICENSE.GPL included in the 8** Foundation and appearing in the file LICENSE.GPL included in the
9** packaging of this file. 9** packaging of this file.
10** 10**
11** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE 11** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
12** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. 12** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
13** 13**
14** See http://www.trolltech.com/gpl/ for GPL licensing information. 14** See http://www.trolltech.com/gpl/ for GPL licensing information.
15** 15**
16** Contact info@trolltech.com if any conditions of this licensing are 16** Contact info@trolltech.com if any conditions of this licensing are
17** not clear to you. 17** not clear to you.
18** 18**
19**********************************************************************/ 19**********************************************************************/
20 20
21#define QPE_NEED_CALIBRATION
22#define OPIE_SOUND_FRAGMENT_SHIFT 14
23#define USE_REALTIME_AUDIO_THREAD
24#define OPIE_NEW_MALLOC
diff --git a/library/custom-ramses.h b/library/custom-ramses.h
index 5a1abe4..6e94b2d 100644
--- a/library/custom-ramses.h
+++ b/library/custom-ramses.h
@@ -1,72 +1,65 @@
1/********************************************************************** 1/**********************************************************************
2** Copyright (C) 2000-2002 Trolltech AS. All rights reserved. 2** Copyright (C) 2000-2002 Trolltech AS. All rights reserved.
3** 3**
4** This file is part of the Qtopia Environment. 4** This file is part of the Qtopia Environment.
5** 5**
6** This file may be distributed and/or modified under the terms of the 6** This file may be distributed and/or modified under the terms of the
7** GNU General Public License version 2 as published by the Free Software 7** GNU General Public License version 2 as published by the Free Software
8** Foundation and appearing in the file LICENSE.GPL included in the 8** Foundation and appearing in the file LICENSE.GPL included in the
9** packaging of this file. 9** packaging of this file.
10** 10**
11** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE 11** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
12** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. 12** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
13** 13**
14** See http://www.trolltech.com/gpl/ for GPL licensing information. 14** See http://www.trolltech.com/gpl/ for GPL licensing information.
15** 15**
16** Contact info@trolltech.com if any conditions of this licensing are 16** Contact info@trolltech.com if any conditions of this licensing are
17** not clear to you. 17** not clear to you.
18** 18**
19**********************************************************************/ 19**********************************************************************/
20 20
21#define QPE_NEED_CALIBRATION
22#define QPE_HAVE_TOGGLELIGHT
23#define QPE_STARTMENU
24#define USE_REALTIME_AUDIO_THREAD
25#define OPIE_NEW_MALLOC
26
27
28#include <unistd.h> 21#include <unistd.h>
29#include <stdio.h> 22#include <stdio.h>
30#include <signal.h> 23#include <signal.h>
31#include <fcntl.h> 24#include <fcntl.h>
32#include <sys/ioctl.h> 25#include <sys/ioctl.h>
33 26
34#define QPE_HAVE_MEMALERTER 27#define QPE_HAVE_MEMALERTER
35 28
36#define QPE_MEMALERTER_IMPL \ 29#define QPE_MEMALERTER_IMPL \
37static void sig_handler(int sig) \ 30static void sig_handler(int sig) \
38{ \ 31{ \
39 switch (sig) { \ 32 switch (sig) { \
40 case SIGHUP: \ 33 case SIGHUP: \
41 memstate = VeryLow; \ 34 memstate = VeryLow; \
42 break; \ 35 break; \
43 case SIGUSR1: \ 36 case SIGUSR1: \
44 memstate = Normal; \ 37 memstate = Normal; \
45 break; \ 38 break; \
46 case SIGUSR2: \ 39 case SIGUSR2: \
47 memstate = Low; \ 40 memstate = Low; \
48 break; \ 41 break; \
49 } \ 42 } \
50} \ 43} \
51static void initMemalerter() \ 44static void initMemalerter() \
52{ \ 45{ \
53 struct sigaction sa; \ 46 struct sigaction sa; \
54 memset(&sa, '\0', sizeof sa); \ 47 memset(&sa, '\0', sizeof sa); \
55 sa.sa_handler = sig_handler; \ 48 sa.sa_handler = sig_handler; \
56 sa.sa_flags = SA_RESTART; \ 49 sa.sa_flags = SA_RESTART; \
57 if (sigaction(SIGHUP, &sa, NULL) < 0) { \ 50 if (sigaction(SIGHUP, &sa, NULL) < 0) { \
58 return; \ 51 return; \
59 } \ 52 } \
60 if (sigaction(SIGUSR1, &sa, NULL) < 0) { \ 53 if (sigaction(SIGUSR1, &sa, NULL) < 0) { \
61 return; \ 54 return; \
62 } \ 55 } \
63 if (sigaction(SIGUSR2, &sa, NULL) < 0) { \ 56 if (sigaction(SIGUSR2, &sa, NULL) < 0) { \
64 return; \ 57 return; \
65 } \ 58 } \
66 FILE *fo = fopen("/proc/sys/vm/freepg_signal_proc", "w"); \ 59 FILE *fo = fopen("/proc/sys/vm/freepg_signal_proc", "w"); \
67 \ 60 \
68 if (!fo) \ 61 if (!fo) \
69 return; \ 62 return; \
70 fprintf(fo, "qpe\n"); \ 63 fprintf(fo, "qpe\n"); \
71 fclose(fo); \ 64 fclose(fo); \
72} 65}
diff --git a/library/custom-sharp.h b/library/custom-sharp.h
index b0e67b8..9fd63e5 100644
--- a/library/custom-sharp.h
+++ b/library/custom-sharp.h
@@ -1,102 +1,95 @@
1/********************************************************************** 1/**********************************************************************
2** Copyright (C) 2000-2002 Trolltech AS. All rights reserved. 2** Copyright (C) 2000-2002 Trolltech AS. All rights reserved.
3** 3**
4** This file is part of the Qtopia Environment. 4** This file is part of the Qtopia Environment.
5** 5**
6** This file may be distributed and/or modified under the terms of the 6** This file may be distributed and/or modified under the terms of the
7** GNU General Public License version 2 as published by the Free Software 7** GNU General Public License version 2 as published by the Free Software
8** Foundation and appearing in the file LICENSE.GPL included in the 8** Foundation and appearing in the file LICENSE.GPL included in the
9** packaging of this file. 9** packaging of this file.
10** 10**
11** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE 11** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
12** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. 12** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
13** 13**
14** See http://www.trolltech.com/gpl/ for GPL licensing information. 14** See http://www.trolltech.com/gpl/ for GPL licensing information.
15** 15**
16** Contact info@trolltech.com if any conditions of this licensing are 16** Contact info@trolltech.com if any conditions of this licensing are
17** not clear to you. 17** not clear to you.
18** 18**
19**********************************************************************/ 19**********************************************************************/
20 20
21#define QPE_NEED_CALIBRATION
22#define QPE_OWNAPM
23#define QPE_HAVE_TOGGLELIGHT
24#define QPE_NOCIBAUD 21#define QPE_NOCIBAUD
25#define QPE_STARTMENU
26#define OPIE_NEW_MALLOC
27#define USE_REALTIME_AUDIO_THREAD
28#define OPIE_NO_SOUND_PCM_READ_BITS
29 22
30#include <asm/sharp_apm.h> 23#include <asm/sharp_apm.h>
31#ifndef APM_IOC_BATTERY_BACK_CHK 24#ifndef APM_IOC_BATTERY_BACK_CHK
32#define APM_IOC_BATTERY_BACK_CHK _IO(APM_IOC_MAGIC, 32) 25#define APM_IOC_BATTERY_BACK_CHK _IO(APM_IOC_MAGIC, 32)
33#endif 26#endif
34#ifndef APM_IOC_BATTERY_MAIN_CHK 27#ifndef APM_IOC_BATTERY_MAIN_CHK
35#define APM_IOC_BATTERY_MAIN_CHK _IO(APM_IOC_MAGIC, 33) 28#define APM_IOC_BATTERY_MAIN_CHK _IO(APM_IOC_MAGIC, 33)
36#endif 29#endif
37 30
38#include <unistd.h> 31#include <unistd.h>
39#include <stdio.h> 32#include <stdio.h>
40#include <signal.h> 33#include <signal.h>
41#include <fcntl.h> 34#include <fcntl.h>
42#include <sys/ioctl.h> 35#include <sys/ioctl.h>
43 36
44 37
45#include <sys/ioctl.h> 38#include <sys/ioctl.h>
46#include <asm/sharp_char.h> 39#include <asm/sharp_char.h>
47 40
48#define QPE_HAVE_MEMALERTER 41#define QPE_HAVE_MEMALERTER
49 42
50#define QPE_MEMALERTER_IMPL \ 43#define QPE_MEMALERTER_IMPL \
51static void sig_handler(int sig) \ 44static void sig_handler(int sig) \
52{ \ 45{ \
53 switch (sig) { \ 46 switch (sig) { \
54 case SIGHUP: \ 47 case SIGHUP: \
55 memstate = VeryLow; \ 48 memstate = VeryLow; \
56 break; \ 49 break; \
57 case SIGUSR1: \ 50 case SIGUSR1: \
58 memstate = Normal; \ 51 memstate = Normal; \
59 break; \ 52 break; \
60 case SIGUSR2: \ 53 case SIGUSR2: \
61 memstate = Low; \ 54 memstate = Low; \
62 break; \ 55 break; \
63 } \ 56 } \
64} \ 57} \
65static void initMemalerter() \ 58static void initMemalerter() \
66{ \ 59{ \
67 struct sigaction sa; \ 60 struct sigaction sa; \
68 memset(&sa, '\0', sizeof sa); \ 61 memset(&sa, '\0', sizeof sa); \
69 sa.sa_handler = sig_handler; \ 62 sa.sa_handler = sig_handler; \
70 sa.sa_flags = SA_RESTART; \ 63 sa.sa_flags = SA_RESTART; \
71 if (sigaction(SIGHUP, &sa, NULL) < 0) { \ 64 if (sigaction(SIGHUP, &sa, NULL) < 0) { \
72 return; \ 65 return; \
73 } \ 66 } \
74 if (sigaction(SIGUSR1, &sa, NULL) < 0) { \ 67 if (sigaction(SIGUSR1, &sa, NULL) < 0) { \
75 return; \ 68 return; \
76 } \ 69 } \
77 if (sigaction(SIGUSR2, &sa, NULL) < 0) { \ 70 if (sigaction(SIGUSR2, &sa, NULL) < 0) { \
78 return; \ 71 return; \
79 } \ 72 } \
80 FILE *fo = fopen("/proc/sys/vm/freepg_signal_proc", "w"); \ 73 FILE *fo = fopen("/proc/sys/vm/freepg_signal_proc", "w"); \
81 \ 74 \
82 if (!fo) \ 75 if (!fo) \
83 return; \ 76 return; \
84 fprintf(fo, "qpe\n"); \ 77 fprintf(fo, "qpe\n"); \
85 fclose(fo); \ 78 fclose(fo); \
86} 79}
87 80
88#define QPE_INITIAL_NUMLOCK_STATE \ 81#define QPE_INITIAL_NUMLOCK_STATE \
89{ \ 82{ \
90 bool numLock = FALSE; \ 83 bool numLock = FALSE; \
91 sharp_kbdctl_modifstat st; \ 84 sharp_kbdctl_modifstat st; \
92 int dev = ::open("/dev/sharp_kbdctl", O_RDWR); \ 85 int dev = ::open("/dev/sharp_kbdctl", O_RDWR); \
93 if( dev >= 0 ) { \ 86 if( dev >= 0 ) { \
94 memset(&st, 0, sizeof(st)); \ 87 memset(&st, 0, sizeof(st)); \
95 st.which = 3; \ 88 st.which = 3; \
96 int ret = ioctl(dev, SHARP_KBDCTL_GETMODIFSTAT, (char*)&st); \ 89 int ret = ioctl(dev, SHARP_KBDCTL_GETMODIFSTAT, (char*)&st); \
97 if( !ret ) \ 90 if( !ret ) \
98 numLock = (bool)st.stat; \ 91 numLock = (bool)st.stat; \
99 ::close(dev); \ 92 ::close(dev); \
100 } \ 93 } \
101 return numLock; \ 94 return numLock; \
102} 95}
diff --git a/library/custom-simpad.h b/library/custom-simpad.h
index c951296..327475f 100644
--- a/library/custom-simpad.h
+++ b/library/custom-simpad.h
@@ -1,9 +1,6 @@
1/* 1/*
2 * GPLv2 only zecke@handhelds.org 2 * GPLv2 only zecke@handhelds.org
3 hOlgAr 3 hOlgAr
4 */ 4 */
5 5
6 6
7#define QPE_NEED_CALIBRATION
8#define OPIE_NEW_MALLOC
9#define USE_REALTIME_AUDIO_THREAD
diff --git a/library/custom-yopy.h b/library/custom-yopy.h
index 510b05b..43d89bc 100755
--- a/library/custom-yopy.h
+++ b/library/custom-yopy.h
@@ -1,8 +1,6 @@
1/********************************************************************** 1/**********************************************************************
2** 2**
3** Customization for Yopy 3** Customization for Yopy
4** 4**
5**********************************************************************/ 5**********************************************************************/
6 6
7// Don't yet know how to calibrate from Opie
8// #define QPE_NEED_CALIBRATION