Tue, 30 Jun 2009 06:27:08 +0000Moved hardcoding of "/proc/apm" elsewhere.
Ryan C. Gordon <icculus@icculus.org> [Tue, 30 Jun 2009 06:27:08 +0000] rev 3207
Moved hardcoding of "/proc/apm" elsewhere.

Tue, 30 Jun 2009 06:26:02 +0000Linux /proc/apm: handle hex and decimal (and octal!) values.
Ryan C. Gordon <icculus@icculus.org> [Tue, 30 Jun 2009 06:26:02 +0000] rev 3206
Linux /proc/apm: handle hex and decimal (and octal!) values.

Tue, 30 Jun 2009 05:44:00 +0000Linux /proc/acpi: check for ac_adapter states, other cleanup.
Ryan C. Gordon <icculus@icculus.org> [Tue, 30 Jun 2009 05:44:00 +0000] rev 3205
Linux /proc/acpi: check for ac_adapter states, other cleanup.

Still not tested, though!

Tue, 30 Jun 2009 05:27:11 +0000Removed stub for Linux /sys/power processing.
Ryan C. Gordon <icculus@icculus.org> [Tue, 30 Jun 2009 05:27:11 +0000] rev 3204
Removed stub for Linux /sys/power processing.

Apparently /sys/power doesn't expose battery information at this time.

Tue, 30 Jun 2009 03:50:30 +0000Power: First shot at Linux /proc/acpi/battery support.
Ryan C. Gordon <icculus@icculus.org> [Tue, 30 Jun 2009 03:50:30 +0000] rev 3203
Power: First shot at Linux /proc/acpi/battery support.

Untested, not even tried to compile yet.

Mon, 29 Jun 2009 19:54:43 +0000I've made so many changes I don't dare continue until I check the current stuff in.
Bob Pendleton <bob@pendleton.com> [Mon, 29 Jun 2009 19:54:43 +0000] rev 3202
I've made so many changes I don't dare continue until I check the current stuff in.

/test/testatomic.c performs absolutely basic tests to show that the function work as expected. Need a second test to do more detailed tests.

/include/SDL_atomic.h provides declarations for all included functions.

/src/atomic/linux/SDL_atomic.c provided all the functions. On a generic built the 64 bit functions work, but they are emulated. On a build for -march=pentium and above the 64 bit functions use native instructions
/src/atomic/dummy/SDL_atomic.c emulates all the operations using SDL_mutex.h.
/src/atomic/win32/SDL_atomic.c is a copy of dummy
/src/atomic/macosx/SDL_atomic.s is a copy of dummy

These versions of SDL_atomic.c provide a frame work for building the library with a mixture of native and emulated functions. This allows the whole library to be provided on all platforms. (I hope.)
I hope this fits with the SDL philosophy of either providing a common subset or emulating when the platform is missing a feature.

I have not added dummy, macosx, or win32 to the build. They are there as place holders for future work.

I have modified congifure.in to compile sources in /src/atomic/linux. (The SDL configure.in file is an amazing piece of work and I hope I didn't mess it up. :-)

Wed, 24 Jun 2009 22:24:23 +0000Disabling 64 bit atomics operations until I figure out why they do not link.
Bob Pendleton <bob@pendleton.com> [Wed, 24 Jun 2009 22:24:23 +0000] rev 3201
Disabling 64 bit atomics operations until I figure out why they do not link.

Wed, 24 Jun 2009 20:20:57 +0000First draft of atomic operations code for GCC and linux.
Bob Pendleton <bob@pendleton.com> [Wed, 24 Jun 2009 20:20:57 +0000] rev 3200
First draft of atomic operations code for GCC and linux.

Wed, 24 Jun 2009 20:04:08 +0000This check in updates SDL_atomic.h to reflect the new set of atomic operations in 32 and 64 bit form.
Bob Pendleton <bob@pendleton.com> [Wed, 24 Jun 2009 20:04:08 +0000] rev 3199
This check in updates SDL_atomic.h to reflect the new set of atomic operations in 32 and 64 bit form.
It also update configure.in to compile the linux version of the library. The three versions are all dummies
implementations that do nothing. They are being checked in as place holders. Mostly, I just wanted to get
place holders and the configure.in checked in.

Wed, 17 Jun 2009 04:26:19 +0000Added power API and test program to Visual C++ project files.
Ryan C. Gordon <icculus@icculus.org> [Wed, 17 Jun 2009 04:26:19 +0000] rev 3198
Added power API and test program to Visual C++ project files.