├── .gitignore ├── Android.mk ├── CHANGES.TXT ├── COPYING ├── COPYING.LIB ├── Changelog ├── CleanSpec.mk ├── DECAF_shared ├── DECAF_callback.c ├── DECAF_callback.h ├── DECAF_callback_common.h ├── DECAF_callback_to_QEMU.h ├── DECAF_cmds.c ├── DECAF_cmds.h ├── DECAF_config.h ├── DECAF_info_cmds.h ├── DECAF_linux_vmi.c ├── DECAF_linux_vmi.h ├── DECAF_main.c ├── DECAF_main.h ├── DECAF_main_internal.h ├── DECAF_mon_cmds.h ├── DECAF_mon_cmds_defs.h ├── DECAF_processes.h ├── DECAF_types.h ├── DECAF_vm_compress.c ├── DECAF_vm_compress.h ├── DroidScope │ ├── DS_Common.h │ ├── DS_Init.c │ ├── DS_Init.h │ ├── DS_utils │ │ ├── RangeList.c │ │ ├── RangeList.h │ │ ├── SymbolMap.cpp │ │ ├── SymbolMap.h │ │ └── Taint.h │ ├── DalvikAPI.h │ ├── LinuxAPI.h │ ├── NDroid │ │ ├── ND_instrument.c │ │ ├── ND_instrument.h │ │ ├── ND_manager.c │ │ ├── ND_manager.h │ │ ├── darm │ │ │ ├── armv7-tbl.c │ │ │ ├── armv7-tbl.h │ │ │ ├── armv7.c │ │ │ ├── darm-internal.h │ │ │ ├── darm-tbl.c │ │ │ ├── darm-tbl.h │ │ │ ├── darm.c │ │ │ ├── darm.h │ │ │ ├── ndroid_darm_utils.c │ │ │ ├── ndroid_darm_utils.h │ │ │ ├── thumb-tbl.c │ │ │ ├── thumb-tbl.h │ │ │ ├── thumb.c │ │ │ ├── thumb2-decoder.c │ │ │ ├── thumb2-tbl.c │ │ │ ├── thumb2-tbl.h │ │ │ ├── thumb2.c │ │ │ └── thumb2.h │ │ ├── hook │ │ │ ├── SourcePolicy.cpp │ │ │ ├── SourcePolicy.h │ │ │ ├── dvm_hook.c │ │ │ ├── dvm_hook.h │ │ │ ├── dvm_offsets.h │ │ │ ├── jni_bridge │ │ │ │ ├── JNIAPIS_ADDRS.log │ │ │ │ ├── JNI_APIS_OFFSETS.h │ │ │ │ ├── array_operations.c │ │ │ │ ├── array_operations.h │ │ │ │ ├── exceptions.c │ │ │ │ ├── exceptions.h │ │ │ │ ├── generate.py │ │ │ │ ├── global_local_references.c │ │ │ │ ├── global_local_references.h │ │ │ │ ├── instance_field_access.c │ │ │ │ ├── instance_field_access.h │ │ │ │ ├── instance_method_calling.c │ │ │ │ ├── instance_method_calling.h │ │ │ │ ├── jni_api_hook.c │ │ │ │ ├── jni_api_hook.h │ │ │ │ ├── object_operations.c │ │ │ │ ├── object_operations.h │ │ │ │ ├── readme │ │ │ │ ├── static_field_access.c │ │ │ │ ├── static_field_access.h │ │ │ │ ├── static_method_calling.c │ │ │ │ ├── static_method_calling.h │ │ │ │ ├── string_operations.c │ │ │ │ └── string_operations.h │ │ │ ├── readme │ │ │ └── sys_libraries │ │ │ │ ├── generate.py │ │ │ │ ├── lib_c.c │ │ │ │ ├── lib_c.h │ │ │ │ ├── lib_c2.c │ │ │ │ ├── lib_m.c │ │ │ │ ├── lib_m.h │ │ │ │ ├── lib_m2.c │ │ │ │ ├── libc.dyn │ │ │ │ ├── libm.dyn │ │ │ │ ├── readme │ │ │ │ ├── sys_lib_hook.c │ │ │ │ └── sys_lib_hook.h │ │ ├── memProtect │ │ │ ├── mem_protection.c │ │ │ └── mem_protection.h │ │ ├── scripts │ │ │ ├── pullMemMaps.py │ │ │ ├── tmp │ │ │ └── tmp2 │ │ └── taint │ │ │ ├── TaintEngine.cpp │ │ │ └── TaintEngine.h │ ├── NativeAPI.h │ ├── dalvik │ │ ├── libdex │ │ │ ├── DexFile.h │ │ │ ├── DexProto.h │ │ │ ├── InstrUtils.c │ │ │ ├── InstrUtils.h │ │ │ ├── OpCode.h │ │ │ └── SysUtil.h │ │ └── vm │ │ │ ├── Common.h │ │ │ ├── DvmDex.h │ │ │ ├── interp │ │ │ └── InterpDefs.h │ │ │ └── oo │ │ │ ├── Array.h │ │ │ ├── Class.h │ │ │ └── Object.h │ ├── dalvikAPI │ │ ├── AndroidHelperFunctions.c │ │ ├── AndroidHelperFunctions.h │ │ ├── AndroidHelperFunctionsCPP.cpp │ │ ├── DalvikConstants.h │ │ ├── DalvikDisableJit.c │ │ ├── DalvikMterpOpcodes.c │ │ ├── DalvikOpcodeTable.h │ │ ├── DalvikPrinter.c │ │ └── DalvikPrinter.h │ └── linuxAPI │ │ ├── Context.c │ │ ├── ModuleInfo.h │ │ ├── ModuleServer.cpp │ │ ├── ModuleServer.h │ │ ├── NativeLibraryWhitelist.h │ │ ├── ProcessInfo.cpp │ │ ├── ProcessInfo.h │ │ ├── syscalltable_gingerbread.h │ │ └── syscalltable_linux_2_6.h ├── kernelinfo.conf └── utils │ ├── HashtableWrapper.cpp │ ├── HashtableWrapper.h │ ├── HelperFunctions.cpp │ ├── HelperFunctions.h │ ├── OutputWrapper.c │ ├── OutputWrapper.h │ ├── PreallocatedHistory.h │ ├── SimpleCallback.c │ ├── SimpleCallback.h │ ├── TULStringMapWrapper.cpp │ └── TULStringMapWrapper.h ├── INSTALL ├── LICENSE ├── MODULE_LICENSE_GPL ├── Makefile ├── Makefile.android ├── Makefile.common ├── Makefile.target ├── NOTICE ├── README ├── README.md ├── a.out.h ├── acl.c ├── acl.h ├── aes.c ├── aes.h ├── aio-android.c ├── aio.c ├── alpha.ld ├── android-configure.sh ├── android-rebuild.sh ├── android-trace.h ├── android-trace_common.h ├── android ├── adb-qemud.c ├── adb-qemud.h ├── adb-server.c ├── adb-server.h ├── android-device.c ├── android-device.h ├── android.h ├── async-console.c ├── async-console.h ├── async-io-common.h ├── async-socket-connector.c ├── async-socket-connector.h ├── async-socket.c ├── async-socket.h ├── async-utils.c ├── async-utils.h ├── audio-test.c ├── audio-test.h ├── avd │ ├── hardware-properties.ini │ ├── hw-config.c │ ├── hw-config.h │ ├── info.c │ ├── info.h │ ├── util.c │ └── util.h ├── boot-properties.c ├── boot-properties.h ├── build │ ├── binary.make │ ├── clear_vars.make │ ├── common.sh │ ├── definitions.make │ ├── getdir.make │ ├── host_executable.make │ ├── host_static_library.make │ └── mkdeps.sh ├── camera │ ├── camera-capture-linux.c │ ├── camera-capture-mac.m │ ├── camera-capture-windows.c │ ├── camera-capture.h │ ├── camera-common.h │ ├── camera-format-converters.c │ ├── camera-format-converters.h │ ├── camera-service.c │ ├── camera-service.h │ └── camera-win.h ├── charmap.c ├── charmap.h ├── cmdline-option.c ├── cmdline-option.h ├── cmdline-options.h ├── config.c ├── config.h ├── config │ ├── check-alsa.c │ ├── check-esd.c │ ├── check-pulseaudio.c │ ├── config.h │ ├── darwin-x86 │ │ ├── SDL_config.h │ │ └── config-host.h │ ├── freebsd-x86 │ │ ├── SDL_config.h │ │ └── config-host.h │ ├── linux-ppc │ │ ├── SDL_config.h │ │ └── config-host.h │ ├── linux-x86 │ │ ├── SDL_config.h │ │ ├── asm │ │ │ └── kvm.h │ │ ├── config-host.h │ │ └── linux │ │ │ └── kvm.h │ ├── linux-x86_64 │ │ ├── SDL_config.h │ │ ├── asm │ │ │ └── kvm.h │ │ └── linux │ │ │ └── kvm.h │ ├── target-arm │ │ └── config.h │ ├── target-x86 │ │ └── config.h │ └── windows │ │ ├── SDL_config.h │ │ └── config-host.h ├── console.c ├── core-init-utils.c ├── core-init-utils.h ├── display-core.c ├── display-core.h ├── display.c ├── display.h ├── framebuffer.c ├── framebuffer.h ├── globals.h ├── gps.c ├── gps.h ├── help.c ├── help.h ├── hw-control.c ├── hw-control.h ├── hw-events.c ├── hw-events.h ├── hw-kmsg.c ├── hw-kmsg.h ├── hw-lcd.c ├── hw-lcd.h ├── hw-pipe-net.c ├── hw-pipe-net.h ├── hw-qemud.c ├── hw-qemud.h ├── hw-sensors.c ├── hw-sensors.h ├── icons.h ├── keycode-array.c ├── keycode-array.h ├── keycode.c ├── keycode.h ├── looper-generic.c ├── looper-qemu.c ├── looper.h ├── main-common.c ├── main-common.h ├── main-emulator.c ├── main.c ├── multitouch-port.c ├── multitouch-port.h ├── multitouch-screen.c ├── multitouch-screen.h ├── opengles.c ├── opengles.h ├── protocol │ ├── attach-ui-impl.c │ ├── attach-ui-impl.h │ ├── attach-ui-proxy.c │ ├── attach-ui-proxy.h │ ├── core-commands-api.h │ ├── core-commands-impl.c │ ├── core-commands-impl.h │ ├── core-commands-proxy.c │ ├── core-commands-proxy.h │ ├── core-commands-qemu.c │ ├── core-commands.h │ ├── core-connection.c │ ├── core-connection.h │ ├── fb-updates-impl.c │ ├── fb-updates-impl.h │ ├── fb-updates-proxy.c │ ├── fb-updates-proxy.h │ ├── fb-updates.h │ ├── ui-commands-api.h │ ├── ui-commands-impl.c │ ├── ui-commands-impl.h │ ├── ui-commands-proxy.c │ ├── ui-commands-proxy.h │ ├── ui-commands-qemu.c │ ├── ui-commands.h │ ├── ui-common.h │ ├── user-events-impl.c │ ├── user-events-impl.h │ ├── user-events-protocol.h │ ├── user-events-proxy.c │ └── user-events-proxy.h ├── qemu-setup.c ├── qemulator.c ├── qemulator.h ├── resource.c ├── resource.h ├── sdk-controller-socket.c ├── sdk-controller-socket.h ├── sensors-port.c ├── sensors-port.h ├── skin │ ├── argb.h │ ├── composer.c │ ├── composer.h │ ├── default.h │ ├── file.c │ ├── file.h │ ├── image.c │ ├── image.h │ ├── keyboard.c │ ├── keyboard.h │ ├── keyset.c │ ├── keyset.h │ ├── rect.c │ ├── rect.h │ ├── region.c │ ├── region.h │ ├── scaler.c │ ├── scaler.h │ ├── surface.c │ ├── surface.h │ ├── trackball.c │ ├── trackball.h │ ├── window.c │ └── window.h ├── snaphost-android.c ├── snaphost-android.h ├── snapshot.c ├── snapshot.h ├── sync-utils.c ├── sync-utils.h ├── tools │ └── gen-hw-config.py ├── user-config.c ├── user-config.h └── utils │ ├── assert.c │ ├── assert.h │ ├── bufprint.c │ ├── bufprint.h │ ├── debug.c │ ├── debug.h │ ├── dirscanner.c │ ├── dirscanner.h │ ├── dll.c │ ├── dll.h │ ├── duff.h │ ├── filelock.c │ ├── filelock.h │ ├── ini.c │ ├── ini.h │ ├── intmap.c │ ├── intmap.h │ ├── jpeg-compress.c │ ├── jpeg-compress.h │ ├── lineinput.c │ ├── lineinput.h │ ├── list.h │ ├── mapfile.c │ ├── mapfile.h │ ├── misc.c │ ├── misc.h │ ├── panic.c │ ├── panic.h │ ├── path.c │ ├── path.h │ ├── reflist.c │ ├── reflist.h │ ├── refset.c │ ├── refset.h │ ├── setenv.c │ ├── stralloc.c │ ├── stralloc.h │ ├── system.c │ ├── system.h │ ├── tempfile.c │ ├── tempfile.h │ ├── timezone.c │ ├── timezone.h │ ├── vector.c │ └── vector.h ├── arch_init.c ├── arch_init.h ├── arm-dis.c ├── arm-semi.c ├── arm.ld ├── async.c ├── audio ├── alsaaudio.c ├── audio.c ├── audio.h ├── audio_int.h ├── audio_pt_int.c ├── audio_pt_int.h ├── audio_template.h ├── audio_win_int.c ├── audio_win_int.h ├── coreaudio.c ├── dsound_template.h ├── dsoundaudio.c ├── esdaudio.c ├── fmodaudio.c ├── mixeng.c ├── mixeng.h ├── mixeng_template.h ├── noaudio.c ├── ossaudio.c ├── paaudio.c ├── rate_template.h ├── wavaudio.c ├── wavcapture.c └── winaudio.c ├── balloon.h ├── block.c ├── block.h ├── block ├── bochs.c ├── cloop.c ├── cow.c ├── dmg.c ├── nbd.c ├── parallels.c ├── qcow.c ├── qcow2-cluster.c ├── qcow2-refcount.c ├── qcow2-snapshot.c ├── qcow2.c ├── qcow2.h ├── raw-posix-aio.h ├── raw-posix.c ├── raw-win32.c ├── raw.c ├── vmdk.c ├── vpc.c └── vvfat.c ├── block_int.h ├── blockdev.c ├── blockdev.h ├── bswap.h ├── bt-host.c ├── bt-host.h ├── bt-vhci.c ├── buffered_file.c ├── buffered_file.h ├── cache-utils.c ├── cache-utils.h ├── cbuffer.c ├── cbuffer.h ├── charpipe.c ├── charpipe.h ├── compatfd.c ├── compatfd.h ├── console.c ├── console.h ├── cpu-all.h ├── cpu-common.h ├── cpu-defs.h ├── cpu-exec.c ├── cpus.c ├── cpus.h ├── curses.c ├── curses_keys.h ├── cutils.c ├── d3des.c ├── d3des.h ├── def-helper.h ├── device_tree.c ├── device_tree.h ├── dis-asm.h ├── disas.c ├── disas.h ├── distrib ├── Makefile ├── README ├── build-emulator.sh ├── build-kernel.sh ├── jpeg-6b │ ├── Android.mk │ ├── CleanSpec.mk │ ├── MODULE_LICENSE_BSD_LIKE │ ├── NOTICE │ ├── README │ ├── ThirdPartyProject.prop │ ├── ansi2knr.1 │ ├── ansi2knr.c │ ├── armv6_idct.S │ ├── cderror.h │ ├── cdjpeg.c │ ├── cdjpeg.h │ ├── change.log │ ├── cjpeg.1 │ ├── cjpeg.c │ ├── ckconfig.c │ ├── coderules.doc │ ├── config.guess │ ├── config.sub │ ├── configure │ ├── djpeg.1 │ ├── djpeg.c │ ├── example.c │ ├── filelist.doc │ ├── install-sh │ ├── install.doc │ ├── jcapimin.c │ ├── jcapistd.c │ ├── jccoefct.c │ ├── jccolor.c │ ├── jcdctmgr.c │ ├── jchuff.c │ ├── jchuff.h │ ├── jcinit.c │ ├── jcmainct.c │ ├── jcmarker.c │ ├── jcmaster.c │ ├── jcomapi.c │ ├── jconfig.bcc │ ├── jconfig.cfg │ ├── jconfig.dj │ ├── jconfig.doc │ ├── jconfig.h │ ├── jconfig.mac │ ├── jconfig.manx │ ├── jconfig.mc6 │ ├── jconfig.sas │ ├── jconfig.st │ ├── jconfig.vc │ ├── jconfig.vms │ ├── jconfig.wat │ ├── jcparam.c │ ├── jcphuff.c │ ├── jcprepct.c │ ├── jcsample.c │ ├── jctrans.c │ ├── jdapimin.c │ ├── jdapistd.c │ ├── jdatadst.c │ ├── jdatasrc.c │ ├── jdcoefct.c │ ├── jdcolor.c │ ├── jdct.h │ ├── jddctmgr.c │ ├── jdhuff.c │ ├── jdhuff.h │ ├── jdinput.c │ ├── jdmainct.c │ ├── jdmarker.c │ ├── jdmaster.c │ ├── jdmerge.c │ ├── jdphuff.c │ ├── jdpostct.c │ ├── jdsample.c │ ├── jdtrans.c │ ├── jerror.c │ ├── jerror.h │ ├── jfdctflt.c │ ├── jfdctfst.c │ ├── jfdctint.c │ ├── jidctflt.c │ ├── jidctfst.c │ ├── jidctint.c │ ├── jidctred.c │ ├── jinclude.h │ ├── jmem-android.c │ ├── jmem-ashmem.c │ ├── jmemansi.c │ ├── jmemdos.c │ ├── jmemdosa.asm │ ├── jmemmac.c │ ├── jmemmgr.c │ ├── jmemname.c │ ├── jmemnobs.c │ ├── jmemsys.h │ ├── jmorecfg.h │ ├── jpegint.h │ ├── jpeglib.h │ ├── jpegtran.1 │ ├── jpegtran.c │ ├── jquant1.c │ ├── jquant2.c │ ├── jutils.c │ ├── jversion.h │ ├── libjpeg.doc │ ├── ltconfig │ ├── ltmain.sh │ ├── makcjpeg.st │ ├── makdjpeg.st │ ├── makeapps.ds │ ├── makefile.ansi │ ├── makefile.bcc │ ├── makefile.cfg │ ├── makefile.dj │ ├── makefile.manx │ ├── makefile.mc6 │ ├── makefile.mms │ ├── makefile.sas │ ├── makefile.unix │ ├── makefile.vc │ ├── makefile.vms │ ├── makefile.wat │ ├── makelib.ds │ ├── makeproj.mac │ ├── makljpeg.st │ ├── maktjpeg.st │ ├── makvms.opt │ ├── rdbmp.c │ ├── rdcolmap.c │ ├── rdgif.c │ ├── rdjpgcom.1 │ ├── rdjpgcom.c │ ├── rdppm.c │ ├── rdrle.c │ ├── rdswitch.c │ ├── rdtarga.c │ ├── sources.make │ ├── structure.doc │ ├── testimg.bmp │ ├── testimg.jpg │ ├── testimg.ppm │ ├── testimgp.jpg │ ├── testorig.jpg │ ├── testprog.jpg │ ├── transupp.c │ ├── transupp.h │ ├── usage.doc │ ├── wizard.doc │ ├── wrbmp.c │ ├── wrgif.c │ ├── wrjpgcom.1 │ ├── wrjpgcom.c │ ├── wrppm.c │ ├── wrrle.c │ └── wrtarga.c ├── kernel-toolchain │ ├── android-kernel-toolchain-ar │ ├── android-kernel-toolchain-as │ ├── android-kernel-toolchain-gcc │ ├── android-kernel-toolchain-ld │ ├── android-kernel-toolchain-nm │ ├── android-kernel-toolchain-objcopy │ ├── android-kernel-toolchain-objdump │ ├── android-kernel-toolchain-ranlib │ ├── android-kernel-toolchain-strip │ └── toolbox.sh ├── libpng-1.2.19 │ ├── Makefile │ ├── png.c │ ├── png.h │ ├── pngconf.h │ ├── pngerror.c │ ├── pnggccrd.c │ ├── pngget.c │ ├── pngmem.c │ ├── pngpread.c │ ├── pngread.c │ ├── pngrio.c │ ├── pngrtran.c │ ├── pngrutil.c │ ├── pngset.c │ ├── pngtrans.c │ ├── pngvcrd.c │ ├── pngwio.c │ ├── pngwrite.c │ ├── pngwtran.c │ ├── pngwutil.c │ └── sources.make ├── make-distrib.sh ├── sdl-1.2.12 │ ├── BUGS │ ├── COPYING │ ├── CREDITS │ ├── Makefile │ ├── Makefile.android │ ├── README │ ├── README.ANDROID │ ├── android-configure.sh │ ├── include │ │ ├── SDL.h │ │ ├── SDL_active.h │ │ ├── SDL_audio.h │ │ ├── SDL_byteorder.h │ │ ├── SDL_cdrom.h │ │ ├── SDL_config.h.default │ │ ├── SDL_config.h.in │ │ ├── SDL_config_amiga.h │ │ ├── SDL_config_dreamcast.h │ │ ├── SDL_config_macos.h │ │ ├── SDL_config_macosx.h │ │ ├── SDL_config_minimal.h │ │ ├── SDL_config_os2.h │ │ ├── SDL_config_win32.h │ │ ├── SDL_copying.h │ │ ├── SDL_cpuinfo.h │ │ ├── SDL_endian.h │ │ ├── SDL_error.h │ │ ├── SDL_events.h │ │ ├── SDL_getenv.h │ │ ├── SDL_joystick.h │ │ ├── SDL_keyboard.h │ │ ├── SDL_keysym.h │ │ ├── SDL_loadso.h │ │ ├── SDL_main.h │ │ ├── SDL_mouse.h │ │ ├── SDL_mutex.h │ │ ├── SDL_name.h │ │ ├── SDL_opengl.h │ │ ├── SDL_platform.h │ │ ├── SDL_quit.h │ │ ├── SDL_rwops.h │ │ ├── SDL_stdinc.h │ │ ├── SDL_syswm.h │ │ ├── SDL_thread.h │ │ ├── SDL_timer.h │ │ ├── SDL_types.h │ │ ├── SDL_version.h │ │ ├── SDL_video.h │ │ ├── begin_code.h │ │ └── close_code.h │ ├── sdl-config.in │ ├── sources.make │ └── src │ │ ├── SDL.c │ │ ├── SDL_error.c │ │ ├── SDL_error_c.h │ │ ├── SDL_fatal.c │ │ ├── SDL_fatal.h │ │ ├── audio │ │ ├── SDL_audio.c │ │ ├── SDL_audio_c.h │ │ ├── SDL_audiocvt.c │ │ ├── SDL_audiodev.c │ │ ├── SDL_audiodev_c.h │ │ ├── SDL_audiomem.h │ │ ├── SDL_mixer.c │ │ ├── SDL_mixer_MMX.c │ │ ├── SDL_mixer_MMX.h │ │ ├── SDL_mixer_MMX_VC.c │ │ ├── SDL_mixer_MMX_VC.h │ │ ├── SDL_mixer_m68k.c │ │ ├── SDL_mixer_m68k.h │ │ ├── SDL_sysaudio.h │ │ ├── SDL_wave.c │ │ ├── SDL_wave.h │ │ ├── alsa │ │ │ ├── SDL_alsa_audio.c │ │ │ └── SDL_alsa_audio.h │ │ ├── amigaos │ │ │ ├── SDL_ahiaudio.c │ │ │ └── SDL_ahiaudio.h │ │ ├── arts │ │ │ ├── SDL_artsaudio.c │ │ │ └── SDL_artsaudio.h │ │ ├── baudio │ │ │ ├── SDL_beaudio.cc │ │ │ └── SDL_beaudio.h │ │ ├── bsd │ │ │ ├── SDL_bsdaudio.c │ │ │ └── SDL_bsdaudio.h │ │ ├── dart │ │ │ ├── SDL_dart.c │ │ │ └── SDL_dart.h │ │ ├── dc │ │ │ ├── SDL_dcaudio.c │ │ │ ├── SDL_dcaudio.h │ │ │ ├── aica.c │ │ │ └── aica.h │ │ ├── disk │ │ │ ├── SDL_diskaudio.c │ │ │ └── SDL_diskaudio.h │ │ ├── dma │ │ │ ├── SDL_dmaaudio.c │ │ │ └── SDL_dmaaudio.h │ │ ├── dmedia │ │ │ ├── SDL_irixaudio.c │ │ │ └── SDL_irixaudio.h │ │ ├── dsp │ │ │ ├── SDL_dspaudio.c │ │ │ └── SDL_dspaudio.h │ │ ├── dummy │ │ │ ├── SDL_dummyaudio.c │ │ │ └── SDL_dummyaudio.h │ │ ├── esd │ │ │ ├── SDL_esdaudio.c │ │ │ └── SDL_esdaudio.h │ │ ├── macosx │ │ │ ├── SDL_coreaudio.c │ │ │ └── SDL_coreaudio.h │ │ ├── macrom │ │ │ ├── SDL_romaudio.c │ │ │ └── SDL_romaudio.h │ │ ├── mint │ │ │ ├── SDL_mintaudio.c │ │ │ ├── SDL_mintaudio.h │ │ │ ├── SDL_mintaudio_dma8.c │ │ │ ├── SDL_mintaudio_dma8.h │ │ │ ├── SDL_mintaudio_gsxb.c │ │ │ ├── SDL_mintaudio_gsxb.h │ │ │ ├── SDL_mintaudio_it.S │ │ │ ├── SDL_mintaudio_mcsn.c │ │ │ ├── SDL_mintaudio_mcsn.h │ │ │ ├── SDL_mintaudio_stfa.c │ │ │ ├── SDL_mintaudio_stfa.h │ │ │ └── SDL_mintaudio_xbios.c │ │ ├── mme │ │ │ ├── SDL_mmeaudio.c │ │ │ └── SDL_mmeaudio.h │ │ ├── nas │ │ │ ├── SDL_nasaudio.c │ │ │ └── SDL_nasaudio.h │ │ ├── nto │ │ │ ├── SDL_nto_audio.c │ │ │ └── SDL_nto_audio.h │ │ ├── paudio │ │ │ ├── SDL_paudio.c │ │ │ └── SDL_paudio.h │ │ ├── sun │ │ │ ├── SDL_sunaudio.c │ │ │ └── SDL_sunaudio.h │ │ ├── ums │ │ │ ├── SDL_umsaudio.c │ │ │ └── SDL_umsaudio.h │ │ ├── windib │ │ │ ├── SDL_dibaudio.c │ │ │ └── SDL_dibaudio.h │ │ └── windx5 │ │ │ ├── SDL_dx5audio.c │ │ │ ├── SDL_dx5audio.h │ │ │ └── directx.h │ │ ├── cdrom │ │ ├── SDL_cdrom.c │ │ ├── SDL_syscdrom.h │ │ ├── aix │ │ │ └── SDL_syscdrom.c │ │ ├── beos │ │ │ └── SDL_syscdrom.cc │ │ ├── bsdi │ │ │ └── SDL_syscdrom.c │ │ ├── dc │ │ │ └── SDL_syscdrom.c │ │ ├── dummy │ │ │ └── SDL_syscdrom.c │ │ ├── freebsd │ │ │ └── SDL_syscdrom.c │ │ ├── linux │ │ │ └── SDL_syscdrom.c │ │ ├── macos │ │ │ ├── SDL_syscdrom.c │ │ │ └── SDL_syscdrom_c.h │ │ ├── macosx │ │ │ ├── AudioFilePlayer.c │ │ │ ├── AudioFilePlayer.h │ │ │ ├── AudioFileReaderThread.c │ │ │ ├── CDPlayer.c │ │ │ ├── CDPlayer.h │ │ │ ├── SDLOSXCAGuard.c │ │ │ ├── SDLOSXCAGuard.h │ │ │ ├── SDL_syscdrom.c │ │ │ └── SDL_syscdrom_c.h │ │ ├── mint │ │ │ └── SDL_syscdrom.c │ │ ├── openbsd │ │ │ └── SDL_syscdrom.c │ │ ├── os2 │ │ │ └── SDL_syscdrom.c │ │ ├── osf │ │ │ └── SDL_syscdrom.c │ │ ├── qnx │ │ │ └── SDL_syscdrom.c │ │ └── win32 │ │ │ └── SDL_syscdrom.c │ │ ├── cpuinfo │ │ └── SDL_cpuinfo.c │ │ ├── events │ │ ├── SDL_active.c │ │ ├── SDL_events.c │ │ ├── SDL_events_c.h │ │ ├── SDL_expose.c │ │ ├── SDL_keyboard.c │ │ ├── SDL_mouse.c │ │ ├── SDL_quit.c │ │ ├── SDL_resize.c │ │ └── SDL_sysevents.h │ │ ├── file │ │ └── SDL_rwops.c │ │ ├── hermes │ │ ├── COPYING.LIB │ │ ├── HeadMMX.h │ │ ├── HeadX86.h │ │ ├── README │ │ ├── common.inc │ │ ├── mmx_main.asm │ │ ├── mmxp2_32.asm │ │ ├── x86_main.asm │ │ ├── x86p_16.asm │ │ └── x86p_32.asm │ │ ├── joystick │ │ ├── SDL_joystick.c │ │ ├── SDL_joystick_c.h │ │ ├── SDL_sysjoystick.h │ │ ├── amigaos │ │ │ └── SDL_sysjoystick.c │ │ ├── beos │ │ │ └── SDL_bejoystick.cc │ │ ├── bsd │ │ │ └── SDL_sysjoystick.c │ │ ├── darwin │ │ │ └── SDL_sysjoystick.c │ │ ├── dc │ │ │ └── SDL_sysjoystick.c │ │ ├── dummy │ │ │ └── SDL_sysjoystick.c │ │ ├── linux │ │ │ └── SDL_sysjoystick.c │ │ ├── macos │ │ │ └── SDL_sysjoystick.c │ │ ├── mint │ │ │ └── SDL_sysjoystick.c │ │ ├── os2 │ │ │ ├── SDL_sysjoystick.c │ │ │ └── joyos2.h │ │ ├── riscos │ │ │ └── SDL_sysjoystick.c │ │ └── win32 │ │ │ └── SDL_mmjoystick.c │ │ ├── loadso │ │ ├── beos │ │ │ └── SDL_sysloadso.c │ │ ├── dlopen │ │ │ └── SDL_sysloadso.c │ │ ├── dummy │ │ │ └── SDL_sysloadso.c │ │ ├── macos │ │ │ └── SDL_sysloadso.c │ │ ├── macosx │ │ │ └── SDL_dlcompat.c │ │ ├── mint │ │ │ └── SDL_sysloadso.c │ │ ├── os2 │ │ │ └── SDL_sysloadso.c │ │ └── win32 │ │ │ └── SDL_sysloadso.c │ │ ├── main │ │ ├── beos │ │ │ ├── SDL_BeApp.cc │ │ │ └── SDL_BeApp.h │ │ ├── dummy │ │ │ └── SDL_dummy_main.c │ │ ├── epoc │ │ │ └── SDL_main.cpp │ │ ├── macos │ │ │ ├── SDL.r │ │ │ ├── SDL_main.c │ │ │ ├── SIZE.r │ │ │ └── exports │ │ │ │ ├── Makefile │ │ │ │ ├── SDL.x │ │ │ │ └── gendef.pl │ │ ├── macosx │ │ │ ├── Info.plist.in │ │ │ ├── SDLMain.h │ │ │ ├── SDLMain.m │ │ │ ├── SDLMain.nib │ │ │ │ ├── classes.nib │ │ │ │ ├── info.nib │ │ │ │ └── objects.nib │ │ │ └── info.nib │ │ ├── qtopia │ │ │ └── SDL_qtopia_main.cc │ │ └── win32 │ │ │ ├── SDL_win32_main.c │ │ │ └── version.rc │ │ ├── stdlib │ │ ├── SDL_getenv.c │ │ ├── SDL_iconv.c │ │ ├── SDL_malloc.c │ │ ├── SDL_qsort.c │ │ ├── SDL_stdlib.c │ │ └── SDL_string.c │ │ ├── thread │ │ ├── SDL_systhread.h │ │ ├── SDL_thread.c │ │ ├── SDL_thread_c.h │ │ ├── amigaos │ │ │ ├── SDL_syssem.c │ │ │ ├── SDL_systhread.c │ │ │ ├── SDL_systhread_c.h │ │ │ └── SDL_thread.c │ │ ├── beos │ │ │ ├── SDL_syssem.c │ │ │ ├── SDL_systhread.c │ │ │ └── SDL_systhread_c.h │ │ ├── dc │ │ │ ├── SDL_syscond.c │ │ │ ├── SDL_syscond_c.h │ │ │ ├── SDL_sysmutex.c │ │ │ ├── SDL_sysmutex_c.h │ │ │ ├── SDL_syssem.c │ │ │ ├── SDL_syssem_c.h │ │ │ ├── SDL_systhread.c │ │ │ └── SDL_systhread_c.h │ │ ├── epoc │ │ │ ├── SDL_sysmutex.cpp │ │ │ ├── SDL_syssem.cpp │ │ │ ├── SDL_systhread.cpp │ │ │ └── SDL_systhread_c.h │ │ ├── generic │ │ │ ├── SDL_syscond.c │ │ │ ├── SDL_sysmutex.c │ │ │ ├── SDL_sysmutex_c.h │ │ │ ├── SDL_syssem.c │ │ │ ├── SDL_systhread.c │ │ │ └── SDL_systhread_c.h │ │ ├── irix │ │ │ ├── SDL_syssem.c │ │ │ ├── SDL_systhread.c │ │ │ └── SDL_systhread_c.h │ │ ├── os2 │ │ │ ├── SDL_syscond.c │ │ │ ├── SDL_syscond_c.h │ │ │ ├── SDL_sysmutex.c │ │ │ ├── SDL_syssem.c │ │ │ ├── SDL_systhread.c │ │ │ └── SDL_systhread_c.h │ │ ├── pth │ │ │ ├── SDL_syscond.c │ │ │ ├── SDL_sysmutex.c │ │ │ ├── SDL_sysmutex_c.h │ │ │ ├── SDL_systhread.c │ │ │ └── SDL_systhread_c.h │ │ ├── pthread │ │ │ ├── SDL_syscond.c │ │ │ ├── SDL_sysmutex.c │ │ │ ├── SDL_sysmutex_c.h │ │ │ ├── SDL_syssem.c │ │ │ ├── SDL_systhread.c │ │ │ └── SDL_systhread_c.h │ │ ├── riscos │ │ │ ├── SDL_syscond.c │ │ │ ├── SDL_sysmutex.c │ │ │ ├── SDL_sysmutex_c.h │ │ │ ├── SDL_syssem.c │ │ │ ├── SDL_systhread.c │ │ │ └── SDL_systhread_c.h │ │ └── win32 │ │ │ ├── SDL_sysmutex.c │ │ │ ├── SDL_syssem.c │ │ │ ├── SDL_systhread.c │ │ │ ├── SDL_systhread_c.h │ │ │ ├── win_ce_semaphore.c │ │ │ └── win_ce_semaphore.h │ │ ├── timer │ │ ├── SDL_systimer.h │ │ ├── SDL_timer.c │ │ ├── SDL_timer_c.h │ │ ├── amigaos │ │ │ └── SDL_systimer.c │ │ ├── beos │ │ │ └── SDL_systimer.c │ │ ├── dc │ │ │ └── SDL_systimer.c │ │ ├── dummy │ │ │ └── SDL_systimer.c │ │ ├── epoc │ │ │ └── SDL_systimer.cpp │ │ ├── macos │ │ │ ├── FastTimes.c │ │ │ ├── FastTimes.h │ │ │ ├── SDL_MPWtimer.c │ │ │ └── SDL_systimer.c │ │ ├── mint │ │ │ ├── SDL_systimer.c │ │ │ ├── SDL_vbltimer.S │ │ │ └── SDL_vbltimer_s.h │ │ ├── os2 │ │ │ └── SDL_systimer.c │ │ ├── riscos │ │ │ └── SDL_systimer.c │ │ ├── unix │ │ │ └── SDL_systimer.c │ │ ├── win32 │ │ │ └── SDL_systimer.c │ │ └── wince │ │ │ └── SDL_systimer.c │ │ └── video │ │ ├── SDL_RLEaccel.c │ │ ├── SDL_RLEaccel_c.h │ │ ├── SDL_blit.c │ │ ├── SDL_blit.h │ │ ├── SDL_blit_0.c │ │ ├── SDL_blit_1.c │ │ ├── SDL_blit_A.c │ │ ├── SDL_blit_N.c │ │ ├── SDL_bmp.c │ │ ├── SDL_cursor.c │ │ ├── SDL_cursor_c.h │ │ ├── SDL_gamma.c │ │ ├── SDL_glfuncs.h │ │ ├── SDL_leaks.h │ │ ├── SDL_pixels.c │ │ ├── SDL_pixels_c.h │ │ ├── SDL_stretch.c │ │ ├── SDL_stretch_c.h │ │ ├── SDL_surface.c │ │ ├── SDL_sysvideo.h │ │ ├── SDL_video.c │ │ ├── SDL_yuv.c │ │ ├── SDL_yuv_mmx.c │ │ ├── SDL_yuv_sw.c │ │ ├── SDL_yuv_sw_c.h │ │ ├── SDL_yuvfuncs.h │ │ ├── Xext │ │ ├── README │ │ ├── XME │ │ │ └── xme.c │ │ ├── Xinerama │ │ │ └── Xinerama.c │ │ ├── Xv │ │ │ ├── Xv.c │ │ │ └── Xvlibint.h │ │ ├── Xxf86dga │ │ │ ├── XF86DGA.c │ │ │ └── XF86DGA2.c │ │ ├── Xxf86vm │ │ │ └── XF86VMode.c │ │ └── extensions │ │ │ ├── Xext.h │ │ │ ├── Xinerama.h │ │ │ ├── Xv.h │ │ │ ├── Xvlib.h │ │ │ ├── Xvproto.h │ │ │ ├── extutil.h │ │ │ ├── panoramiXext.h │ │ │ ├── panoramiXproto.h │ │ │ ├── xf86dga.h │ │ │ ├── xf86dga1.h │ │ │ ├── xf86dga1str.h │ │ │ ├── xf86dgastr.h │ │ │ ├── xf86vmode.h │ │ │ ├── xf86vmstr.h │ │ │ └── xme.h │ │ ├── aalib │ │ ├── SDL_aaevents.c │ │ ├── SDL_aaevents_c.h │ │ ├── SDL_aamouse.c │ │ ├── SDL_aamouse_c.h │ │ ├── SDL_aavideo.c │ │ └── SDL_aavideo.h │ │ ├── ataricommon │ │ ├── SDL_ataric2p.S │ │ ├── SDL_ataric2p_s.h │ │ ├── SDL_ataridevmouse.c │ │ ├── SDL_ataridevmouse_c.h │ │ ├── SDL_atarieddi.S │ │ ├── SDL_atarieddi_s.h │ │ ├── SDL_atarievents.c │ │ ├── SDL_atarievents_c.h │ │ ├── SDL_atarigl.c │ │ ├── SDL_atarigl_c.h │ │ ├── SDL_atarikeys.h │ │ ├── SDL_atarimxalloc.c │ │ ├── SDL_atarimxalloc_c.h │ │ ├── SDL_biosevents.c │ │ ├── SDL_biosevents_c.h │ │ ├── SDL_gemdosevents.c │ │ ├── SDL_gemdosevents_c.h │ │ ├── SDL_ikbdevents.c │ │ ├── SDL_ikbdevents_c.h │ │ ├── SDL_ikbdinterrupt.S │ │ ├── SDL_ikbdinterrupt_s.h │ │ ├── SDL_xbiosevents.c │ │ ├── SDL_xbiosevents_c.h │ │ ├── SDL_xbiosinterrupt.S │ │ └── SDL_xbiosinterrupt_s.h │ │ ├── blank_cursor.h │ │ ├── bwindow │ │ ├── SDL_BView.h │ │ ├── SDL_BWin.h │ │ ├── SDL_lowvideo.h │ │ ├── SDL_sysevents.cc │ │ ├── SDL_sysevents_c.h │ │ ├── SDL_sysmouse.cc │ │ ├── SDL_sysmouse_c.h │ │ ├── SDL_sysvideo.cc │ │ ├── SDL_syswm.cc │ │ ├── SDL_syswm_c.h │ │ ├── SDL_sysyuv.cc │ │ └── SDL_sysyuv.h │ │ ├── cybergfx │ │ ├── SDL_amigaevents.c │ │ ├── SDL_amigaevents_c.h │ │ ├── SDL_amigamouse.c │ │ ├── SDL_amigamouse_c.h │ │ ├── SDL_cgxaccel.c │ │ ├── SDL_cgxgl.c │ │ ├── SDL_cgxgl_c.h │ │ ├── SDL_cgximage.c │ │ ├── SDL_cgximage_c.h │ │ ├── SDL_cgxmodes.c │ │ ├── SDL_cgxmodes_c.h │ │ ├── SDL_cgxvideo.c │ │ ├── SDL_cgxvideo.h │ │ ├── SDL_cgxwm.c │ │ └── SDL_cgxwm_c.h │ │ ├── dc │ │ ├── SDL_dcevents.c │ │ ├── SDL_dcevents_c.h │ │ ├── SDL_dcmouse.c │ │ ├── SDL_dcmouse_c.h │ │ ├── SDL_dcvideo.c │ │ └── SDL_dcvideo.h │ │ ├── default_cursor.h │ │ ├── dga │ │ ├── SDL_dgaevents.c │ │ ├── SDL_dgaevents_c.h │ │ ├── SDL_dgamouse.c │ │ ├── SDL_dgamouse_c.h │ │ ├── SDL_dgavideo.c │ │ └── SDL_dgavideo.h │ │ ├── directfb │ │ ├── SDL_DirectFB_events.c │ │ ├── SDL_DirectFB_events.h │ │ ├── SDL_DirectFB_keys.h │ │ ├── SDL_DirectFB_video.c │ │ ├── SDL_DirectFB_video.h │ │ ├── SDL_DirectFB_yuv.c │ │ └── SDL_DirectFB_yuv.h │ │ ├── dummy │ │ ├── SDL_nullevents.c │ │ ├── SDL_nullevents_c.h │ │ ├── SDL_nullmouse.c │ │ ├── SDL_nullmouse_c.h │ │ ├── SDL_nullvideo.c │ │ └── SDL_nullvideo.h │ │ ├── e_log.h │ │ ├── e_pow.h │ │ ├── e_sqrt.h │ │ ├── epoc │ │ ├── SDL_epocevents.cpp │ │ ├── SDL_epocevents_c.h │ │ ├── SDL_epocvideo.cpp │ │ └── SDL_epocvideo.h │ │ ├── fbcon │ │ ├── 3dfx_mmio.h │ │ ├── 3dfx_regs.h │ │ ├── SDL_fb3dfx.c │ │ ├── SDL_fb3dfx.h │ │ ├── SDL_fbelo.c │ │ ├── SDL_fbelo.h │ │ ├── SDL_fbevents.c │ │ ├── SDL_fbevents_c.h │ │ ├── SDL_fbkeys.h │ │ ├── SDL_fbmatrox.c │ │ ├── SDL_fbmatrox.h │ │ ├── SDL_fbmouse.c │ │ ├── SDL_fbmouse_c.h │ │ ├── SDL_fbriva.c │ │ ├── SDL_fbriva.h │ │ ├── SDL_fbvideo.c │ │ ├── SDL_fbvideo.h │ │ ├── matrox_mmio.h │ │ ├── matrox_regs.h │ │ ├── out │ │ ├── riva_mmio.h │ │ └── riva_regs.h │ │ ├── gapi │ │ ├── SDL_gapivideo.c │ │ └── SDL_gapivideo.h │ │ ├── gem │ │ ├── SDL_gemevents.c │ │ ├── SDL_gemevents_c.h │ │ ├── SDL_gemmouse.c │ │ ├── SDL_gemmouse_c.h │ │ ├── SDL_gemvideo.c │ │ ├── SDL_gemvideo.h │ │ ├── SDL_gemwm.c │ │ └── SDL_gemwm_c.h │ │ ├── ggi │ │ ├── SDL_ggievents.c │ │ ├── SDL_ggievents_c.h │ │ ├── SDL_ggikeys.h │ │ ├── SDL_ggimouse.c │ │ ├── SDL_ggimouse_c.h │ │ ├── SDL_ggivideo.c │ │ └── SDL_ggivideo.h │ │ ├── ipod │ │ ├── SDL_ipodvideo.c │ │ └── SDL_ipodvideo.h │ │ ├── maccommon │ │ ├── SDL_lowvideo.h │ │ ├── SDL_macevents.c │ │ ├── SDL_macevents_c.h │ │ ├── SDL_macgl.c │ │ ├── SDL_macgl_c.h │ │ ├── SDL_mackeys.h │ │ ├── SDL_macmouse.c │ │ ├── SDL_macmouse_c.h │ │ ├── SDL_macwm.c │ │ └── SDL_macwm_c.h │ │ ├── macdsp │ │ ├── SDL_dspvideo.c │ │ └── SDL_dspvideo.h │ │ ├── macrom │ │ ├── SDL_romvideo.c │ │ └── SDL_romvideo.h │ │ ├── math_private.h │ │ ├── mmx.h │ │ ├── nanox │ │ ├── SDL_nxevents.c │ │ ├── SDL_nxevents_c.h │ │ ├── SDL_nximage.c │ │ ├── SDL_nximage_c.h │ │ ├── SDL_nxmodes.c │ │ ├── SDL_nxmodes_c.h │ │ ├── SDL_nxmouse.c │ │ ├── SDL_nxmouse_c.h │ │ ├── SDL_nxvideo.c │ │ ├── SDL_nxvideo.h │ │ ├── SDL_nxwm.c │ │ └── SDL_nxwm_c.h │ │ ├── os2fslib │ │ ├── SDL_os2fslib.c │ │ ├── SDL_os2fslib.h │ │ └── SDL_vkeys.h │ │ ├── photon │ │ ├── SDL_ph_events.c │ │ ├── SDL_ph_events_c.h │ │ ├── SDL_ph_gl.c │ │ ├── SDL_ph_gl.h │ │ ├── SDL_ph_image.c │ │ ├── SDL_ph_image_c.h │ │ ├── SDL_ph_modes.c │ │ ├── SDL_ph_modes_c.h │ │ ├── SDL_ph_mouse.c │ │ ├── SDL_ph_mouse_c.h │ │ ├── SDL_ph_video.c │ │ ├── SDL_ph_video.h │ │ ├── SDL_ph_wm.c │ │ ├── SDL_ph_wm_c.h │ │ ├── SDL_phyuv.c │ │ └── SDL_phyuv_c.h │ │ ├── picogui │ │ ├── SDL_pgevents.c │ │ ├── SDL_pgevents_c.h │ │ ├── SDL_pgvideo.c │ │ └── SDL_pgvideo.h │ │ ├── ps2gs │ │ ├── SDL_gsevents.c │ │ ├── SDL_gsevents_c.h │ │ ├── SDL_gskeys.h │ │ ├── SDL_gsmouse.c │ │ ├── SDL_gsmouse_c.h │ │ ├── SDL_gsvideo.c │ │ ├── SDL_gsvideo.h │ │ ├── SDL_gsyuv.c │ │ └── SDL_gsyuv_c.h │ │ ├── qtopia │ │ ├── SDL_QPEApp.cc │ │ ├── SDL_QPEApp.h │ │ ├── SDL_QWin.cc │ │ ├── SDL_QWin.h │ │ ├── SDL_lowvideo.h │ │ ├── SDL_sysevents.cc │ │ ├── SDL_sysevents_c.h │ │ ├── SDL_sysmouse.cc │ │ ├── SDL_sysmouse_c.h │ │ ├── SDL_sysvideo.cc │ │ ├── SDL_syswm.cc │ │ └── SDL_syswm_c.h │ │ ├── quartz │ │ ├── CGS.h │ │ ├── SDL_QuartzEvents.m │ │ ├── SDL_QuartzGL.m │ │ ├── SDL_QuartzKeys.h │ │ ├── SDL_QuartzVideo.h │ │ ├── SDL_QuartzVideo.m │ │ ├── SDL_QuartzWM.h │ │ ├── SDL_QuartzWM.m │ │ ├── SDL_QuartzWindow.h │ │ ├── SDL_QuartzWindow.m │ │ └── SDL_QuartzYUV.m │ │ ├── riscos │ │ ├── SDL_riscosASM.S │ │ ├── SDL_riscosFullScreenVideo.c │ │ ├── SDL_riscosevents.c │ │ ├── SDL_riscosevents_c.h │ │ ├── SDL_riscosmouse.c │ │ ├── SDL_riscosmouse_c.h │ │ ├── SDL_riscossprite.c │ │ ├── SDL_riscostask.c │ │ ├── SDL_riscostask.h │ │ ├── SDL_riscosvideo.c │ │ ├── SDL_riscosvideo.h │ │ ├── SDL_wimppoll.c │ │ └── SDL_wimpvideo.c │ │ ├── svga │ │ ├── SDL_svgaevents.c │ │ ├── SDL_svgaevents_c.h │ │ ├── SDL_svgamouse.c │ │ ├── SDL_svgamouse_c.h │ │ ├── SDL_svgavideo.c │ │ └── SDL_svgavideo.h │ │ ├── vgl │ │ ├── SDL_vglevents.c │ │ ├── SDL_vglevents_c.h │ │ ├── SDL_vglmouse.c │ │ ├── SDL_vglmouse_c.h │ │ ├── SDL_vglvideo.c │ │ └── SDL_vglvideo.h │ │ ├── wincommon │ │ ├── SDL_lowvideo.h │ │ ├── SDL_sysevents.c │ │ ├── SDL_sysmouse.c │ │ ├── SDL_sysmouse_c.h │ │ ├── SDL_syswm.c │ │ ├── SDL_syswm_c.h │ │ ├── SDL_wingl.c │ │ ├── SDL_wingl_c.h │ │ └── wmmsg.h │ │ ├── windib │ │ ├── SDL_dibevents.c │ │ ├── SDL_dibevents_c.h │ │ ├── SDL_dibvideo.c │ │ ├── SDL_dibvideo.h │ │ └── SDL_vkeys.h │ │ ├── windx5 │ │ ├── SDL_dx5events.c │ │ ├── SDL_dx5events_c.h │ │ ├── SDL_dx5video.c │ │ ├── SDL_dx5video.h │ │ ├── SDL_dx5yuv.c │ │ ├── SDL_dx5yuv_c.h │ │ └── directx.h │ │ ├── wscons │ │ ├── SDL_wsconsevents.c │ │ ├── SDL_wsconsevents_c.h │ │ ├── SDL_wsconsmouse.c │ │ ├── SDL_wsconsmouse_c.h │ │ ├── SDL_wsconsvideo.c │ │ └── SDL_wsconsvideo.h │ │ ├── x11 │ │ ├── SDL_x11dga.c │ │ ├── SDL_x11dga_c.h │ │ ├── SDL_x11dyn.c │ │ ├── SDL_x11dyn.h │ │ ├── SDL_x11events.c │ │ ├── SDL_x11events_c.h │ │ ├── SDL_x11gamma.c │ │ ├── SDL_x11gamma_c.h │ │ ├── SDL_x11gl.c │ │ ├── SDL_x11gl_c.h │ │ ├── SDL_x11image.c │ │ ├── SDL_x11image_c.h │ │ ├── SDL_x11modes.c │ │ ├── SDL_x11modes_c.h │ │ ├── SDL_x11mouse.c │ │ ├── SDL_x11mouse_c.h │ │ ├── SDL_x11sym.h │ │ ├── SDL_x11video.c │ │ ├── SDL_x11video.h │ │ ├── SDL_x11wm.c │ │ ├── SDL_x11wm_c.h │ │ ├── SDL_x11yuv.c │ │ └── SDL_x11yuv_c.h │ │ └── xbios │ │ ├── SDL_xbios.c │ │ ├── SDL_xbios.h │ │ ├── SDL_xbios_blowup.c │ │ ├── SDL_xbios_blowup.h │ │ ├── SDL_xbios_centscreen.c │ │ ├── SDL_xbios_centscreen.h │ │ ├── SDL_xbios_sb3.c │ │ └── SDL_xbios_sb3.h ├── update-audio.sh └── zlib-1.2.3 │ ├── Makefile │ ├── adler32.c │ ├── compress.c │ ├── configure │ ├── crc32.c │ ├── crc32.h │ ├── deflate.c │ ├── deflate.h │ ├── gzio.c │ ├── infback.c │ ├── inffast.c │ ├── inffast.h │ ├── inffixed.h │ ├── inflate.c │ ├── inflate.h │ ├── inftrees.c │ ├── inftrees.h │ ├── sources.make │ ├── trees.c │ ├── trees.h │ ├── uncompr.c │ ├── zconf.h │ ├── zlib.h │ ├── zutil.c │ └── zutil.h ├── dma-helpers.c ├── dma.h ├── docs ├── ANDROID-ADB-QEMU.TXT ├── ANDROID-CONFIG-FILES.TXT ├── ANDROID-ELFF.TXT ├── ANDROID-FRAMEBUFFER.TXT ├── ANDROID-KERNEL.TXT ├── ANDROID-MEMCHECK.TXT ├── ANDROID-QEMU-PIPE.TXT ├── ANDROID-QEMUD-SERVICES.TXT ├── ANDROID-QEMUD.TXT ├── ANDROID-SKIN-FILES.TXT ├── ANDROID-TRACING.TXT ├── AUDIO.TXT ├── CHAR-DEVICES.TXT ├── CPU-EMULATION.TXT └── DISPLAY-STATE.TXT ├── dyngen-exec.h ├── dynlink-static.c ├── dynlink.h ├── elf.h ├── elf_ops.h ├── elff ├── dwarf.h ├── dwarf_cu.cc ├── dwarf_cu.h ├── dwarf_defs.h ├── dwarf_die.cc ├── dwarf_die.h ├── dwarf_utils.cc ├── dwarf_utils.h ├── elf_alloc.cc ├── elf_alloc.h ├── elf_defs.h ├── elf_file.cc ├── elf_file.h ├── elf_mapped_section.cc ├── elf_mapped_section.h ├── elff-common.h ├── elff_api.cc ├── elff_api.h └── elff_elf.h ├── envlist.c ├── envlist.h ├── exec-all.h ├── exec.c ├── feature_to_c.sh ├── fpu ├── softfloat-macros.h ├── softfloat-native.c ├── softfloat-native.h ├── softfloat-specialize.h ├── softfloat.c └── softfloat.h ├── gdb-xml ├── arm-core.xml ├── arm-neon.xml ├── arm-vfp.xml ├── arm-vfp3.xml ├── cf-core.xml ├── cf-fp.xml ├── power-altivec.xml ├── power-core.xml ├── power-fpu.xml ├── power-spe.xml └── power64-core.xml ├── gdbstub.c ├── gdbstub.h ├── gen-charmap.py ├── gen-icount.h ├── gen-skin.py ├── hax.h ├── host-defs.h ├── host-utils.c ├── host-utils.h ├── hostregs_helper.h ├── hpet.h ├── hw ├── android_arm.c ├── apic.c ├── arm-misc.h ├── arm_boot.c ├── arm_gic.c ├── arm_pic.c ├── arm_pic.h ├── armv7m.c ├── armv7m_nvic.c ├── audiodev.h ├── baum.h ├── boards.h ├── bt-hci-csr.c ├── bt-hci.c ├── bt-hid.c ├── bt-l2cap.c ├── bt-sdp.c ├── bt.c ├── bt.h ├── cdrom.c ├── devices.h ├── dma.c ├── fdc.h ├── fw_cfg.c ├── fw_cfg.h ├── goldfish_audio.c ├── goldfish_battery.c ├── goldfish_device.c ├── goldfish_device.h ├── goldfish_events_device.c ├── goldfish_fb.c ├── goldfish_interrupt.c ├── goldfish_memlog.c ├── goldfish_mmc.c ├── goldfish_nand.c ├── goldfish_nand.h ├── goldfish_nand_reg.h ├── goldfish_pipe.c ├── goldfish_pipe.h ├── goldfish_switch.c ├── goldfish_timer.c ├── goldfish_trace.c ├── goldfish_trace.h ├── goldfish_tty.c ├── hw.h ├── i8254.c ├── i8259.c ├── ioapic.c ├── irq.c ├── irq.h ├── isa.h ├── mc146818rtc.c ├── mips-bios.h ├── mips.h ├── mips_int.c ├── mips_r4k.c ├── mips_timer.c ├── mmc.h ├── msmouse.c ├── msmouse.h ├── ne2000.c ├── pc.c ├── pc.h ├── pci.c ├── pci.h ├── pci_host.h ├── pci_ids.h ├── pckbd.c ├── pcmcia.h ├── piix_pci.c ├── power_supply.h ├── ps2.c ├── ps2.h ├── pxa.h ├── qdev.c ├── qdev.h ├── scsi-disk.c ├── scsi-disk.h ├── sd.h ├── smbios.c ├── smbios.h ├── smc91c111.c ├── sysbus.c ├── sysbus.h ├── usb-hid.c ├── usb-hub.c ├── usb-msd.c ├── usb-ohci.c ├── usb.c ├── usb.h ├── watchdog.c ├── watchdog.h └── xen.h ├── hxtool ├── i386-dis.c ├── i386-vl.ld ├── i386.ld ├── ia64.ld ├── images ├── android_icon.ico ├── android_icon.rc ├── android_icon_16.png ├── android_icon_256.png └── android_icon_32.png ├── input.c ├── iohandler.c ├── iolooper-select.c ├── iolooper.h ├── ioport-user.c ├── ioport.c ├── ioport.h ├── json-lexer.c ├── json-lexer.h ├── json-parser.c ├── json-parser.h ├── json-streamer.c ├── json-streamer.h ├── keymaps.c ├── keymaps.h ├── kqemu.c ├── kqemu.h ├── kvm-all.c ├── kvm-android.c ├── kvm-android.h ├── kvm.h ├── linux_keycodes.h ├── loader.c ├── loadpng.c ├── m68k.ld ├── memcheck ├── memcheck.c ├── memcheck.h ├── memcheck_api.h ├── memcheck_common.h ├── memcheck_logging.h ├── memcheck_malloc_map.c ├── memcheck_malloc_map.h ├── memcheck_mmrange_map.c ├── memcheck_mmrange_map.h ├── memcheck_proc_management.c ├── memcheck_proc_management.h ├── memcheck_util.c └── memcheck_util.h ├── migration-dummy-android.c ├── migration-exec.c ├── migration-tcp-android.c ├── migration-tcp.c ├── migration.c ├── migration.h ├── mips-dis.c ├── module.c ├── module.h ├── monitor-android.h ├── monitor.c ├── monitor.h ├── net-android.c ├── net-checksum.c ├── net.c ├── net.h ├── notify.c ├── notify.h ├── offset_layout.py ├── os-posix.c ├── os-win32.c ├── osdep.c ├── osdep.h ├── oslib-posix.c ├── oslib-win32.c ├── path.c ├── pc-bios └── keymaps │ ├── ar │ ├── common │ ├── da │ ├── de │ ├── de-ch │ ├── en-gb │ ├── en-us │ ├── es │ ├── et │ ├── fi │ ├── fo │ ├── fr │ ├── fr-be │ ├── fr-ca │ ├── fr-ch │ ├── hr │ ├── hu │ ├── is │ ├── it │ ├── ja │ ├── lt │ ├── lv │ ├── mk │ ├── modifiers │ ├── nl │ ├── nl-be │ ├── no │ ├── pl │ ├── pt │ ├── pt-br │ ├── ru │ ├── sl │ ├── sv │ ├── th │ └── tr ├── poison.h ├── posix-aio-compat.c ├── ppc-dis.c ├── ppc.ld ├── proxy ├── proxy_common.c ├── proxy_common.h ├── proxy_http.c ├── proxy_http.h ├── proxy_http_connector.c ├── proxy_http_int.h ├── proxy_http_rewriter.c └── proxy_int.h ├── qbool.c ├── qbool.h ├── qdict.c ├── qdict.h ├── qemu-aio.h ├── qemu-barrier.h ├── qemu-char.c ├── qemu-char.h ├── qemu-common.h ├── qemu-config.c ├── qemu-config.h ├── qemu-error.c ├── qemu-error.h ├── qemu-io.c ├── qemu-lock.h ├── qemu-log.h ├── qemu-malloc.c ├── qemu-monitor.hx ├── qemu-objects.h ├── qemu-option.c ├── qemu-option.h ├── qemu-options.h ├── qemu-options.hx ├── qemu-os-posix.h ├── qemu-os-win32.h ├── qemu-queue.h ├── qemu-sockets-android.c ├── qemu-sockets.c ├── qemu-thread.c ├── qemu-thread.h ├── qemu-timer-common.c ├── qemu-timer.c ├── qemu-timer.h ├── qemu_debug.h ├── qemu_file.h ├── qemu_socket.h ├── qemu_timers.h ├── qerror.c ├── qerror.h ├── qfloat.c ├── qfloat.h ├── qint.c ├── qint.h ├── qjson.c ├── qjson.h ├── qlist.c ├── qlist.h ├── qobject.h ├── qstring.c ├── qstring.h ├── readline.c ├── readline.h ├── savevm.c ├── sdl_keysym.h ├── shaper.c ├── shaper.h ├── slirp-android ├── COPYRIGHT ├── bootp.c ├── bootp.h ├── cksum.c ├── ctl.h ├── debug.c ├── debug.h ├── helper.h ├── icmp_var.h ├── if.c ├── if.h ├── ip.h ├── ip_icmp.c ├── ip_icmp.h ├── ip_input.c ├── ip_output.c ├── libslirp.h ├── main.h ├── mbuf.c ├── mbuf.h ├── misc.c ├── misc.h ├── sbuf.c ├── sbuf.h ├── slirp.c ├── slirp.h ├── slirp_config.h ├── socket.c ├── socket.h ├── tcp.h ├── tcp_input.c ├── tcp_output.c ├── tcp_subr.c ├── tcp_timer.c ├── tcp_timer.h ├── tcp_var.h ├── tcpip.h ├── tftp.c ├── tftp.h ├── udp.c └── udp.h ├── slirp ├── COPYRIGHT ├── bootp.c ├── bootp.h ├── cksum.c ├── ctl.h ├── debug.c ├── debug.h ├── icmp_var.h ├── if.c ├── if.h ├── ip.h ├── ip_icmp.c ├── ip_icmp.h ├── ip_input.c ├── ip_output.c ├── libslirp.h ├── main.h ├── mbuf.c ├── mbuf.h ├── misc.c ├── misc.h ├── sbuf.c ├── sbuf.h ├── slirp.c ├── slirp.h ├── slirp_config.h ├── socket.c ├── socket.h ├── tcp.h ├── tcp_input.c ├── tcp_output.c ├── tcp_subr.c ├── tcp_timer.c ├── tcp_timer.h ├── tcp_var.h ├── tcpip.h ├── tftp.c ├── tftp.h ├── udp.c └── udp.h ├── sockets.c ├── sockets.h ├── softmmu-semi.h ├── softmmu_defs.h ├── softmmu_exec.h ├── softmmu_header.h ├── softmmu_outside_jit.c ├── softmmu_outside_jit.h ├── softmmu_template.h ├── sparc.ld ├── sys-tree.h ├── sysemu.h ├── tap-win32.c ├── target-arm ├── DECAF_main_arm.c ├── cpu.h ├── exec.h ├── helper-android.c ├── helper-android.h ├── helper.c ├── helper.h ├── iwmmxt_helper.c ├── machine.c ├── neon_helper.c ├── op_addsub.h ├── op_helper.c ├── translate-android.h └── translate.c ├── target-i386 ├── TODO ├── cpu.h ├── exec.h ├── hax-all.c ├── hax-darwin.c ├── hax-darwin.h ├── hax-i386.h ├── hax-interface.h ├── hax-windows.c ├── hax-windows.h ├── helper.c ├── helper.h ├── helper_template.h ├── kvm-gs-restore.c ├── kvm-gs-restore.h ├── kvm.c ├── machine.c ├── op_helper.c ├── ops_sse.h ├── ops_sse_header.h ├── svm.h └── translate.c ├── target-mips ├── TODO ├── cpu.h ├── exec.h ├── helper.c ├── helper.h ├── machine.c ├── mips-defs.h ├── op_helper.c ├── translate.c └── translate_init.c ├── targphys.h ├── tcg ├── LICENSE ├── README ├── TODO ├── arm │ ├── tcg-target.c │ └── tcg-target.h ├── hppa │ ├── tcg-target.c │ └── tcg-target.h ├── i386 │ ├── tcg-target.c │ └── tcg-target.h ├── ppc │ ├── tcg-target.c │ └── tcg-target.h ├── ppc64 │ ├── tcg-target.c │ └── tcg-target.h ├── sparc │ ├── tcg-target.c │ └── tcg-target.h ├── tcg-op.h ├── tcg-opc.h ├── tcg-runtime.h ├── tcg.c ├── tcg.h └── x86_64 │ ├── tcg-target.c │ └── tcg-target.h ├── tcpdump.c ├── tcpdump.h ├── telephony ├── Jamfile ├── android_modem.c ├── android_modem.h ├── gsm.c ├── gsm.h ├── modem_driver.c ├── modem_driver.h ├── remote_call.c ├── remote_call.h ├── sim_card.c ├── sim_card.h ├── simulator.c ├── sms.c ├── sms.h ├── sysdeps.h ├── sysdeps_posix.c ├── sysdeps_qemu.c ├── test1.c └── test2.c ├── thunk.c ├── thunk.h ├── trace.c ├── trace.h ├── trace_common.h ├── translate-all.c ├── translate-op.c ├── translate.make ├── uboot_image.h ├── usb-dummy-android.c ├── usb-linux.c ├── user-events-qemu.c ├── user-events.h ├── varint.c ├── varint.h ├── vgafont.h ├── vl-android-ui.c ├── vl-android.c ├── vl.c ├── vnc-android.c ├── vnc-tls.h ├── vnc.c ├── vnc.h ├── vnc_keysym.h ├── vnchextile.h └── x86_64.ld /.gitignore: -------------------------------------------------------------------------------- 1 | images/android_icon.o 2 | objs/* 3 | *.*~ 4 | tags 5 | .gitignore 6 | /home/ndroid/tdroid/tdroid-4.1.1_r6/external/qemu/DECAF_shared/DroidScope/NDroid/scripts/tmp* 7 | -------------------------------------------------------------------------------- /Android.mk: -------------------------------------------------------------------------------- 1 | # the following test is made to detect that we were called 2 | # through the 'm' or 'mm' build commands. if not, we use the 3 | # standard QEMU Makefile 4 | # 5 | ifeq ($(DEFAULT_GOAL),droid) 6 | LOCAL_PATH:= $(call my-dir) 7 | include $(LOCAL_PATH)/Makefile.android 8 | else 9 | include Makefile.qemu 10 | endif 11 | -------------------------------------------------------------------------------- /CleanSpec.mk: -------------------------------------------------------------------------------- 1 | # This empty file is here solely for the purpose of optimizing the Android build 2 | # Please keep it there, and empty, thanks :-) 3 | # 4 | -------------------------------------------------------------------------------- /DECAF_shared/DECAF_info_cmds.h: -------------------------------------------------------------------------------- 1 | //place holder 2 | -------------------------------------------------------------------------------- /DECAF_shared/DroidScope/DS_Init.h: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (C) <2011> 3 | * 4 | * This library is free software; you can redistribute it and/or 5 | * modify it under the terms of the GNU Lesser General Public 6 | * License as published by the Free Software Foundation; either 7 | * version 2 of the License, or (at your option) any later version. 8 | * 9 | * This library is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 | * Lesser General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU Lesser General Public 15 | * License along with this library; if not, see . 16 | */ 17 | 18 | /* 19 | * DS_Init.h 20 | * 21 | * Created on: Oct 6, 2011 22 | * Author: lok 23 | */ 24 | 25 | #ifndef DS_INIT_H_ 26 | #define DS_INIT_H_ 27 | 28 | void DS_init(); 29 | void DS_close(); 30 | 31 | #endif//DS_INIT_H_ 32 | -------------------------------------------------------------------------------- /DECAF_shared/DroidScope/NDroid/ND_instrument.h: -------------------------------------------------------------------------------- 1 | /** 2 | * author: Chenxiong (R0r5ch4ch) Qian 3 | * date: 2014-7-9 4 | */ 5 | 6 | #ifndef _ND_INSTRUMENT_H 7 | #define _ND_INSTRUMENT_H 8 | 9 | #include "ND_manager.h" 10 | 11 | #ifdef __cplusplus 12 | extern "C" 13 | { 14 | #endif 15 | 16 | extern DECAF_Handle nd_ib_handle; 17 | extern DECAF_Handle nd_be_handle; 18 | 19 | int nd_in_blacklist(gva_t addr); 20 | void nd_instrument_init(); 21 | void nd_instrument_stop(); 22 | 23 | #ifdef WITH_MEM_PROTECT 24 | void refresh_stack_heap_ranges(); 25 | #endif 26 | 27 | #ifdef __cplusplus 28 | } 29 | #endif 30 | 31 | #endif 32 | -------------------------------------------------------------------------------- /DECAF_shared/DroidScope/NDroid/ND_manager.h: -------------------------------------------------------------------------------- 1 | /** 2 | * author: chenxiong (R0r5ch4ch) qian 3 | * date: 2014-8-9 4 | */ 5 | 6 | #ifndef _ND_MANAGER_H 7 | #define _ND_MANAGER_H 8 | 9 | #include "monitor.h" 10 | #include "DECAF_shared/DECAF_types.h" 11 | #include "DECAF_shared/DroidScope/linuxAPI/ProcessInfo.h" 12 | 13 | #ifdef __cplusplus 14 | extern "C" 15 | { 16 | #endif 17 | 18 | extern gpid_t ND_GLOBAL_TRACING_PID; 19 | extern target_ulong ND_GLOBAL_TRACING_UID; 20 | extern int ND_TRACING_STATE; 21 | extern ProcessInfo* ND_GLOBAL_TRACING_PROCESS; 22 | #define ND_STOP -1 23 | #define ND_WAITING 0 24 | #define ND_TRACING_PID 1 25 | #define ND_TRACING_UID 2 26 | 27 | void nd_manager_trace_pid(Monitor* mon, gpid_t pid); 28 | void nd_manager_trace_uid(Monitor* mon, target_ulong uid); 29 | void nd_manager_wait_and_trace_uid(Monitor* mon, target_ulong uid, 30 | gva_t libStartAddr, gva_t libEndAddr); 31 | void nd_manager_stop_trace_pid(Monitor* mon, gpid_t pid); 32 | void nd_manager_stop_trace_uid(Monitor* mon, target_ulong uid); 33 | 34 | #ifdef WITH_MEM_PROTECT 35 | void nd_refresh_stack_heap_ranges(); 36 | #endif 37 | 38 | #ifdef __cplusplus 39 | } 40 | #endif 41 | 42 | #endif 43 | -------------------------------------------------------------------------------- /DECAF_shared/DroidScope/NDroid/darm/ndroid_darm_utils.h: -------------------------------------------------------------------------------- 1 | /** 2 | * author: Chenxiong (R0r5ch4ch) Qian 3 | * date: 2014-9-22 4 | */ 5 | #ifndef _NDROID_DARM_UTILS_H 6 | #define _NDROID_DARM_UTILS_H 7 | 8 | #ifdef __cplusplus 9 | 10 | extern "C" 11 | { 12 | #endif 13 | 14 | typedef enum _darm_sr_type { 15 | SRType_LSL, 16 | SRType_LSR, 17 | SRType_ASR, 18 | SRType_ROR, 19 | SRType_RRX, 20 | SRType_INVALID 21 | } darm_sr_type; 22 | 23 | int darm_shift(int value, int type, int imm, int carry_in); 24 | 25 | darm_sr_type darm_decode_imm_shift(int type, int imm); 26 | 27 | int darm_bit_count_16(int bit_string); 28 | 29 | #ifdef __cplusplus 30 | } 31 | #endif 32 | 33 | #endif 34 | -------------------------------------------------------------------------------- /DECAF_shared/DroidScope/NDroid/hook/jni_bridge/exceptions.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0-14N/NDroid/4e5dbe69855a7fda8b74e61d9db5aa61e6ba9ee8/DECAF_shared/DroidScope/NDroid/hook/jni_bridge/exceptions.c -------------------------------------------------------------------------------- /DECAF_shared/DroidScope/NDroid/hook/jni_bridge/exceptions.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0-14N/NDroid/4e5dbe69855a7fda8b74e61d9db5aa61e6ba9ee8/DECAF_shared/DroidScope/NDroid/hook/jni_bridge/exceptions.h -------------------------------------------------------------------------------- /DECAF_shared/DroidScope/NDroid/hook/jni_bridge/global_local_references.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0-14N/NDroid/4e5dbe69855a7fda8b74e61d9db5aa61e6ba9ee8/DECAF_shared/DroidScope/NDroid/hook/jni_bridge/global_local_references.c -------------------------------------------------------------------------------- /DECAF_shared/DroidScope/NDroid/hook/jni_bridge/global_local_references.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0-14N/NDroid/4e5dbe69855a7fda8b74e61d9db5aa61e6ba9ee8/DECAF_shared/DroidScope/NDroid/hook/jni_bridge/global_local_references.h -------------------------------------------------------------------------------- /DECAF_shared/DroidScope/NDroid/hook/jni_bridge/jni_api_hook.h: -------------------------------------------------------------------------------- 1 | /** 2 | * author: Chenxiong (R0r5ch4ch) Qian 3 | * date: 2014-10-3 4 | */ 5 | #ifndef _JNI_API_HOOK_H 6 | #define _JNI_API_HOOK_H 7 | 8 | #ifdef __cplusplus 9 | 10 | extern "C" 11 | { 12 | #endif 13 | #include "cpu.h" 14 | #include "TaintEngine.h" 15 | #include "dvm_hook.h" 16 | #include "DECAF_main.h" 17 | 18 | typedef void (*jniHookHandler)(CPUState*, int); 19 | 20 | //int startOfJniApis(int curPC, int dvmStartAddr); 21 | 22 | jniHookHandler hookJniApis(int curPC, int dvmStartAddr, CPUState* env); 23 | 24 | #ifdef __cplusplus 25 | } 26 | #endif 27 | 28 | #endif 29 | -------------------------------------------------------------------------------- /DECAF_shared/DroidScope/NDroid/hook/jni_bridge/object_operations.h: -------------------------------------------------------------------------------- 1 | /** 2 | * author: Chenxiong (R0r5ch4ch) Qian 3 | * date: 2014-11-15 4 | */ 5 | #ifndef _JNI_OBJECT_OPERATIONS_ 6 | #define _JNI_OBJECT_OPERATIONS_ 7 | 8 | #ifdef __cplusplus 9 | 10 | extern "C" 11 | { 12 | #endif 13 | 14 | #include "JNI_APIS_OFFSETS.h" 15 | #include "jni_api_hook.h" 16 | 17 | jniHookHandler hookObjectOperations(int curPC, int dvmStartAddr, CPUState* env); 18 | 19 | //JNI interfaces 20 | void hookNewObject(CPUState* env, int isStart); 21 | void hookNewObjectA(CPUState* env, int isStart); 22 | void hookNewObjectV(CPUState* env, int isStart); 23 | 24 | #ifdef __cplusplus 25 | } 26 | #endif 27 | 28 | #endif 29 | -------------------------------------------------------------------------------- /DECAF_shared/DroidScope/NDroid/hook/jni_bridge/readme: -------------------------------------------------------------------------------- 1 | For JNI APIs details, please refer to http://docs.oracle.com/javase/6/docs/technotes/guides/jni/spec/jniTOC.html. 2 | 3 | -JNIAPIS_ADDRS.log: log relevant to the addresses of JNI APIs. 4 | -generate.py: script to generate "JNI_APIS_OFFSETS.h" 5 | -------------------------------------------------------------------------------- /DECAF_shared/DroidScope/NDroid/hook/readme: -------------------------------------------------------------------------------- 1 | -- Currently, offsets relevant to dvm hooking are manually set. 2 | We would write scripts to generate them automatically. 3 | 4 | -- dvm_offset.h: define offsets relevant dvm hooking. 5 | (Should be generated automatically!). 6 | -------------------------------------------------------------------------------- /DECAF_shared/DroidScope/NDroid/hook/sys_libraries/readme: -------------------------------------------------------------------------------- 1 | Files under "sys_libraries" are relevant to system library hooking. 2 | 3 | -- generate.py: run this script to automatically generate head files (e.g. libc.h, libm.h) 4 | -- libc.dyn, libm.dyn: the dynamic string tables of "libc.so", "libm.so", generated by 5 | arm-eabi-objdump. (*** Replase them with your own files). 6 | -- lib_c.h, lib_m.h, lib_c2.c, lib_m2.c, ... are all generated automatically by "generate.py" 7 | -------------------------------------------------------------------------------- /DECAF_shared/DroidScope/NDroid/hook/sys_libraries/sys_lib_hook.c: -------------------------------------------------------------------------------- 1 | /** 2 | * author: Chenxiong (R0r5ch4ch) Qian 3 | * date: 2014-10-4 4 | */ 5 | #include "sys_lib_hook.h" 6 | #include "lib_c.h" 7 | #include "lib_m.h" 8 | 9 | //modules' start addresses and end addresses 10 | gva_t LIBC_START_ADDR = -1; 11 | gva_t LIBC_END_ADDR = -1; 12 | gva_t LIBM_START_ADDR = -1; 13 | gva_t LIBM_END_ADDR = -1; 14 | 15 | /* 16 | int startOfSysLibCalls(int curPC){ 17 | //libc.so calls 18 | if(startOfLibCCalls(curPC, LIBC_START_ADDR)){ 19 | return (1); 20 | } 21 | 22 | //libm.so calls 23 | if(startOfLibMCalls(curPC, LIBM_START_ADDR)){ 24 | return (1); 25 | } 26 | 27 | return (0); 28 | } 29 | */ 30 | 31 | sysLibHookHandler hookSysLibCalls(int curPC, CPUState* env){ 32 | //libc.so calls 33 | sysLibHookHandler hookHandler = hookLibCCalls(curPC, LIBC_START_ADDR, env); 34 | if(hookHandler != NULL){ 35 | return (hookHandler); 36 | } 37 | 38 | //libm.so calls 39 | hookHandler = hookLibMCalls(curPC, LIBM_START_ADDR, env); 40 | if(hookHandler != NULL){ 41 | return (hookHandler); 42 | } 43 | 44 | return (NULL); 45 | } 46 | -------------------------------------------------------------------------------- /DECAF_shared/DroidScope/NDroid/hook/sys_libraries/sys_lib_hook.h: -------------------------------------------------------------------------------- 1 | /** 2 | * author: Chenxiong (R0r5ch4ch) Qian 3 | * date: 2014-10-4 4 | */ 5 | #ifndef _SYS_LIB_HOOK_H 6 | #define _SYS_LIB_HOOK_H 7 | 8 | #ifdef __cplusplus 9 | 10 | extern "C" 11 | { 12 | #endif 13 | 14 | #include "cpu.h" 15 | #include "DECAF_types.h" 16 | #include "DECAF_main.h" 17 | #include "DECAF_shared/utils/OutputWrapper.h" 18 | #include "TaintEngine.h" 19 | 20 | //modules' start addresses and end addresses 21 | extern gva_t LIBC_START_ADDR; 22 | extern gva_t LIBC_END_ADDR; 23 | extern gva_t LIBM_START_ADDR; 24 | extern gva_t LIBM_END_ADDR; 25 | 26 | typedef void (*sysLibHookHandler)(CPUState*, int); 27 | 28 | //int startOfSysLibCalls(int curPC); 29 | 30 | sysLibHookHandler hookSysLibCalls(int curPC, CPUState* env); 31 | 32 | #ifdef __cplusplus 33 | } 34 | #endif 35 | 36 | #endif 37 | -------------------------------------------------------------------------------- /DECAF_shared/DroidScope/NDroid/memProtect/mem_protection.h: -------------------------------------------------------------------------------- 1 | /** 2 | * author: Chenxiong (R0r5ch4ch) Qian 3 | * date: 2014-11-10 4 | */ 5 | 6 | #ifndef _ND_MEM_PROTECT_H 7 | #define _ND_MEM_PROTECT_H 8 | 9 | #ifdef __cplusplus 10 | extern "C" 11 | { 12 | #endif 13 | 14 | #include "DECAF_shared/DECAF_types.h" 15 | 16 | // #define WITH_MEM_PROTECT 17 | 18 | /* 19 | * http://stackoverflow.com/questions/22299403/whats-the-data-in-dalvik-linearalloc-dalvik-aux-structure-dalvik-bitmap-1-da 20 | * The above link refers to different kinds of datas stored in /dev/ashmem/-- modules. 21 | * 22 | */ 23 | 24 | //To protect DVM heap, we care about "/dev/ashmem/dalvik-heap". 25 | void initDVMHeapRanges(gpid_t tracingPID); 26 | 27 | //To protect DVM's linear allocated, we care about "/dev/ashmem/dalvik-LinearAlloc". 28 | void initDVMLinearAllocRanges(gpid_t tracingPID); 29 | 30 | //Refresh the DVM heap 31 | void refreshDVMHeapRanges(gpid_t tracingPID); 32 | 33 | //Refresh the DVM stack(); 34 | void refreshDVMLinearAllocRanges(gpid_t tracingPID); 35 | 36 | int isWithinDVMHeap(gva_t addr); 37 | 38 | int isWithinDVMLinearAlloc(gva_t addr); 39 | 40 | int isWithinDVMStack(gva_t addr); 41 | 42 | #ifdef __cplusplus 43 | } 44 | #endif 45 | 46 | #endif 47 | -------------------------------------------------------------------------------- /DECAF_shared/DroidScope/NDroid/scripts/pullMemMaps.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/python 2 | #author: Chenxiong Qian 3 | #date: 2014-7-21 4 | 5 | #pull memory maps of system apps and extract 6 | #system libraries/memory modules. 7 | 8 | import subprocess 9 | 10 | pids = [] 11 | modules = [] 12 | 13 | if __name__ == '__main__': 14 | p = subprocess.Popen("adb shell ls /proc/", shell=True, stdout=subprocess.PIPE) 15 | out = p.communicate()[0].split('\n') 16 | for line in out: 17 | line = line.strip() 18 | try: 19 | pid = int(line) 20 | pids.append(pid) 21 | except ValueError: 22 | continue 23 | 24 | for pid in pids: 25 | p = subprocess.Popen("adb shell cat /proc/" + str(pid) + "/maps", shell=True, stdout=subprocess.PIPE) 26 | out = p.communicate()[0].split('\n') 27 | for line in out: 28 | tokens = line.strip().split() 29 | if len(tokens) >= 6: 30 | if tokens[5] not in modules: 31 | modules.append(tokens[5]) 32 | 33 | for module in modules: 34 | print "StringHashtable_add(pTable, \"" + module + "\");" 35 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | The following points clarify the QEMU license: 2 | 3 | 1) QEMU as a whole is released under the GNU General Public License 4 | 5 | 2) Parts of QEMU have specific licenses which are compatible with the 6 | GNU General Public License. Hence each source file contains its own 7 | licensing information. 8 | 9 | In particular, the QEMU virtual CPU core library (libqemu.a) is 10 | released under the GNU Lesser General Public License. Many hardware 11 | device emulation sources are released under the BSD license. 12 | 13 | 3) The Tiny Code Generator (TCG) is released under the BSD license 14 | (see license headers in files). 15 | 16 | 4) QEMU is a trademark of Fabrice Bellard. 17 | 18 | Fabrice Bellard. 19 | -------------------------------------------------------------------------------- /MODULE_LICENSE_GPL: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0-14N/NDroid/4e5dbe69855a7fda8b74e61d9db5aa61e6ba9ee8/MODULE_LICENSE_GPL -------------------------------------------------------------------------------- /README: -------------------------------------------------------------------------------- 1 | Read the documentation in qemu-doc.html. 2 | 3 | Fabrice Bellard. 4 | -------------------------------------------------------------------------------- /aes.h: -------------------------------------------------------------------------------- 1 | #ifndef QEMU_AES_H 2 | #define QEMU_AES_H 3 | 4 | #define AES_MAXNR 14 5 | #define AES_BLOCK_SIZE 16 6 | 7 | struct aes_key_st { 8 | uint32_t rd_key[4 *(AES_MAXNR + 1)]; 9 | int rounds; 10 | }; 11 | typedef struct aes_key_st AES_KEY; 12 | 13 | int AES_set_encrypt_key(const unsigned char *userKey, const int bits, 14 | AES_KEY *key); 15 | int AES_set_decrypt_key(const unsigned char *userKey, const int bits, 16 | AES_KEY *key); 17 | 18 | void AES_encrypt(const unsigned char *in, unsigned char *out, 19 | const AES_KEY *key); 20 | void AES_decrypt(const unsigned char *in, unsigned char *out, 21 | const AES_KEY *key); 22 | void AES_cbc_encrypt(const unsigned char *in, unsigned char *out, 23 | const unsigned long length, const AES_KEY *key, 24 | unsigned char *ivec, const int enc); 25 | 26 | #endif 27 | -------------------------------------------------------------------------------- /android-rebuild.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # 3 | # this script is used to rebuild all QEMU binaries for the host 4 | # platforms. 5 | # 6 | # assume that the device tree is in TOP 7 | # 8 | 9 | case $(uname -s) in 10 | Linux) 11 | HOST_NUM_CPUS=`cat /proc/cpuinfo | grep processor | wc -l` 12 | ;; 13 | Darwin|FreeBsd) 14 | HOST_NUM_CPUS=`sysctl -n hw.ncpu` 15 | ;; 16 | CYGWIN*|*_NT-*) 17 | HOST_NUM_CPUS=$NUMBER_OF_PROCESSORS 18 | ;; 19 | *) # let's play safe here 20 | HOST_NUM_CPUS=1 21 | esac 22 | 23 | cd `dirname $0` 24 | rm -rf objs && 25 | ./android-configure.sh $@ && 26 | make -j$HOST_NUM_CPUS && 27 | echo "Done. !!" 28 | -------------------------------------------------------------------------------- /android/adb-qemud.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2011 The Android Open Source Project 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | #ifndef ANDROID_ADB_PIPE_H_ 18 | #define ANDROID_ADB_PIPE_H_ 19 | 20 | /* 21 | * Implements 'adb' QEMUD service that is responsible for the data exchange 22 | * between the emulator and ADB daemon running on the guest. 23 | */ 24 | 25 | /* Initializes adb QEMUD service. */ 26 | extern void android_adb_service_init(void); 27 | 28 | #endif /* ANDROID_ADB_PIPE_H_ */ 29 | 30 | -------------------------------------------------------------------------------- /android/audio-test.h: -------------------------------------------------------------------------------- 1 | /* Copyright (C) 2010 The Android Open Source Project 2 | ** 3 | ** This software is licensed under the terms of the GNU General Public 4 | ** License version 2, as published by the Free Software Foundation, and 5 | ** may be copied, distributed, and modified under those terms. 6 | ** 7 | ** This program is distributed in the hope that it will be useful, 8 | ** but WITHOUT ANY WARRANTY; without even the implied warranty of 9 | ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 10 | ** GNU General Public License for more details. 11 | */ 12 | #ifndef ANDROID_AUDIO_TEST_H 13 | #define ANDROID_AUDIO_TEST_H 14 | 15 | /* Start the audio test output, this will register a virtual sound 16 | * device that sends a saw signal to the audio sub-system. This is 17 | * used to test that the audio backend works without having to boot 18 | * a full system and launch a music application. 19 | */ 20 | extern int android_audio_test_start_out(void); 21 | 22 | #endif /* ANDROID_AUDIO_TEST_H */ 23 | -------------------------------------------------------------------------------- /android/build/clear_vars.make: -------------------------------------------------------------------------------- 1 | # Copyright (C) 2008 The Android Open Source Project 2 | # 3 | # Licensed under the Apache License, Version 2.0 (the "License"); 4 | # you may not use this file except in compliance with the License. 5 | # You may obtain a copy of the License at 6 | # 7 | # http://www.apache.org/licenses/LICENSE-2.0 8 | # 9 | # Unless required by applicable law or agreed to in writing, software 10 | # distributed under the License is distributed on an "AS IS" BASIS, 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | # See the License for the specific language governing permissions and 13 | # limitations under the License. 14 | # 15 | 16 | # called multiple times to clear variables used to define a given 'module' 17 | # 18 | LOCAL_NO_DEFAULT_COMPILER_FLAGS:= 19 | LOCAL_CC := 20 | LOCAL_CXX := 21 | LOCAL_AR := 22 | LOCAL_CFLAGS := 23 | LOCAL_LDFLAGS := 24 | LOCAL_LDLIBS := 25 | LOCAL_SRC_FILES := 26 | LOCAL_MODULE := 27 | LOCAL_MODULE_PATH:= 28 | LOCAL_STATIC_LIBRARIES := 29 | LOCAL_BUILT_MODULE := 30 | LOCAL_PREBUILT_OBJ_FILES := 31 | LOCAL_GENERATED_SOURCES := 32 | 33 | LOCAL_CPP_EXTENSION := .cpp 34 | -------------------------------------------------------------------------------- /android/build/getdir.make: -------------------------------------------------------------------------------- 1 | # Copyright (C) 2008 The Android Open Source Project 2 | # 3 | # Licensed under the Apache License, Version 2.0 (the "License"); 4 | # you may not use this file except in compliance with the License. 5 | # You may obtain a copy of the License at 6 | # 7 | # http://www.apache.org/licenses/LICENSE-2.0 8 | # 9 | # Unless required by applicable law or agreed to in writing, software 10 | # distributed under the License is distributed on an "AS IS" BASIS, 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | # See the License for the specific language governing permissions and 13 | # limitations under the License. 14 | # 15 | 16 | # used to return in 'dir' the name of the current operating system 17 | # we really get the value from the configuration script 18 | # 19 | dir := $(HOST_OS) 20 | -------------------------------------------------------------------------------- /android/camera/camera-service.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2011 The Android Open Source Project 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | #ifndef ANDROID_CAMERA_CAMERA_SERVICE_H_ 18 | #define ANDROID_CAMERA_CAMERA_SERVICE_H_ 19 | 20 | /* 21 | * Contains public camera service API. 22 | */ 23 | 24 | /* Initializes camera emulation service over qemu pipe. */ 25 | extern void android_camera_service_init(void); 26 | 27 | /* Lists available web cameras. */ 28 | extern void android_list_web_cameras(void); 29 | 30 | #endif /* ANDROID_CAMERA_CAMERA_SERVICE_H_ */ 31 | -------------------------------------------------------------------------------- /android/config/config.h: -------------------------------------------------------------------------------- 1 | /* This file is included by target-specific files under 2 | * android/config/target-$ARCH/config.h, but contains all config 3 | * definitions that are independent of the target CPU. 4 | * 5 | * Do not include directly. 6 | */ 7 | #include "config-host.h" 8 | 9 | #define TARGET_PHYS_ADDR_BITS 32 10 | #define CONFIG_TRACE 1 11 | #define CONFIG_NAND 1 12 | #define CONFIG_SHAPER 1 13 | #define CONFIG_SOFTMMU 1 14 | #define CONFIG_SDL 1 15 | #ifndef _WIN32 16 | #define CONFIG_NAND_LIMITS 1 17 | #endif 18 | #define CONFIG_MEMCHECK 1 19 | -------------------------------------------------------------------------------- /android/config/darwin-x86/config-host.h: -------------------------------------------------------------------------------- 1 | /* This file was autogenerated by 'android-configure.sh' */ 2 | #define CONFIG_QEMU_SHAREDIR "/usr/local/share/qemu" 3 | #if defined(__x86_64__) 4 | #define HOST_X86_64 1 5 | #define HOST_LONG_BITS 64 6 | #elif defined(__i386__) 7 | #define HOST_I386 1 8 | #define HOST_LONG_BITS 32 9 | #else 10 | #error Unknown architecture for codegen 11 | #endif 12 | 13 | #define CONFIG_FNMATCH 1 14 | #define CONFIG_GDBSTUB 1 15 | #define CONFIG_SLIRP 1 16 | #define CONFIG_SKINS 1 17 | #define CONFIG_TRACE 1 18 | #define CONFIG_NAND_LIMITS 1 19 | #define QEMU_VERSION "0.10.50" 20 | #define QEMU_PKGVERSION "Android" 21 | #define CONFIG_IOVEC 1 22 | #define CONFIG_DARWIN 1 23 | #define CONFIG_BSD 1 24 | #define O_LARGEFILE 0 25 | #define MAP_ANONYMOUS MAP_ANON 26 | #define CONFIG_ANDROID 1 27 | #define CONFIG_POSIX 1 28 | #define CONFIG_MADVISE 1 29 | -------------------------------------------------------------------------------- /android/config/freebsd-x86/config-host.h: -------------------------------------------------------------------------------- 1 | /* Automatically generated by configure - do not modify */ 2 | #define CONFIG_QEMU_SHAREDIR "/usr/local/share/qemu" 3 | #if defined(__x86_64__) 4 | #define HOST_X86_64 1 5 | #define HOST_LONG_BITS 64 6 | #elif defined(__i386__) 7 | #define HOST_I386 1 8 | #define HOST_LONG_BITS 32 9 | #else 10 | #error Unknown architecture for codegen 11 | #endif 12 | 13 | #define CONFIG_MACHINE_BSWAP_H 1 14 | #define CONFIG_FNMATCH 1 15 | #define CONFIG_GDBSTUB 1 16 | #define CONFIG_SLIRP 1 17 | #define CONFIG_OSS 1 18 | #define QEMU_VERSION "0.8.2" 19 | #define O_LARGEFILE 0 20 | #define MAP_ANONYMOUS MAP_ANON 21 | #define CONFIG_BSD 1 22 | #define CONFIG_UNAME_RELEASE "" 23 | #define CONFIG_SKINS 1 24 | #define CONFIG_ANDROID 1 25 | #define CONFIG_POSIX 1 26 | #define CONFIG_MADVISE 1 27 | -------------------------------------------------------------------------------- /android/config/linux-ppc/config-host.h: -------------------------------------------------------------------------------- 1 | /* This file was autogenerated by 'android-configure.sh' */ 2 | #define CONFIG_QEMU_SHAREDIR "/usr/local/share/qemu" 3 | #define HOST_LONG_BITS 32 4 | #define CONFIG_BYTESWAP_H 1 5 | #define CONFIG_FNMATCH 1 6 | #define CONFIG_GDBSTUB 1 7 | #define CONFIG_SLIRP 1 8 | #define CONFIG_SKINS 1 9 | #define CONFIG_TRACE 1 10 | #define CONFIG_FDATASYNC 1 11 | #define CONFIG_NAND_LIMITS 1 12 | #define QEMU_VERSION "0.10.50" 13 | #define QEMU_PKGVERSION "Android" 14 | #define HOST_PPC 1 15 | #define HOST_WORDS_BIGENDIAN 1 16 | #define CONFIG_IOVEC 1 17 | #define CONFIG_LINUX 1 18 | #define CONFIG_POSIX 1 19 | #define CONFIG_ANDROID 1 20 | #define CONFIG_MADVISE 1 21 | -------------------------------------------------------------------------------- /android/config/linux-x86/config-host.h: -------------------------------------------------------------------------------- 1 | /* This file was autogenerated by 'android-configure.sh' */ 2 | #define CONFIG_QEMU_SHAREDIR "/usr/local/share/qemu" 3 | #if defined(__x86_64__) 4 | #define HOST_X86_64 1 5 | #define HOST_LONG_BITS 64 6 | #elif defined(__i386__) 7 | #define HOST_I386 1 8 | #define HOST_LONG_BITS 32 9 | #else 10 | #error Unknown architecture for codegen 11 | #endif 12 | 13 | #define CONFIG_BYTESWAP_H 1 14 | #define CONFIG_FNMATCH 1 15 | #define CONFIG_GDBSTUB 1 16 | #define CONFIG_SLIRP 1 17 | #define CONFIG_SKINS 1 18 | #define CONFIG_TRACE 1 19 | #define CONFIG_FDATASYNC 1 20 | #define CONFIG_NAND_LIMITS 1 21 | #define QEMU_VERSION "0.10.50" 22 | #define QEMU_PKGVERSION "Android" 23 | #define CONFIG_KVM_GS_RESTORE 1 24 | #define CONFIG_IOVEC 1 25 | #define CONFIG_LINUX 1 26 | #define CONFIG_POSIX 1 27 | #define CONFIG_ANDROID 1 28 | #define CONFIG_MADVISE 1 29 | -------------------------------------------------------------------------------- /android/config/target-arm/config.h: -------------------------------------------------------------------------------- 1 | /* ARM-specific configuration */ 2 | #include "android/config/config.h" 3 | 4 | #define TARGET_ARM 1 5 | #define CONFIG_SOFTFLOAT 1 6 | -------------------------------------------------------------------------------- /android/config/target-x86/config.h: -------------------------------------------------------------------------------- 1 | /* x86-specific configuration */ 2 | #include "android/config/config.h" 3 | #define TARGET_I386 1 4 | /* For now, KVM is only supported on Linux hosts */ 5 | #ifdef CONFIG_LINUX 6 | #define CONFIG_KVM 1 7 | #endif 8 | 9 | /* 10 | * HAX is supported in darwin and windows host 11 | */ 12 | #ifdef CONFIG_DARWIN 13 | #define CONFIG_HAX 1 14 | #endif 15 | 16 | #ifdef CONFIG_WIN32 17 | #define CONFIG_HAX 1 18 | #endif 19 | -------------------------------------------------------------------------------- /android/config/windows/config-host.h: -------------------------------------------------------------------------------- 1 | /* This file was autogenerated by 'android-configure.sh' */ 2 | #define CONFIG_QEMU_SHAREDIR "/usr/local/share/qemu" 3 | #if defined(__x86_64__) 4 | #define HOST_X86_64 1 5 | #define HOST_LONG_BITS 64 6 | #elif defined(__i386__) 7 | #define HOST_I386 1 8 | #define HOST_LONG_BITS 32 9 | #else 10 | #error Unknown architecture for codegen 11 | #endif 12 | 13 | #define CONFIG_GDBSTUB 1 14 | #define CONFIG_SLIRP 1 15 | #define CONFIG_SKINS 1 16 | #define CONFIG_TRACE 1 17 | #define QEMU_VERSION "0.10.50" 18 | #define QEMU_PKGVERSION "Android" 19 | #define CONFIG_WIN32 1 20 | #define CONFIG_ANDROID 1 21 | -------------------------------------------------------------------------------- /android/display-core.h: -------------------------------------------------------------------------------- 1 | /* Copyright (C) 2010 The Android Open Source Project 2 | ** 3 | ** This software is licensed under the terms of the GNU General Public 4 | ** License version 2, as published by the Free Software Foundation, and 5 | ** may be copied, distributed, and modified under those terms. 6 | ** 7 | ** This program is distributed in the hope that it will be useful, 8 | ** but WITHOUT ANY WARRANTY; without even the implied warranty of 9 | ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 10 | ** GNU General Public License for more details. 11 | */ 12 | 13 | /* 14 | * Contains extension to android display (see android/display.h|c) that is used 15 | * by the core to communicate display changes to the attached UI 16 | */ 17 | 18 | #ifndef _ANDROID_DISPLAY_CORE_H 19 | #define _ANDROID_DISPLAY_CORE_H 20 | 21 | #include "console.h" 22 | 23 | /* 24 | * Initializes one and only one instance of a core display. 25 | * Only used to register a dummy display change listener that 26 | * will trigger a timer. 27 | * ds - Display state to use for the core display. 28 | */ 29 | extern void coredisplay_init(DisplayState* ds); 30 | 31 | #endif /* _ANDROID_DISPLAY_CORE_H */ 32 | -------------------------------------------------------------------------------- /android/display.h: -------------------------------------------------------------------------------- 1 | /* Copyright (C) 2010 The Android Open Source Project 2 | ** 3 | ** This software is licensed under the terms of the GNU General Public 4 | ** License version 2, as published by the Free Software Foundation, and 5 | ** may be copied, distributed, and modified under those terms. 6 | ** 7 | ** This program is distributed in the hope that it will be useful, 8 | ** but WITHOUT ANY WARRANTY; without even the implied warranty of 9 | ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 10 | ** GNU General Public License for more details. 11 | */ 12 | #ifndef _ANDROID_DISPLAY_H 13 | #define _ANDROID_DISPLAY_H 14 | 15 | #include "console.h" 16 | #include "android/framebuffer.h" 17 | 18 | extern void android_display_init(DisplayState* ds, QFrameBuffer* qfbuff); 19 | 20 | #endif /* _ANDROID_DISPLAY_H */ 21 | -------------------------------------------------------------------------------- /android/gps.c: -------------------------------------------------------------------------------- 1 | /* Copyright (C) 2007-2008 The Android Open Source Project 2 | ** 3 | ** This software is licensed under the terms of the GNU General Public 4 | ** License version 2, as published by the Free Software Foundation, and 5 | ** may be copied, distributed, and modified under those terms. 6 | ** 7 | ** This program is distributed in the hope that it will be useful, 8 | ** but WITHOUT ANY WARRANTY; without even the implied warranty of 9 | ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 10 | ** GNU General Public License for more details. 11 | */ 12 | #include "android/gps.h" 13 | #include "android/utils/debug.h" 14 | #include "qemu-char.h" 15 | 16 | CharDriverState* android_gps_cs; 17 | 18 | #define D(...) VERBOSE_PRINT(gps,__VA_ARGS__) 19 | 20 | void 21 | android_gps_send_nmea( const char* sentence ) 22 | { 23 | if (sentence == NULL) 24 | return; 25 | 26 | D("sending '%s'", sentence); 27 | 28 | if (android_gps_cs == NULL) { 29 | D("missing GPS channel, ignored"); 30 | return; 31 | } 32 | 33 | qemu_chr_write( android_gps_cs, (const void*)sentence, strlen(sentence) ); 34 | qemu_chr_write( android_gps_cs, (const void*)"\n", 1 ); 35 | } 36 | 37 | 38 | -------------------------------------------------------------------------------- /android/gps.h: -------------------------------------------------------------------------------- 1 | /* Copyright (C) 2007-2008 The Android Open Source Project 2 | ** 3 | ** This software is licensed under the terms of the GNU General Public 4 | ** License version 2, as published by the Free Software Foundation, and 5 | ** may be copied, distributed, and modified under those terms. 6 | ** 7 | ** This program is distributed in the hope that it will be useful, 8 | ** but WITHOUT ANY WARRANTY; without even the implied warranty of 9 | ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 10 | ** GNU General Public License for more details. 11 | */ 12 | #ifndef _android_gps_h 13 | #define _android_gps_h 14 | 15 | #include "qemu-common.h" 16 | 17 | /* this is the internal character driver used to communicate with the 18 | * emulated GPS unit. see qemu_chr_open() in vl.c */ 19 | extern CharDriverState* android_gps_cs; 20 | 21 | extern void android_gps_send_nmea( const char* sentence ); 22 | 23 | #endif /* _android_gps_h */ 24 | -------------------------------------------------------------------------------- /android/hw-kmsg.h: -------------------------------------------------------------------------------- 1 | /* Copyright (C) 2007-2008 The Android Open Source Project 2 | ** 3 | ** This software is licensed under the terms of the GNU General Public 4 | ** License version 2, as published by the Free Software Foundation, and 5 | ** may be copied, distributed, and modified under those terms. 6 | ** 7 | ** This program is distributed in the hope that it will be useful, 8 | ** but WITHOUT ANY WARRANTY; without even the implied warranty of 9 | ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 10 | ** GNU General Public License for more details. 11 | */ 12 | #ifndef _android_kmsg_h 13 | #define _android_kmsg_h 14 | 15 | #include "qemu-common.h" 16 | 17 | /* this chardriver is used to read the kernel messages coming 18 | * from the first serial port (i.e. /dev/ttyS0) and store them 19 | * in memory for later... 20 | */ 21 | 22 | typedef enum { 23 | ANDROID_KMSG_SAVE_MESSAGES = (1 << 0), 24 | ANDROID_KMSG_PRINT_MESSAGES = (1 << 1), 25 | } AndroidKmsgFlags; 26 | 27 | extern void android_kmsg_init( AndroidKmsgFlags flags ); 28 | 29 | extern CharDriverState* android_kmsg_get_cs( void ); 30 | 31 | #endif /* _android_kmsg_h */ 32 | -------------------------------------------------------------------------------- /android/hw-lcd.h: -------------------------------------------------------------------------------- 1 | /* Copyright (C) 2009 The Android Open Source Project 2 | ** 3 | ** This software is licensed under the terms of the GNU General Public 4 | ** License version 2, as published by the Free Software Foundation, and 5 | ** may be copied, distributed, and modified under those terms. 6 | ** 7 | ** This program is distributed in the hope that it will be useful, 8 | ** but WITHOUT ANY WARRANTY; without even the implied warranty of 9 | ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 10 | ** GNU General Public License for more details. 11 | */ 12 | #ifndef _ANDROID_HW_LCD_H 13 | #define _ANDROID_HW_LCD_H 14 | 15 | #define LCD_DENSITY_LDPI 120 16 | #define LCD_DENSITY_MDPI 160 17 | #define LCD_DENSITY_TVDPI 213 18 | #define LCD_DENSITY_HDPI 240 19 | #define LCD_DENSITY_XHDPI 320 20 | 21 | /* Sets the boot property corresponding to the emulated abstract LCD density */ 22 | extern void hwLcd_setBootProperty(int density); 23 | 24 | #endif /* _ANDROID_HW_LCD_H */ 25 | 26 | -------------------------------------------------------------------------------- /android/hw-pipe-net.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2011 The Android Open Source Project 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | #ifndef ANDROID_PIPE_NET_H 18 | #define ANDROID_PIPE_NET_H 19 | 20 | void android_net_pipes_init(void); 21 | 22 | #endif /* ANDROID_PIPE_NET_H */ 23 | -------------------------------------------------------------------------------- /android/keycode.c: -------------------------------------------------------------------------------- 1 | /* Copyright (C) 2009 The Android Open Source Project 2 | ** 3 | ** This software is licensed under the terms of the GNU General Public 4 | ** License version 2, as published by the Free Software Foundation, and 5 | ** may be copied, distributed, and modified under those terms. 6 | ** 7 | ** This program is distributed in the hope that it will be useful, 8 | ** but WITHOUT ANY WARRANTY; without even the implied warranty of 9 | ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 10 | ** GNU General Public License for more details. 11 | */ 12 | #include "android/keycode.h" 13 | 14 | AndroidKeyCode 15 | android_keycode_rotate( AndroidKeyCode code, int rotation ) 16 | { 17 | static const AndroidKeyCode wheel[4] = { kKeyCodeDpadUp, 18 | kKeyCodeDpadRight, 19 | kKeyCodeDpadDown, 20 | kKeyCodeDpadLeft }; 21 | 22 | int index; 23 | 24 | for (index = 0; index < 4; index++) { 25 | if (code == wheel[index]) { 26 | index = (index + rotation) & 3; 27 | code = wheel[index]; 28 | break; 29 | } 30 | } 31 | return code; 32 | } 33 | 34 | -------------------------------------------------------------------------------- /android/resource.h: -------------------------------------------------------------------------------- 1 | /* Copyright (C) 2007-2008 The Android Open Source Project 2 | ** 3 | ** This software is licensed under the terms of the GNU General Public 4 | ** License version 2, as published by the Free Software Foundation, and 5 | ** may be copied, distributed, and modified under those terms. 6 | ** 7 | ** This program is distributed in the hope that it will be useful, 8 | ** but WITHOUT ANY WARRANTY; without even the implied warranty of 9 | ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 10 | ** GNU General Public License for more details. 11 | */ 12 | #ifndef _ANDROID_RESOURCE_H 13 | #define _ANDROID_RESOURCE_H 14 | 15 | #include 16 | 17 | extern const unsigned char* 18 | android_resource_find( const char* name, 19 | size_t *psize ); 20 | 21 | extern const unsigned char* 22 | android_icon_find( const char* name, 23 | size_t *psize ); 24 | 25 | #endif /* END */ 26 | 27 | -------------------------------------------------------------------------------- /android/snapshot.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2010 The Android Open Source Project 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | #ifndef ANDROID_SNAPSHOT_H 18 | #define ANDROID_SNAPSHOT_H 19 | 20 | #include "config/config.h" 21 | 22 | /* Prints a table with information on the snapshot stored in the file 23 | * 'snapstorage', then exit()s. 24 | */ 25 | void snapshot_print_and_exit( const char *snapstorage ); 26 | 27 | 28 | extern int android_snapshot_update_time; 29 | extern int android_snapshot_update_time_request; 30 | 31 | #endif /* ANDROID_SNAPSHOT_H */ 32 | -------------------------------------------------------------------------------- /android/utils/setenv.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include 4 | 5 | #ifdef _WIN32 6 | int setenv(const char *name, const char *value, int overwrite) 7 | { 8 | int result = 0; 9 | if (overwrite || !getenv(name)) { 10 | size_t length = strlen(name) + strlen(value) + 2; 11 | char *string = malloc(length); 12 | snprintf(string, length, "%s=%s", name, value); 13 | result = putenv(string); 14 | } 15 | return result; 16 | } 17 | 18 | #endif 19 | -------------------------------------------------------------------------------- /android/utils/vector.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | 4 | extern void 5 | _avector_ensure( void** items, size_t itemSize, unsigned* pMaxItems, unsigned newCount ) 6 | { 7 | unsigned oldMax = *pMaxItems; 8 | 9 | if (newCount > oldMax) { 10 | unsigned newMax = oldMax; 11 | unsigned bigMax = UINT_MAX / itemSize; 12 | 13 | if (itemSize == 0) { 14 | AASSERT_FAIL("trying to reallocate array of 0-size items (count=%d)\n", newCount); 15 | } 16 | 17 | if (newCount > bigMax) { 18 | AASSERT_FAIL("trying to reallocate over-sized array of %d-bytes items (%d > %d)\n", 19 | itemSize, newCount, bigMax); 20 | } 21 | 22 | while (newMax < newCount) { 23 | unsigned newMax2 = newMax + (newMax >> 1) + 4; 24 | if (newMax2 < newMax || newMax2 > bigMax) 25 | newMax2 = bigMax; 26 | newMax = newMax2; 27 | } 28 | 29 | *items = _android_array_realloc( *items, itemSize, newMax ); 30 | *pMaxItems = newMax; 31 | } 32 | } 33 | 34 | -------------------------------------------------------------------------------- /arch_init.h: -------------------------------------------------------------------------------- 1 | #ifndef QEMU_ARCH_INIT_H 2 | #define QEMU_ARCH_INIT_H 3 | 4 | extern const char arch_config_name[]; 5 | 6 | enum { 7 | QEMU_ARCH_ALL = -1, 8 | QEMU_ARCH_ALPHA = 1, 9 | QEMU_ARCH_ARM = 2, 10 | QEMU_ARCH_CRIS = 4, 11 | QEMU_ARCH_I386 = 8, 12 | QEMU_ARCH_M68K = 16, 13 | QEMU_ARCH_LM32 = 32, 14 | QEMU_ARCH_MICROBLAZE = 64, 15 | QEMU_ARCH_MIPS = 128, 16 | QEMU_ARCH_PPC = 256, 17 | QEMU_ARCH_S390X = 512, 18 | QEMU_ARCH_SH4 = 1024, 19 | QEMU_ARCH_SPARC = 2048, 20 | }; 21 | 22 | extern const uint32_t arch_type; 23 | 24 | void select_soundhw(const char *optarg); 25 | void do_acpitable_option(const char *optarg); 26 | void do_smbios_option(const char *optarg); 27 | void cpudef_init(void); 28 | int audio_available(void); 29 | void audio_init(qemu_irq *isa_pic, PCIBus *pci_bus); 30 | int kvm_available(void); 31 | int xen_available(void); 32 | 33 | #endif 34 | -------------------------------------------------------------------------------- /audio/audio_pt_int.h: -------------------------------------------------------------------------------- 1 | #ifndef QEMU_AUDIO_PT_INT_H 2 | #define QEMU_AUDIO_PT_INT_H 3 | 4 | #include 5 | 6 | struct audio_pt { 7 | const char *drv; 8 | pthread_t thread; 9 | pthread_cond_t cond; 10 | pthread_mutex_t mutex; 11 | }; 12 | 13 | int audio_pt_init (struct audio_pt *, void *(*) (void *), void *, 14 | const char *, const char *); 15 | int audio_pt_fini (struct audio_pt *, const char *); 16 | int audio_pt_lock (struct audio_pt *, const char *); 17 | int audio_pt_unlock (struct audio_pt *, const char *); 18 | int audio_pt_wait (struct audio_pt *, const char *); 19 | int audio_pt_unlock_and_signal (struct audio_pt *, const char *); 20 | int audio_pt_join (struct audio_pt *, void **, const char *); 21 | 22 | #endif /* audio_pt_int.h */ 23 | -------------------------------------------------------------------------------- /audio/audio_win_int.h: -------------------------------------------------------------------------------- 1 | #ifndef AUDIO_WIN_INT_H 2 | #define AUDIO_WIN_INT_H 3 | 4 | int waveformat_from_audio_settings (WAVEFORMATEX *wfx, 5 | struct audsettings *as); 6 | 7 | int waveformat_to_audio_settings (WAVEFORMATEX *wfx, 8 | struct audsettings *as); 9 | 10 | #endif /* AUDIO_WIN_INT_H */ 11 | -------------------------------------------------------------------------------- /balloon.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Balloon 3 | * 4 | * Copyright IBM, Corp. 2008 5 | * 6 | * Authors: 7 | * Anthony Liguori 8 | * 9 | * This work is licensed under the terms of the GNU GPL, version 2. See 10 | * the COPYING file in the top-level directory. 11 | * 12 | */ 13 | 14 | #ifndef _QEMU_BALLOON_H 15 | #define _QEMU_BALLOON_H 16 | 17 | #include "cpu-defs.h" 18 | 19 | typedef ram_addr_t (QEMUBalloonEvent)(void *opaque, ram_addr_t target); 20 | 21 | void qemu_add_balloon_handler(QEMUBalloonEvent *func, void *opaque); 22 | 23 | void qemu_balloon(ram_addr_t target); 24 | 25 | ram_addr_t qemu_balloon_status(void); 26 | 27 | #endif 28 | -------------------------------------------------------------------------------- /bt-host.h: -------------------------------------------------------------------------------- 1 | #ifndef BT_HOST_H 2 | #define BT_HOST_H 3 | 4 | struct HCIInfo; 5 | 6 | /* bt-host.c */ 7 | struct HCIInfo *bt_host_hci(const char *id); 8 | 9 | #endif 10 | -------------------------------------------------------------------------------- /buffered_file.h: -------------------------------------------------------------------------------- 1 | /* 2 | * QEMU buffered QEMUFile 3 | * 4 | * Copyright IBM, Corp. 2008 5 | * 6 | * Authors: 7 | * Anthony Liguori 8 | * 9 | * This work is licensed under the terms of the GNU GPL, version 2. See 10 | * the COPYING file in the top-level directory. 11 | * 12 | */ 13 | 14 | #ifndef QEMU_BUFFERED_FILE_H 15 | #define QEMU_BUFFERED_FILE_H 16 | 17 | #include "hw/hw.h" 18 | 19 | typedef ssize_t (BufferedPutFunc)(void *opaque, const void *data, size_t size); 20 | typedef void (BufferedPutReadyFunc)(void *opaque); 21 | typedef void (BufferedWaitForUnfreezeFunc)(void *opaque); 22 | typedef int (BufferedCloseFunc)(void *opaque); 23 | 24 | QEMUFile *qemu_fopen_ops_buffered(void *opaque, size_t xfer_limit, 25 | BufferedPutFunc *put_buffer, 26 | BufferedPutReadyFunc *put_ready, 27 | BufferedWaitForUnfreezeFunc *wait_for_unfreeze, 28 | BufferedCloseFunc *close); 29 | 30 | #endif 31 | -------------------------------------------------------------------------------- /device_tree.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Header with function prototypes to help device tree manipulation using 3 | * libfdt. It also provides functions to read entries from device tree proc 4 | * interface. 5 | * 6 | * Copyright 2008 IBM Corporation. 7 | * Authors: Jerone Young 8 | * Hollis Blanchard 9 | * 10 | * This work is licensed under the GNU GPL license version 2 or later. 11 | * 12 | */ 13 | 14 | #ifndef __DEVICE_TREE_H__ 15 | #define __DEVICE_TREE_H__ 16 | 17 | void *load_device_tree(const char *filename_path, int *sizep); 18 | 19 | int qemu_devtree_setprop(void *fdt, const char *node_path, 20 | const char *property, void *val_array, int size); 21 | int qemu_devtree_setprop_cell(void *fdt, const char *node_path, 22 | const char *property, uint32_t val); 23 | int qemu_devtree_setprop_string(void *fdt, const char *node_path, 24 | const char *property, const char *string); 25 | 26 | #endif /* __DEVICE_TREE_H__ */ 27 | -------------------------------------------------------------------------------- /distrib/Makefile: -------------------------------------------------------------------------------- 1 | ZLIB_VERSION := zlib-1.2.3 2 | LIBPNG_VERSION := libpng-1.2.19 3 | 4 | ZLIB_DIR = $(SRC_PATH)/distrib/$(ZLIB_VERSION) 5 | LIBPNG_DIR := $(SRC_PATH)/distrib/$(LIBPNG_VERSION) 6 | 7 | include $(ZLIB_DIR)/Makefile 8 | include $(LIBPNG_DIR)/Makefile 9 | -------------------------------------------------------------------------------- /distrib/build-emulator.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # 3 | # this script is used to build a static version of the Android emulator 4 | # from our distribution package. 5 | # 6 | cd $(dirname $0) 7 | CURDIR=$(pwd) 8 | 9 | show_help= 10 | TARGET=emulator 11 | for opt; do 12 | optarg=`expr "x$opt" : 'x[^=]*=\(.*\)'` 13 | case "$opt" in 14 | --help|-h|-\?) show_help=yes 15 | ;; 16 | --target=*) TARGET=$optarg 17 | ;; 18 | esac 19 | done 20 | 21 | if [ -n "$show_help" ] ; then 22 | echo "usage: build-emulator [--target=FILEPATH]" 23 | exit 1 24 | fi 25 | 26 | # directory where we'll place the temporary SDL binaries 27 | LOCAL=$CURDIR/local 28 | 29 | cd $CURDIR/qemu 30 | if ! (./android-rebuild.sh); then 31 | echo "ERROR: could not build the emulator, please check the sources" 32 | fi 33 | 34 | cp objs/emulator $CURDIR/emulator 35 | -------------------------------------------------------------------------------- /distrib/jpeg-6b/MODULE_LICENSE_BSD_LIKE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0-14N/NDroid/4e5dbe69855a7fda8b74e61d9db5aa61e6ba9ee8/distrib/jpeg-6b/MODULE_LICENSE_BSD_LIKE -------------------------------------------------------------------------------- /distrib/jpeg-6b/ThirdPartyProject.prop: -------------------------------------------------------------------------------- 1 | # Copyright 2010 Google Inc. All Rights Reserved. 2 | #Fri Jul 16 10:03:09 PDT 2010 3 | currentVersion=8a 4 | version=6b 5 | isNative=true 6 | name=jpeg 7 | keywords=jpeg 8 | onDevice=true 9 | homepage=http\://www.ijg.org/ 10 | -------------------------------------------------------------------------------- /distrib/jpeg-6b/jconfig.dj: -------------------------------------------------------------------------------- 1 | /* jconfig.dj --- jconfig.h for DJGPP (Delorie's GNU C port) on MS-DOS. */ 2 | /* see jconfig.doc for explanations */ 3 | 4 | #define HAVE_PROTOTYPES 5 | #define HAVE_UNSIGNED_CHAR 6 | #define HAVE_UNSIGNED_SHORT 7 | /* #define void char */ 8 | /* #define const */ 9 | #undef CHAR_IS_UNSIGNED 10 | #define HAVE_STDDEF_H 11 | #define HAVE_STDLIB_H 12 | #undef NEED_BSD_STRINGS 13 | #undef NEED_SYS_TYPES_H 14 | #undef NEED_FAR_POINTERS /* DJGPP uses flat 32-bit addressing */ 15 | #undef NEED_SHORT_EXTERNAL_NAMES 16 | #undef INCOMPLETE_TYPES_BROKEN 17 | 18 | #ifdef JPEG_INTERNALS 19 | 20 | #undef RIGHT_SHIFT_IS_UNSIGNED 21 | 22 | #endif /* JPEG_INTERNALS */ 23 | 24 | #ifdef JPEG_CJPEG_DJPEG 25 | 26 | #define BMP_SUPPORTED /* BMP image file format */ 27 | #define GIF_SUPPORTED /* GIF image file format */ 28 | #define PPM_SUPPORTED /* PBMPLUS PPM/PGM image file format */ 29 | #undef RLE_SUPPORTED /* Utah RLE image file format */ 30 | #define TARGA_SUPPORTED /* Targa image file format */ 31 | 32 | #undef TWO_FILE_COMMANDLINE /* optional */ 33 | #define USE_SETMODE /* Needed to make one-file style work in DJGPP */ 34 | #undef NEED_SIGNAL_CATCHER /* Define this if you use jmemname.c */ 35 | #undef DONT_USE_B_MODE 36 | #undef PROGRESS_REPORT /* optional */ 37 | 38 | #endif /* JPEG_CJPEG_DJPEG */ 39 | -------------------------------------------------------------------------------- /distrib/jpeg-6b/jconfig.vms: -------------------------------------------------------------------------------- 1 | /* jconfig.vms --- jconfig.h for use on Digital VMS. */ 2 | /* see jconfig.doc for explanations */ 3 | 4 | #define HAVE_PROTOTYPES 5 | #define HAVE_UNSIGNED_CHAR 6 | #define HAVE_UNSIGNED_SHORT 7 | /* #define void char */ 8 | /* #define const */ 9 | #undef CHAR_IS_UNSIGNED 10 | #define HAVE_STDDEF_H 11 | #define HAVE_STDLIB_H 12 | #undef NEED_BSD_STRINGS 13 | #undef NEED_SYS_TYPES_H 14 | #undef NEED_FAR_POINTERS 15 | #undef NEED_SHORT_EXTERNAL_NAMES 16 | #undef INCOMPLETE_TYPES_BROKEN 17 | 18 | #ifdef JPEG_INTERNALS 19 | 20 | #undef RIGHT_SHIFT_IS_UNSIGNED 21 | 22 | #endif /* JPEG_INTERNALS */ 23 | 24 | #ifdef JPEG_CJPEG_DJPEG 25 | 26 | #define BMP_SUPPORTED /* BMP image file format */ 27 | #define GIF_SUPPORTED /* GIF image file format */ 28 | #define PPM_SUPPORTED /* PBMPLUS PPM/PGM image file format */ 29 | #undef RLE_SUPPORTED /* Utah RLE image file format */ 30 | #define TARGA_SUPPORTED /* Targa image file format */ 31 | 32 | #define TWO_FILE_COMMANDLINE /* Needed on VMS */ 33 | #undef NEED_SIGNAL_CATCHER 34 | #undef DONT_USE_B_MODE 35 | #undef PROGRESS_REPORT /* optional */ 36 | 37 | #endif /* JPEG_CJPEG_DJPEG */ 38 | -------------------------------------------------------------------------------- /distrib/jpeg-6b/jconfig.wat: -------------------------------------------------------------------------------- 1 | /* jconfig.wat --- jconfig.h for Watcom C/C++ on MS-DOS or OS/2. */ 2 | /* see jconfig.doc for explanations */ 3 | 4 | #define HAVE_PROTOTYPES 5 | #define HAVE_UNSIGNED_CHAR 6 | #define HAVE_UNSIGNED_SHORT 7 | /* #define void char */ 8 | /* #define const */ 9 | #define CHAR_IS_UNSIGNED 10 | #define HAVE_STDDEF_H 11 | #define HAVE_STDLIB_H 12 | #undef NEED_BSD_STRINGS 13 | #undef NEED_SYS_TYPES_H 14 | #undef NEED_FAR_POINTERS /* Watcom uses flat 32-bit addressing */ 15 | #undef NEED_SHORT_EXTERNAL_NAMES 16 | #undef INCOMPLETE_TYPES_BROKEN 17 | 18 | #ifdef JPEG_INTERNALS 19 | 20 | #undef RIGHT_SHIFT_IS_UNSIGNED 21 | 22 | #endif /* JPEG_INTERNALS */ 23 | 24 | #ifdef JPEG_CJPEG_DJPEG 25 | 26 | #define BMP_SUPPORTED /* BMP image file format */ 27 | #define GIF_SUPPORTED /* GIF image file format */ 28 | #define PPM_SUPPORTED /* PBMPLUS PPM/PGM image file format */ 29 | #undef RLE_SUPPORTED /* Utah RLE image file format */ 30 | #define TARGA_SUPPORTED /* Targa image file format */ 31 | 32 | #undef TWO_FILE_COMMANDLINE /* optional */ 33 | #define USE_SETMODE /* Needed to make one-file style work in Watcom */ 34 | #undef NEED_SIGNAL_CATCHER /* Define this if you use jmemname.c */ 35 | #undef DONT_USE_B_MODE 36 | #undef PROGRESS_REPORT /* optional */ 37 | 38 | #endif /* JPEG_CJPEG_DJPEG */ 39 | -------------------------------------------------------------------------------- /distrib/jpeg-6b/jversion.h: -------------------------------------------------------------------------------- 1 | /* 2 | * jversion.h 3 | * 4 | * Copyright (C) 1991-1998, Thomas G. Lane. 5 | * This file is part of the Independent JPEG Group's software. 6 | * For conditions of distribution and use, see the accompanying README file. 7 | * 8 | * This file contains software version identification. 9 | */ 10 | 11 | 12 | #define JVERSION "6b 27-Mar-1998" 13 | 14 | #define JCOPYRIGHT "Copyright (C) 1998, Thomas G. Lane" 15 | -------------------------------------------------------------------------------- /distrib/jpeg-6b/makvms.opt: -------------------------------------------------------------------------------- 1 | ! A pointer to the VAX/VMS C Run-Time Shareable Library. 2 | ! This file is needed by makefile.mms and makefile.vms, 3 | ! but only for the older VAX C compiler. DEC C does not need it. 4 | Sys$Library:VAXCRTL.EXE /Share 5 | -------------------------------------------------------------------------------- /distrib/jpeg-6b/sources.make: -------------------------------------------------------------------------------- 1 | # this file is included by various Makefiles and defines the set of sources used by our version of LibPng 2 | # 3 | LIBJPEG_SOURCES := jcapimin.c jcapistd.c jccoefct.c jccolor.c jcdctmgr.c jchuff.c \ 4 | jcinit.c jcmainct.c jcmarker.c jcmaster.c jcomapi.c jcparam.c \ 5 | jcphuff.c jcprepct.c jcsample.c jctrans.c jdapimin.c jdapistd.c \ 6 | jdatadst.c jdatasrc.c jdcoefct.c jdcolor.c jddctmgr.c jdhuff.c \ 7 | jdinput.c jdmainct.c jdmarker.c jdmaster.c jdmerge.c jdphuff.c \ 8 | jdpostct.c jdsample.c jdtrans.c jerror.c jfdctflt.c jfdctfst.c \ 9 | jfdctint.c jidctflt.c jidctfst.c jidctint.c jidctred.c jquant1.c \ 10 | jquant2.c jutils.c jmemmgr.c 11 | 12 | # jmem-ashmem.c doesn't compile for Windows. 13 | #LIBJPEG_CFLAGS += -DUSE_ANDROID_ASHMEM 14 | #LIBJPEG_SOURCES += jmem-ashmem.c 15 | 16 | # the original android memory manager. 17 | # use sdcard as libjpeg decoder's backing store 18 | LIBJPEG_SOURCES += jmem-android.c 19 | 20 | LIBJPEG_CFLAGS += -DAVOID_TABLES 21 | LIBJPEG_CFLAGS += -O3 -fstrict-aliasing 22 | #LIBJPEG_CFLAGS += -march=armv6j 23 | 24 | # enable tile based decode 25 | LIBJPEG_CFLAGS += -DANDROID_TILE_BASED_DECODE 26 | 27 | LIBJPEG_SOURCES := $(LIBJPEG_SOURCES:%=$(LIBJPEG_DIR)/%) 28 | 29 | -------------------------------------------------------------------------------- /distrib/jpeg-6b/testimg.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0-14N/NDroid/4e5dbe69855a7fda8b74e61d9db5aa61e6ba9ee8/distrib/jpeg-6b/testimg.bmp -------------------------------------------------------------------------------- /distrib/jpeg-6b/testimg.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0-14N/NDroid/4e5dbe69855a7fda8b74e61d9db5aa61e6ba9ee8/distrib/jpeg-6b/testimg.jpg -------------------------------------------------------------------------------- /distrib/jpeg-6b/testimg.ppm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0-14N/NDroid/4e5dbe69855a7fda8b74e61d9db5aa61e6ba9ee8/distrib/jpeg-6b/testimg.ppm -------------------------------------------------------------------------------- /distrib/jpeg-6b/testimgp.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0-14N/NDroid/4e5dbe69855a7fda8b74e61d9db5aa61e6ba9ee8/distrib/jpeg-6b/testimgp.jpg -------------------------------------------------------------------------------- /distrib/jpeg-6b/testorig.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0-14N/NDroid/4e5dbe69855a7fda8b74e61d9db5aa61e6ba9ee8/distrib/jpeg-6b/testorig.jpg -------------------------------------------------------------------------------- /distrib/jpeg-6b/testprog.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0-14N/NDroid/4e5dbe69855a7fda8b74e61d9db5aa61e6ba9ee8/distrib/jpeg-6b/testprog.jpg -------------------------------------------------------------------------------- /distrib/kernel-toolchain/android-kernel-toolchain-ar: -------------------------------------------------------------------------------- 1 | toolbox.sh -------------------------------------------------------------------------------- /distrib/kernel-toolchain/android-kernel-toolchain-as: -------------------------------------------------------------------------------- 1 | toolbox.sh -------------------------------------------------------------------------------- /distrib/kernel-toolchain/android-kernel-toolchain-gcc: -------------------------------------------------------------------------------- 1 | toolbox.sh -------------------------------------------------------------------------------- /distrib/kernel-toolchain/android-kernel-toolchain-ld: -------------------------------------------------------------------------------- 1 | toolbox.sh -------------------------------------------------------------------------------- /distrib/kernel-toolchain/android-kernel-toolchain-nm: -------------------------------------------------------------------------------- 1 | toolbox.sh -------------------------------------------------------------------------------- /distrib/kernel-toolchain/android-kernel-toolchain-objcopy: -------------------------------------------------------------------------------- 1 | toolbox.sh -------------------------------------------------------------------------------- /distrib/kernel-toolchain/android-kernel-toolchain-objdump: -------------------------------------------------------------------------------- 1 | toolbox.sh -------------------------------------------------------------------------------- /distrib/kernel-toolchain/android-kernel-toolchain-ranlib: -------------------------------------------------------------------------------- 1 | toolbox.sh -------------------------------------------------------------------------------- /distrib/kernel-toolchain/android-kernel-toolchain-strip: -------------------------------------------------------------------------------- 1 | toolbox.sh -------------------------------------------------------------------------------- /distrib/libpng-1.2.19/Makefile: -------------------------------------------------------------------------------- 1 | # Makefile used to compile libpng statically 2 | # you need to define ZLIB_INCLUDE to the Zlib include path 3 | # and PREFIX to the installation path 4 | # 5 | LIBPNG_LIB := $(SRC_PATH)/libpng.a 6 | LIBPNG_CFLAGS := -I$(LIBPNG_DIR) 7 | 8 | HOST_ARCH := $(shell uname -p) 9 | HOST_OS := $(shell uname -s) 10 | ifeq ($(HOST_OS),Darwin) 11 | HOST_OS := darwin 12 | endif 13 | 14 | include $(LIBPNG_DIR)/sources.make 15 | 16 | LIBPNG_OBJS := $(LIBPNG_SOURCES:%.c=%.o) 17 | 18 | $(LIBPNG_LIB): $(LIBPNG_OBJS) 19 | ar ru $@ $(LIBPNG_OBJS) 20 | 21 | $(LIBPNG_OBJS): CFLAGS += $(ZLIB_CFLAGS) $(LIBPNG_CFLAGS) 22 | 23 | clean-libpng: 24 | rm -f $(LIBPNG_OBJS) $(LIBPNG_LIB) 25 | 26 | -------------------------------------------------------------------------------- /distrib/libpng-1.2.19/pnggccrd.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0-14N/NDroid/4e5dbe69855a7fda8b74e61d9db5aa61e6ba9ee8/distrib/libpng-1.2.19/pnggccrd.c -------------------------------------------------------------------------------- /distrib/libpng-1.2.19/sources.make: -------------------------------------------------------------------------------- 1 | # this file is included by various Makefiles and defines the set of sources used by our version of LibPng 2 | # 3 | LIBPNG_SOURCES := png.c pngerror.c pngget.c pngmem.c pngpread.c pngread.c \ 4 | pngrio.c pngrtran.c pngrutil.c pngset.c pngtrans.c pngvcrd.c pngwio.c \ 5 | pngwrite.c pngwtran.c pngwutil.c 6 | 7 | # Enable MMX code path for x86, except on Darwin where it fails 8 | PNG_MMX := no 9 | ifeq ($(HOST_ARCH),x86) 10 | PNG_MMX := yes 11 | endif 12 | ifeq ($(HOST_OS),darwin) 13 | PNG_MMX := no 14 | endif 15 | 16 | ifeq ($(PNG_MMX),yes) 17 | LIBPNG_SOURCES += pnggccrd.c 18 | else 19 | LIBPNG_CFLAGS += -DPNG_NO_MMX_CODE 20 | endif 21 | 22 | LIBPNG_SOURCES := $(LIBPNG_SOURCES:%=$(LIBPNG_DIR)/%) 23 | 24 | -------------------------------------------------------------------------------- /distrib/sdl-1.2.12/BUGS: -------------------------------------------------------------------------------- 1 | 2 | Bugs are now managed in the SDL bug tracker, here: 3 | 4 | http://bugzilla.libsdl.org/ 5 | 6 | You may report bugs there, and search to see if a given issue has already 7 | been reported, discussed, and maybe even fixed. 8 | 9 | 10 | 11 | You may also find help at the SDL mailing list. Subscription information: 12 | 13 | http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org 14 | 15 | Bug reports are welcome here, but we really appreciate if you use Bugzilla, as 16 | bugs discussed on the mailing list may be forgotten or missed. 17 | 18 | 19 | -------------------------------------------------------------------------------- /distrib/sdl-1.2.12/CREDITS: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0-14N/NDroid/4e5dbe69855a7fda8b74e61d9db5aa61e6ba9ee8/distrib/sdl-1.2.12/CREDITS -------------------------------------------------------------------------------- /distrib/sdl-1.2.12/README.ANDROID: -------------------------------------------------------------------------------- 1 | This is a modified version of SDL 1.2.12 that is used by the Android QEMU emulator. 2 | The modifications are the following: 3 | 4 | To build it as a static library on Linux, OS X and Windows: 5 | 6 | ./android-configure.sh [--prefix=] 7 | make -j2 8 | make install 9 | 10 | -------------------------------------------------------------------------------- /distrib/sdl-1.2.12/include/SDL_byteorder.h: -------------------------------------------------------------------------------- 1 | /* 2 | SDL - Simple DirectMedia Layer 3 | Copyright (C) 1997-2006 Sam Lantinga 4 | 5 | This library is free software; you can redistribute it and/or 6 | modify it under the terms of the GNU Lesser General Public 7 | License as published by the Free Software Foundation; either 8 | version 2.1 of the License, or (at your option) any later version. 9 | 10 | This library is distributed in the hope that it will be useful, 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 13 | Lesser General Public License for more details. 14 | 15 | You should have received a copy of the GNU Lesser General Public 16 | License along with this library; if not, write to the Free Software 17 | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 18 | 19 | Sam Lantinga 20 | slouken@libsdl.org 21 | */ 22 | 23 | /* DEPRECATED */ 24 | #include "SDL_endian.h" 25 | -------------------------------------------------------------------------------- /distrib/sdl-1.2.12/include/SDL_copying.h: -------------------------------------------------------------------------------- 1 | /* 2 | SDL - Simple DirectMedia Layer 3 | Copyright (C) 1997-2006 Sam Lantinga 4 | 5 | This library is free software; you can redistribute it and/or 6 | modify it under the terms of the GNU Lesser General Public 7 | License as published by the Free Software Foundation; either 8 | version 2.1 of the License, or (at your option) any later version. 9 | 10 | This library is distributed in the hope that it will be useful, 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 13 | Lesser General Public License for more details. 14 | 15 | You should have received a copy of the GNU Lesser General Public 16 | License along with this library; if not, write to the Free Software 17 | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 18 | 19 | Sam Lantinga 20 | slouken@libsdl.org 21 | */ 22 | 23 | -------------------------------------------------------------------------------- /distrib/sdl-1.2.12/include/SDL_getenv.h: -------------------------------------------------------------------------------- 1 | /* 2 | SDL - Simple DirectMedia Layer 3 | Copyright (C) 1997-2006 Sam Lantinga 4 | 5 | This library is free software; you can redistribute it and/or 6 | modify it under the terms of the GNU Lesser General Public 7 | License as published by the Free Software Foundation; either 8 | version 2.1 of the License, or (at your option) any later version. 9 | 10 | This library is distributed in the hope that it will be useful, 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 13 | Lesser General Public License for more details. 14 | 15 | You should have received a copy of the GNU Lesser General Public 16 | License along with this library; if not, write to the Free Software 17 | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 18 | 19 | Sam Lantinga 20 | slouken@libsdl.org 21 | */ 22 | 23 | /* DEPRECATED */ 24 | #include "SDL_stdinc.h" 25 | -------------------------------------------------------------------------------- /distrib/sdl-1.2.12/include/SDL_name.h: -------------------------------------------------------------------------------- 1 | 2 | #ifndef _SDLname_h_ 3 | #define _SDLname_h_ 4 | 5 | #if defined(__STDC__) || defined(__cplusplus) 6 | #define NeedFunctionPrototypes 1 7 | #endif 8 | 9 | #define SDL_NAME(X) SDL_##X 10 | 11 | #endif /* _SDLname_h_ */ 12 | -------------------------------------------------------------------------------- /distrib/sdl-1.2.12/include/SDL_types.h: -------------------------------------------------------------------------------- 1 | /* 2 | SDL - Simple DirectMedia Layer 3 | Copyright (C) 1997-2006 Sam Lantinga 4 | 5 | This library is free software; you can redistribute it and/or 6 | modify it under the terms of the GNU Lesser General Public 7 | License as published by the Free Software Foundation; either 8 | version 2.1 of the License, or (at your option) any later version. 9 | 10 | This library is distributed in the hope that it will be useful, 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 13 | Lesser General Public License for more details. 14 | 15 | You should have received a copy of the GNU Lesser General Public 16 | License along with this library; if not, write to the Free Software 17 | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 18 | 19 | Sam Lantinga 20 | slouken@libsdl.org 21 | */ 22 | 23 | /* DEPRECATED */ 24 | #include "SDL_stdinc.h" 25 | -------------------------------------------------------------------------------- /distrib/sdl-1.2.12/src/SDL_fatal.h: -------------------------------------------------------------------------------- 1 | /* 2 | SDL - Simple DirectMedia Layer 3 | Copyright (C) 1997-2006 Sam Lantinga 4 | 5 | This library is free software; you can redistribute it and/or 6 | modify it under the terms of the GNU Lesser General Public 7 | License as published by the Free Software Foundation; either 8 | version 2.1 of the License, or (at your option) any later version. 9 | 10 | This library is distributed in the hope that it will be useful, 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 13 | Lesser General Public License for more details. 14 | 15 | You should have received a copy of the GNU Lesser General Public 16 | License along with this library; if not, write to the Free Software 17 | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 18 | 19 | Sam Lantinga 20 | slouken@libsdl.org 21 | */ 22 | #include "SDL_config.h" 23 | 24 | /* General fatal signal handling code for SDL */ 25 | 26 | extern void SDL_InstallParachute(void); 27 | extern void SDL_UninstallParachute(void); 28 | 29 | -------------------------------------------------------------------------------- /distrib/sdl-1.2.12/src/audio/SDL_audiodev_c.h: -------------------------------------------------------------------------------- 1 | /* 2 | SDL - Simple DirectMedia Layer 3 | Copyright (C) 1997-2006 Sam Lantinga 4 | 5 | This library is free software; you can redistribute it and/or 6 | modify it under the terms of the GNU Lesser General Public 7 | License as published by the Free Software Foundation; either 8 | version 2.1 of the License, or (at your option) any later version. 9 | 10 | This library is distributed in the hope that it will be useful, 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 13 | Lesser General Public License for more details. 14 | 15 | You should have received a copy of the GNU Lesser General Public 16 | License along with this library; if not, write to the Free Software 17 | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 18 | 19 | Sam Lantinga 20 | slouken@libsdl.org 21 | */ 22 | #include "SDL_config.h" 23 | 24 | /* Open the audio device, storing the pathname in 'path' */ 25 | extern int SDL_OpenAudioPath(char *path, int maxlen, int flags, int classic); 26 | 27 | -------------------------------------------------------------------------------- /distrib/sdl-1.2.12/src/audio/SDL_audiomem.h: -------------------------------------------------------------------------------- 1 | /* 2 | SDL - Simple DirectMedia Layer 3 | Copyright (C) 1997-2006 Sam Lantinga 4 | 5 | This library is free software; you can redistribute it and/or 6 | modify it under the terms of the GNU Lesser General Public 7 | License as published by the Free Software Foundation; either 8 | version 2.1 of the License, or (at your option) any later version. 9 | 10 | This library is distributed in the hope that it will be useful, 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 13 | Lesser General Public License for more details. 14 | 15 | You should have received a copy of the GNU Lesser General Public 16 | License along with this library; if not, write to the Free Software 17 | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 18 | 19 | Sam Lantinga 20 | slouken@libsdl.org 21 | */ 22 | #include "SDL_config.h" 23 | 24 | #define SDL_AllocAudioMem SDL_malloc 25 | #define SDL_FreeAudioMem SDL_free 26 | -------------------------------------------------------------------------------- /distrib/sdl-1.2.12/src/audio/SDL_mixer_MMX.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0-14N/NDroid/4e5dbe69855a7fda8b74e61d9db5aa61e6ba9ee8/distrib/sdl-1.2.12/src/audio/SDL_mixer_MMX.c -------------------------------------------------------------------------------- /distrib/sdl-1.2.12/src/audio/SDL_mixer_MMX.h: -------------------------------------------------------------------------------- 1 | /* 2 | headers for MMX assembler version of SDL_MixAudio 3 | Copyright 2002 Stephane Marchesin (stephane.marchesin@wanadoo.fr) 4 | This code is licensed under the LGPL (see COPYING for details) 5 | 6 | Assumes buffer size in bytes is a multiple of 16 7 | Assumes SDL_MIX_MAXVOLUME = 128 8 | */ 9 | #include "SDL_config.h" 10 | 11 | #if defined(__GNUC__) && defined(__i386__) && defined(SDL_ASSEMBLY_ROUTINES) 12 | void SDL_MixAudio_MMX_S16(char* ,char* ,unsigned int ,int ); 13 | void SDL_MixAudio_MMX_S8(char* ,char* ,unsigned int ,int ); 14 | #endif 15 | 16 | -------------------------------------------------------------------------------- /distrib/sdl-1.2.12/src/audio/mint/SDL_mintaudio_dma8.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0-14N/NDroid/4e5dbe69855a7fda8b74e61d9db5aa61e6ba9ee8/distrib/sdl-1.2.12/src/audio/mint/SDL_mintaudio_dma8.h -------------------------------------------------------------------------------- /distrib/sdl-1.2.12/src/audio/mint/SDL_mintaudio_it.S: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0-14N/NDroid/4e5dbe69855a7fda8b74e61d9db5aa61e6ba9ee8/distrib/sdl-1.2.12/src/audio/mint/SDL_mintaudio_it.S -------------------------------------------------------------------------------- /distrib/sdl-1.2.12/src/audio/mint/SDL_mintaudio_stfa.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0-14N/NDroid/4e5dbe69855a7fda8b74e61d9db5aa61e6ba9ee8/distrib/sdl-1.2.12/src/audio/mint/SDL_mintaudio_stfa.h -------------------------------------------------------------------------------- /distrib/sdl-1.2.12/src/audio/mint/SDL_mintaudio_xbios.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0-14N/NDroid/4e5dbe69855a7fda8b74e61d9db5aa61e6ba9ee8/distrib/sdl-1.2.12/src/audio/mint/SDL_mintaudio_xbios.c -------------------------------------------------------------------------------- /distrib/sdl-1.2.12/src/audio/nas/SDL_nasaudio.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0-14N/NDroid/4e5dbe69855a7fda8b74e61d9db5aa61e6ba9ee8/distrib/sdl-1.2.12/src/audio/nas/SDL_nasaudio.c -------------------------------------------------------------------------------- /distrib/sdl-1.2.12/src/audio/nas/SDL_nasaudio.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0-14N/NDroid/4e5dbe69855a7fda8b74e61d9db5aa61e6ba9ee8/distrib/sdl-1.2.12/src/audio/nas/SDL_nasaudio.h -------------------------------------------------------------------------------- /distrib/sdl-1.2.12/src/audio/sun/SDL_sunaudio.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0-14N/NDroid/4e5dbe69855a7fda8b74e61d9db5aa61e6ba9ee8/distrib/sdl-1.2.12/src/audio/sun/SDL_sunaudio.c -------------------------------------------------------------------------------- /distrib/sdl-1.2.12/src/cdrom/macos/SDL_syscdrom.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0-14N/NDroid/4e5dbe69855a7fda8b74e61d9db5aa61e6ba9ee8/distrib/sdl-1.2.12/src/cdrom/macos/SDL_syscdrom.c -------------------------------------------------------------------------------- /distrib/sdl-1.2.12/src/cdrom/macosx/SDLOSXCAGuard.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0-14N/NDroid/4e5dbe69855a7fda8b74e61d9db5aa61e6ba9ee8/distrib/sdl-1.2.12/src/cdrom/macosx/SDLOSXCAGuard.c -------------------------------------------------------------------------------- /distrib/sdl-1.2.12/src/cdrom/macosx/SDLOSXCAGuard.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0-14N/NDroid/4e5dbe69855a7fda8b74e61d9db5aa61e6ba9ee8/distrib/sdl-1.2.12/src/cdrom/macosx/SDLOSXCAGuard.h -------------------------------------------------------------------------------- /distrib/sdl-1.2.12/src/hermes/README: -------------------------------------------------------------------------------- 1 | HERMES 1.2.4 (c)1998 Christian Nentwich (brn) (c.nentwich@cs.ucl.ac.uk) 2 | and quite a few assembler routines (c) Glenn Fielder (gaffer@gaffer.org) 3 | 4 | This library and all the files enclosed in this package are free software 5 | under the terms of the GNU Library General Public License (LGPL). Please 6 | refer to the included file COPYING.LIB for the exact terms. 7 | ---------------------------------------------------------------------------- 8 | 9 | This is a stripped down version of HERMES, including only the x86 assembler 10 | converters, for use with Simple DirectMedia Layer. 11 | 12 | The full HERMES library is available at: http://hermes.terminal.at/ 13 | 14 | -------------------------------------------------------------------------------- /distrib/sdl-1.2.12/src/hermes/common.inc: -------------------------------------------------------------------------------- 1 | ; Some common macros for hermes nasm code 2 | 3 | %macro SDL_FUNC 1 4 | %ifdef HIDDEN_VISIBILITY 5 | GLOBAL %1:function hidden 6 | %else 7 | GLOBAL %1 8 | %endif 9 | %endmacro 10 | -------------------------------------------------------------------------------- /distrib/sdl-1.2.12/src/joystick/darwin/SDL_sysjoystick.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0-14N/NDroid/4e5dbe69855a7fda8b74e61d9db5aa61e6ba9ee8/distrib/sdl-1.2.12/src/joystick/darwin/SDL_sysjoystick.c -------------------------------------------------------------------------------- /distrib/sdl-1.2.12/src/main/dummy/SDL_dummy_main.c: -------------------------------------------------------------------------------- 1 | 2 | /* Include the SDL main definition header */ 3 | #include "SDL_main.h" 4 | 5 | #ifdef main 6 | #undef main 7 | int main(int argc, char *argv[]) 8 | { 9 | return(SDL_main(argc, argv)); 10 | } 11 | #else 12 | /* Nothing to do on this platform */ 13 | #endif 14 | -------------------------------------------------------------------------------- /distrib/sdl-1.2.12/src/main/macos/SDL.r: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0-14N/NDroid/4e5dbe69855a7fda8b74e61d9db5aa61e6ba9ee8/distrib/sdl-1.2.12/src/main/macos/SDL.r -------------------------------------------------------------------------------- /distrib/sdl-1.2.12/src/main/macos/SIZE.r: -------------------------------------------------------------------------------- 1 | 2 | #include "Processes.r" 3 | 4 | resource 'SIZE' (-1) { 5 | reserved, 6 | acceptSuspendResumeEvents, 7 | reserved, 8 | canBackground, 9 | doesActivateOnFGSwitch, 10 | backgroundAndForeground, 11 | getFrontClicks, 12 | ignoreAppDiedEvents, 13 | is32BitCompatible, 14 | isHighLevelEventAware, 15 | onlyLocalHLEvents, 16 | notStationeryAware, 17 | useTextEditServices, 18 | reserved, 19 | reserved, 20 | reserved, 21 | 5242880, // 5 megs minimum 22 | 5242880 // 5 megs maximum 23 | }; 24 | 25 | -------------------------------------------------------------------------------- /distrib/sdl-1.2.12/src/main/macos/exports/Makefile: -------------------------------------------------------------------------------- 1 | 2 | EXPORTS = SDL.x 3 | HEADERS = \ 4 | ../../../../include/SDL.h \ 5 | ../../../../include/SDL_active.h \ 6 | ../../../../include/SDL_audio.h \ 7 | ../../../../include/SDL_cdrom.h \ 8 | ../../../../include/SDL_copying.h \ 9 | ../../../../include/SDL_cpuinfo.h \ 10 | ../../../../include/SDL_endian.h \ 11 | ../../../../include/SDL_error.h \ 12 | ../../../../include/SDL_events.h \ 13 | ../../../../include/SDL_joystick.h \ 14 | ../../../../include/SDL_keyboard.h \ 15 | ../../../../include/SDL_keysym.h \ 16 | ../../../../include/SDL_loadso.h \ 17 | ../../../../include/SDL_mouse.h \ 18 | ../../../../include/SDL_mutex.h \ 19 | ../../../../include/SDL_quit.h \ 20 | ../../../../include/SDL_rwops.h \ 21 | ../../../../include/SDL_syswm.h \ 22 | ../../../../include/SDL_thread.h \ 23 | ../../../../include/SDL_timer.h \ 24 | ../../../../include/SDL_version.h \ 25 | ../../../../include/SDL_video.h 26 | 27 | 28 | all: $(EXPORTS) 29 | 30 | $(EXPORTS): Makefile gendef.pl $(HEADERS) 31 | perl gendef.pl $(HEADERS) >$@ || rm $@ 32 | 33 | clean: 34 | rm -f $(EXPORTS) 35 | -------------------------------------------------------------------------------- /distrib/sdl-1.2.12/src/main/macos/exports/gendef.pl: -------------------------------------------------------------------------------- 1 | #!/usr/bin/perl 2 | # 3 | # Program to take a set of header files and generate DLL export definitions 4 | 5 | # Special exports to ignore for this platform 6 | 7 | while ( ($file = shift(@ARGV)) ) { 8 | if ( ! defined(open(FILE, $file)) ) { 9 | warn "Couldn't open $file: $!\n"; 10 | next; 11 | } 12 | $printed_header = 0; 13 | $file =~ s,.*/,,; 14 | while () { 15 | if ( / DECLSPEC.* SDLCALL ([^\s\(]+)/ ) { 16 | if ( not $exclude{$1} ) { 17 | print "\t$1\n"; 18 | } 19 | } 20 | } 21 | close(FILE); 22 | } 23 | 24 | # Special exports to include for this platform 25 | print "\tSDL_putenv\n"; 26 | print "\tSDL_getenv\n"; 27 | print "\tSDL_qsort\n"; 28 | print "\tSDL_revcpy\n"; 29 | print "\tSDL_strlcpy\n"; 30 | print "\tSDL_strlcat\n"; 31 | print "\tSDL_strdup\n"; 32 | print "\tSDL_strrev\n"; 33 | print "\tSDL_strupr\n"; 34 | print "\tSDL_strlwr\n"; 35 | print "\tSDL_ltoa\n"; 36 | print "\tSDL_ultoa\n"; 37 | print "\tSDL_strcasecmp\n"; 38 | print "\tSDL_strncasecmp\n"; 39 | print "\tSDL_snprintf\n"; 40 | print "\tSDL_vsnprintf\n"; 41 | print "\tSDL_iconv\n"; 42 | print "\tSDL_iconv_string\n"; 43 | print "\tSDL_InitQuickDraw\n"; 44 | -------------------------------------------------------------------------------- /distrib/sdl-1.2.12/src/main/macosx/Info.plist.in: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | English 7 | CFBundleExecutable 8 | @EXECUTABLE_NAME@ 9 | CFBundleInfoDictionaryVersion 10 | 6.0 11 | CFBundleName 12 | @PACKAGE@ 13 | CFBundlePackageType 14 | APPL 15 | CFBundleShortVersionString 16 | @VERSION@ 17 | CFBundleSignature 18 | ???? 19 | NSMainNibFile 20 | SDLMain.nib 21 | NSPrincipalClass 22 | NSApplication 23 | 24 | 25 | -------------------------------------------------------------------------------- /distrib/sdl-1.2.12/src/main/macosx/SDLMain.h: -------------------------------------------------------------------------------- 1 | /* SDLMain.m - main entry point for our Cocoa-ized SDL app 2 | Initial Version: Darrell Walisser 3 | Non-NIB-Code & other changes: Max Horn 4 | 5 | Feel free to customize this file to suit your needs 6 | */ 7 | 8 | #import 9 | 10 | @interface SDLMain : NSObject 11 | @end 12 | -------------------------------------------------------------------------------- /distrib/sdl-1.2.12/src/main/macosx/SDLMain.nib/classes.nib: -------------------------------------------------------------------------------- 1 | { 2 | IBClasses = ( 3 | {CLASS = FirstResponder; LANGUAGE = ObjC; SUPERCLASS = NSObject; }, 4 | { 5 | ACTIONS = {makeFullscreen = id; quit = id; }; 6 | CLASS = SDLMain; 7 | LANGUAGE = ObjC; 8 | SUPERCLASS = NSObject; 9 | } 10 | ); 11 | IBVersion = 1; 12 | } 13 | -------------------------------------------------------------------------------- /distrib/sdl-1.2.12/src/main/macosx/SDLMain.nib/info.nib: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IBDocumentLocation 6 | 49 97 356 240 0 0 987 746 7 | IBMainMenuLocation 8 | 20 515 195 44 0 46 800 532 9 | IBUserGuides 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /distrib/sdl-1.2.12/src/main/macosx/SDLMain.nib/objects.nib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0-14N/NDroid/4e5dbe69855a7fda8b74e61d9db5aa61e6ba9ee8/distrib/sdl-1.2.12/src/main/macosx/SDLMain.nib/objects.nib -------------------------------------------------------------------------------- /distrib/sdl-1.2.12/src/main/macosx/info.nib: -------------------------------------------------------------------------------- 1 | // This is just a stub file to force automake to create the install directory 2 | -------------------------------------------------------------------------------- /distrib/sdl-1.2.12/src/main/win32/version.rc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0-14N/NDroid/4e5dbe69855a7fda8b74e61d9db5aa61e6ba9ee8/distrib/sdl-1.2.12/src/main/win32/version.rc -------------------------------------------------------------------------------- /distrib/sdl-1.2.12/src/thread/beos/SDL_systhread_c.h: -------------------------------------------------------------------------------- 1 | /* 2 | SDL - Simple DirectMedia Layer 3 | Copyright (C) 1997-2006 Sam Lantinga 4 | 5 | This library is free software; you can redistribute it and/or 6 | modify it under the terms of the GNU Lesser General Public 7 | License as published by the Free Software Foundation; either 8 | version 2.1 of the License, or (at your option) any later version. 9 | 10 | This library is distributed in the hope that it will be useful, 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 13 | Lesser General Public License for more details. 14 | 15 | You should have received a copy of the GNU Lesser General Public 16 | License along with this library; if not, write to the Free Software 17 | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 18 | 19 | Sam Lantinga 20 | slouken@libsdl.org 21 | */ 22 | #include "SDL_config.h" 23 | 24 | #include 25 | #include 26 | 27 | typedef thread_id SYS_ThreadHandle; 28 | 29 | /* Functions needed to work with system threads in other portions of SDL */ 30 | extern void SDL_MaskSignals(sigset_t *omask); 31 | extern void SDL_UnmaskSignals(sigset_t *omask); 32 | -------------------------------------------------------------------------------- /distrib/sdl-1.2.12/src/thread/dc/SDL_syscond_c.h: -------------------------------------------------------------------------------- 1 | /* 2 | SDL - Simple DirectMedia Layer 3 | Copyright (C) 1997-2006 Sam Lantinga 4 | 5 | This library is free software; you can redistribute it and/or 6 | modify it under the terms of the GNU Lesser General Public 7 | License as published by the Free Software Foundation; either 8 | version 2.1 of the License, or (at your option) any later version. 9 | 10 | This library is distributed in the hope that it will be useful, 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 13 | Lesser General Public License for more details. 14 | 15 | You should have received a copy of the GNU Lesser General Public 16 | License along with this library; if not, write to the Free Software 17 | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 18 | 19 | Sam Lantinga 20 | slouken@libsdl.org 21 | */ 22 | #include "SDL_config.h" 23 | 24 | -------------------------------------------------------------------------------- /distrib/sdl-1.2.12/src/thread/dc/SDL_sysmutex_c.h: -------------------------------------------------------------------------------- 1 | /* 2 | SDL - Simple DirectMedia Layer 3 | Copyright (C) 1997-2006 Sam Lantinga 4 | 5 | This library is free software; you can redistribute it and/or 6 | modify it under the terms of the GNU Lesser General Public 7 | License as published by the Free Software Foundation; either 8 | version 2.1 of the License, or (at your option) any later version. 9 | 10 | This library is distributed in the hope that it will be useful, 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 13 | Lesser General Public License for more details. 14 | 15 | You should have received a copy of the GNU Lesser General Public 16 | License along with this library; if not, write to the Free Software 17 | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 18 | 19 | Sam Lantinga 20 | slouken@libsdl.org 21 | */ 22 | #include "SDL_config.h" 23 | 24 | -------------------------------------------------------------------------------- /distrib/sdl-1.2.12/src/thread/dc/SDL_syssem_c.h: -------------------------------------------------------------------------------- 1 | /* 2 | SDL - Simple DirectMedia Layer 3 | Copyright (C) 1997-2006 Sam Lantinga 4 | 5 | This library is free software; you can redistribute it and/or 6 | modify it under the terms of the GNU Lesser General Public 7 | License as published by the Free Software Foundation; either 8 | version 2.1 of the License, or (at your option) any later version. 9 | 10 | This library is distributed in the hope that it will be useful, 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 13 | Lesser General Public License for more details. 14 | 15 | You should have received a copy of the GNU Lesser General Public 16 | License along with this library; if not, write to the Free Software 17 | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 18 | 19 | Sam Lantinga 20 | slouken@libsdl.org 21 | */ 22 | #include "SDL_config.h" 23 | 24 | -------------------------------------------------------------------------------- /distrib/sdl-1.2.12/src/thread/dc/SDL_systhread_c.h: -------------------------------------------------------------------------------- 1 | /* 2 | SDL - Simple DirectMedia Layer 3 | Copyright (C) 1997-2004 Sam Lantinga 4 | 5 | This library is free software; you can redistribute it and/or 6 | modify it under the terms of the GNU Library General Public 7 | License as published by the Free Software Foundation; either 8 | version 2 of the License, or (at your option) any later version. 9 | 10 | This library is distributed in the hope that it will be useful, 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 13 | Library General Public License for more details. 14 | 15 | You should have received a copy of the GNU Library General Public 16 | License along with this library; if not, write to the Free 17 | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 18 | 19 | Sam Lantinga 20 | slouken@libsdl.org 21 | */ 22 | #include "SDL_config.h" 23 | 24 | typedef struct kthread* SYS_ThreadHandle; 25 | -------------------------------------------------------------------------------- /distrib/sdl-1.2.12/src/thread/epoc/SDL_systhread_c.h: -------------------------------------------------------------------------------- 1 | /* 2 | SDL - Simple DirectMedia Layer 3 | Copyright (C) 1997-2004 Sam Lantinga 4 | 5 | This library is free software; you can redistribute it and/or 6 | modify it under the terms of the GNU Library General Public 7 | License as published by the Free Software Foundation; either 8 | version 2 of the License, or (at your option) any later version. 9 | 10 | This library is distributed in the hope that it will be useful, 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 13 | Library General Public License for more details. 14 | 15 | You should have received a copy of the GNU Library General Public 16 | License along with this library; if not, write to the Free 17 | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 18 | 19 | Sam Lantinga 20 | slouken@libsdl.org 21 | */ 22 | #include "SDL_config.h" 23 | 24 | /* 25 | SDL_systhread_c.h 26 | 27 | Epoc version by Markus Mertama (w@iki.fi) 28 | */ 29 | 30 | typedef int SYS_ThreadHandle; 31 | 32 | -------------------------------------------------------------------------------- /distrib/sdl-1.2.12/src/thread/generic/SDL_sysmutex_c.h: -------------------------------------------------------------------------------- 1 | /* 2 | SDL - Simple DirectMedia Layer 3 | Copyright (C) 1997-2006 Sam Lantinga 4 | 5 | This library is free software; you can redistribute it and/or 6 | modify it under the terms of the GNU Lesser General Public 7 | License as published by the Free Software Foundation; either 8 | version 2.1 of the License, or (at your option) any later version. 9 | 10 | This library is distributed in the hope that it will be useful, 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 13 | Lesser General Public License for more details. 14 | 15 | You should have received a copy of the GNU Lesser General Public 16 | License along with this library; if not, write to the Free Software 17 | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 18 | 19 | Sam Lantinga 20 | slouken@libsdl.org 21 | */ 22 | #include "SDL_config.h" 23 | 24 | -------------------------------------------------------------------------------- /distrib/sdl-1.2.12/src/thread/generic/SDL_systhread_c.h: -------------------------------------------------------------------------------- 1 | /* 2 | SDL - Simple DirectMedia Layer 3 | Copyright (C) 1997-2004 Sam Lantinga 4 | 5 | This library is free software; you can redistribute it and/or 6 | modify it under the terms of the GNU Library General Public 7 | License as published by the Free Software Foundation; either 8 | version 2 of the License, or (at your option) any later version. 9 | 10 | This library is distributed in the hope that it will be useful, 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 13 | Library General Public License for more details. 14 | 15 | You should have received a copy of the GNU Library General Public 16 | License along with this library; if not, write to the Free 17 | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 18 | 19 | Sam Lantinga 20 | slouken@libsdl.org 21 | */ 22 | #include "SDL_config.h" 23 | 24 | /* Stub until we implement threads on this platform */ 25 | typedef int SYS_ThreadHandle; 26 | -------------------------------------------------------------------------------- /distrib/sdl-1.2.12/src/thread/irix/SDL_systhread_c.h: -------------------------------------------------------------------------------- 1 | /* 2 | SDL - Simple DirectMedia Layer 3 | Copyright (C) 1997-2004 Sam Lantinga 4 | 5 | This library is free software; you can redistribute it and/or 6 | modify it under the terms of the GNU Library General Public 7 | License as published by the Free Software Foundation; either 8 | version 2 of the License, or (at your option) any later version. 9 | 10 | This library is distributed in the hope that it will be useful, 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 13 | Library General Public License for more details. 14 | 15 | You should have received a copy of the GNU Library General Public 16 | License along with this library; if not, write to the Free 17 | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 18 | 19 | Sam Lantinga 20 | slouken@libsdl.org 21 | */ 22 | #include "SDL_config.h" 23 | 24 | #include 25 | 26 | typedef pid_t SYS_ThreadHandle; 27 | 28 | -------------------------------------------------------------------------------- /distrib/sdl-1.2.12/src/thread/os2/SDL_syscond_c.h: -------------------------------------------------------------------------------- 1 | /* 2 | SDL - Simple DirectMedia Layer 3 | Copyright (C) 1997-2006 Sam Lantinga 4 | 5 | This library is free software; you can redistribute it and/or 6 | modify it under the terms of the GNU Lesser General Public 7 | License as published by the Free Software Foundation; either 8 | version 2.1 of the License, or (at your option) any later version. 9 | 10 | This library is distributed in the hope that it will be useful, 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 13 | Lesser General Public License for more details. 14 | 15 | You should have received a copy of the GNU Lesser General Public 16 | License along with this library; if not, write to the Free Software 17 | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 18 | 19 | Sam Lantinga 20 | slouken@libsdl.org 21 | */ 22 | #include "SDL_config.h" 23 | 24 | -------------------------------------------------------------------------------- /distrib/sdl-1.2.12/src/thread/os2/SDL_systhread_c.h: -------------------------------------------------------------------------------- 1 | /* 2 | SDL - Simple DirectMedia Layer 3 | Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002 Sam Lantinga 4 | 5 | This library is free software; you can redistribute it and/or 6 | modify it under the terms of the GNU Library General Public 7 | License as published by the Free Software Foundation; either 8 | version 2 of the License, or (at your option) any later version. 9 | 10 | This library is distributed in the hope that it will be useful, 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 13 | Library General Public License for more details. 14 | 15 | You should have received a copy of the GNU Library General Public 16 | License along with this library; if not, write to the Free 17 | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 18 | 19 | Sam Lantinga 20 | slouken@libsdl.org 21 | */ 22 | #include "SDL_config.h" 23 | 24 | #define INCL_DOSPROCESS 25 | #include 26 | 27 | typedef TID SYS_ThreadHandle; 28 | 29 | -------------------------------------------------------------------------------- /distrib/sdl-1.2.12/src/thread/pth/SDL_sysmutex_c.h: -------------------------------------------------------------------------------- 1 | /* 2 | SDL - Simple DirectMedia Layer 3 | Copyright (C) 1997-2006 Sam Lantinga 4 | 5 | This library is free software; you can redistribute it and/or 6 | modify it under the terms of the GNU Lesser General Public 7 | License as published by the Free Software Foundation; either 8 | version 2.1 of the License, or (at your option) any later version. 9 | 10 | This library is distributed in the hope that it will be useful, 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 13 | Lesser General Public License for more details. 14 | 15 | You should have received a copy of the GNU Lesser General Public 16 | License along with this library; if not, write to the Free Software 17 | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 18 | 19 | Sam Lantinga 20 | slouken@libsdl.org 21 | */ 22 | #include "SDL_config.h" 23 | 24 | #ifndef _SDL_SYSMUTEX_C_H_ 25 | #define _SDL_SYSMUTEX_C_H_ 26 | 27 | struct SDL_mutex { 28 | pth_mutex_t mutexpth_p; 29 | }; 30 | 31 | #endif /* _SDL_SYSMUTEX_C_H_ */ 32 | -------------------------------------------------------------------------------- /distrib/sdl-1.2.12/src/thread/pth/SDL_systhread_c.h: -------------------------------------------------------------------------------- 1 | /* 2 | SDL - Simple DirectMedia Layer 3 | Copyright (C) 1997-2004 Sam Lantinga 4 | 5 | This library is free software; you can redistribute it and/or 6 | modify it under the terms of the GNU Library General Public 7 | License as published by the Free Software Foundation; either 8 | version 2 of the License, or (at your option) any later version. 9 | 10 | This library is distributed in the hope that it will be useful, 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 13 | Library General Public License for more details. 14 | 15 | You should have received a copy of the GNU Library General Public 16 | License along with this library; if not, write to the Free 17 | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 18 | 19 | Sam Lantinga 20 | slouken@libsdl.org 21 | */ 22 | #include "SDL_config.h" 23 | 24 | #ifndef _SDL_SYSTHREAD_C_H_ 25 | #define _SDL_SYSTHREAD_C_H_ 26 | 27 | #include 28 | 29 | typedef pth_t SYS_ThreadHandle; 30 | 31 | #endif /* _SDL_SYSTHREAD_C_H_ */ 32 | -------------------------------------------------------------------------------- /distrib/sdl-1.2.12/src/thread/pthread/SDL_sysmutex_c.h: -------------------------------------------------------------------------------- 1 | /* 2 | SDL - Simple DirectMedia Layer 3 | Copyright (C) 1997-2006 Sam Lantinga 4 | 5 | This library is free software; you can redistribute it and/or 6 | modify it under the terms of the GNU Lesser General Public 7 | License as published by the Free Software Foundation; either 8 | version 2.1 of the License, or (at your option) any later version. 9 | 10 | This library is distributed in the hope that it will be useful, 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 13 | Lesser General Public License for more details. 14 | 15 | You should have received a copy of the GNU Lesser General Public 16 | License along with this library; if not, write to the Free Software 17 | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 18 | 19 | Sam Lantinga 20 | slouken@libsdl.org 21 | */ 22 | #include "SDL_config.h" 23 | 24 | #ifndef _SDL_mutex_c_h 25 | #define _SDL_mutex_c_h 26 | 27 | struct SDL_mutex { 28 | pthread_mutex_t id; 29 | }; 30 | 31 | #endif /* _SDL_mutex_c_h */ 32 | -------------------------------------------------------------------------------- /distrib/sdl-1.2.12/src/thread/pthread/SDL_systhread_c.h: -------------------------------------------------------------------------------- 1 | /* 2 | SDL - Simple DirectMedia Layer 3 | Copyright (C) 1997-2004 Sam Lantinga 4 | 5 | This library is free software; you can redistribute it and/or 6 | modify it under the terms of the GNU Library General Public 7 | License as published by the Free Software Foundation; either 8 | version 2 of the License, or (at your option) any later version. 9 | 10 | This library is distributed in the hope that it will be useful, 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 13 | Library General Public License for more details. 14 | 15 | You should have received a copy of the GNU Library General Public 16 | License along with this library; if not, write to the Free 17 | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 18 | 19 | Sam Lantinga 20 | slouken@libsdl.org 21 | */ 22 | #include "SDL_config.h" 23 | 24 | #include 25 | 26 | typedef pthread_t SYS_ThreadHandle; 27 | -------------------------------------------------------------------------------- /distrib/sdl-1.2.12/src/thread/riscos/SDL_sysmutex_c.h: -------------------------------------------------------------------------------- 1 | /* 2 | SDL - Simple DirectMedia Layer 3 | Copyright (C) 1997-2006 Sam Lantinga 4 | 5 | This library is free software; you can redistribute it and/or 6 | modify it under the terms of the GNU Lesser General Public 7 | License as published by the Free Software Foundation; either 8 | version 2.1 of the License, or (at your option) any later version. 9 | 10 | This library is distributed in the hope that it will be useful, 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 13 | Lesser General Public License for more details. 14 | 15 | You should have received a copy of the GNU Lesser General Public 16 | License along with this library; if not, write to the Free Software 17 | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 18 | 19 | Sam Lantinga 20 | slouken@libsdl.org 21 | */ 22 | #include "SDL_config.h" 23 | 24 | #ifndef _SDL_mutex_c_h 25 | #define _SDL_mutex_c_h 26 | 27 | #if !SDL_THREADS_DISABLED 28 | struct SDL_mutex { 29 | pthread_mutex_t id; 30 | }; 31 | #endif 32 | 33 | 34 | #endif /* _SDL_mutex_c_h */ 35 | -------------------------------------------------------------------------------- /distrib/sdl-1.2.12/src/thread/riscos/SDL_systhread_c.h: -------------------------------------------------------------------------------- 1 | /* 2 | SDL - Simple DirectMedia Layer 3 | Copyright (C) 1997-2004 Sam Lantinga 4 | 5 | This library is free software; you can redistribute it and/or 6 | modify it under the terms of the GNU Library General Public 7 | License as published by the Free Software Foundation; either 8 | version 2 of the License, or (at your option) any later version. 9 | 10 | This library is distributed in the hope that it will be useful, 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 13 | Library General Public License for more details. 14 | 15 | You should have received a copy of the GNU Library General Public 16 | License along with this library; if not, write to the Free 17 | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 18 | 19 | Sam Lantinga 20 | slouken@libsdl.org 21 | */ 22 | #include "SDL_config.h" 23 | 24 | #if SDL_THREADS_DISABLED 25 | 26 | typedef int SYS_ThreadHandle; 27 | 28 | #else 29 | 30 | #include 31 | 32 | typedef pthread_t SYS_ThreadHandle; 33 | 34 | #endif 35 | -------------------------------------------------------------------------------- /distrib/sdl-1.2.12/src/thread/win32/SDL_systhread_c.h: -------------------------------------------------------------------------------- 1 | /* 2 | SDL - Simple DirectMedia Layer 3 | Copyright (C) 1997-2004 Sam Lantinga 4 | 5 | This library is free software; you can redistribute it and/or 6 | modify it under the terms of the GNU Library General Public 7 | License as published by the Free Software Foundation; either 8 | version 2 of the License, or (at your option) any later version. 9 | 10 | This library is distributed in the hope that it will be useful, 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 13 | Library General Public License for more details. 14 | 15 | You should have received a copy of the GNU Library General Public 16 | License along with this library; if not, write to the Free 17 | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 18 | 19 | Sam Lantinga 20 | slouken@libsdl.org 21 | */ 22 | #include "SDL_config.h" 23 | 24 | #define WIN32_LEAN_AND_MEAN 25 | #include 26 | 27 | typedef HANDLE SYS_ThreadHandle; 28 | 29 | -------------------------------------------------------------------------------- /distrib/sdl-1.2.12/src/thread/win32/win_ce_semaphore.h: -------------------------------------------------------------------------------- 1 | /* win_ce_semaphore.h - header file to go with win_ce_semaphore.c */ 2 | 3 | typedef struct _SYNCH_HANDLE_STRUCTURE { 4 | HANDLE hEvent; 5 | HANDLE hMutex; 6 | HANDLE hSemph; 7 | LONG MaxCount; 8 | volatile LONG CurCount; 9 | LPCTSTR lpName; 10 | } SYNCH_HANDLE_STRUCTURE, *SYNCHHANDLE; 11 | 12 | #define SYNCH_HANDLE_SIZE sizeof (SYNCH_HANDLE_STRUCTURE) 13 | 14 | /* Error codes - all must have bit 29 set */ 15 | #define SYNCH_ERROR 0X20000000 /* EXERCISE - REFINE THE ERROR NUMBERS */ 16 | 17 | extern SYNCHHANDLE CreateSemaphoreCE (LPSECURITY_ATTRIBUTES, LONG, LONG, LPCTSTR); 18 | 19 | extern BOOL ReleaseSemaphoreCE (SYNCHHANDLE, LONG, LPLONG); 20 | extern DWORD WaitForSemaphoreCE (SYNCHHANDLE, DWORD); 21 | 22 | extern BOOL CloseSynchHandle (SYNCHHANDLE); 23 | -------------------------------------------------------------------------------- /distrib/sdl-1.2.12/src/timer/macos/FastTimes.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0-14N/NDroid/4e5dbe69855a7fda8b74e61d9db5aa61e6ba9ee8/distrib/sdl-1.2.12/src/timer/macos/FastTimes.c -------------------------------------------------------------------------------- /distrib/sdl-1.2.12/src/timer/mint/SDL_vbltimer_s.h: -------------------------------------------------------------------------------- 1 | /* 2 | SDL - Simple DirectMedia Layer 3 | Copyright (C) 1997-2006 Sam Lantinga 4 | 5 | This library is free software; you can redistribute it and/or 6 | modify it under the terms of the GNU Lesser General Public 7 | License as published by the Free Software Foundation; either 8 | version 2.1 of the License, or (at your option) any later version. 9 | 10 | This library is distributed in the hope that it will be useful, 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 13 | Lesser General Public License for more details. 14 | 15 | You should have received a copy of the GNU Lesser General Public 16 | License along with this library; if not, write to the Free Software 17 | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 18 | 19 | Sam Lantinga 20 | slouken@libsdl.org 21 | */ 22 | #include "SDL_config.h" 23 | 24 | /* 25 | * TOS/MiNT timer driver 26 | * based on vbl vector 27 | * 28 | * Patrice Mandin 29 | */ 30 | 31 | extern volatile long SDL_Atari_hz200; 32 | 33 | /* Functions prototypes */ 34 | extern int SDL_AtariVblInstall(void *newvector); 35 | extern void SDL_AtariVblUninstall(void *newvector); 36 | -------------------------------------------------------------------------------- /distrib/sdl-1.2.12/src/video/SDL_RLEaccel.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0-14N/NDroid/4e5dbe69855a7fda8b74e61d9db5aa61e6ba9ee8/distrib/sdl-1.2.12/src/video/SDL_RLEaccel.c -------------------------------------------------------------------------------- /distrib/sdl-1.2.12/src/video/SDL_leaks.h: -------------------------------------------------------------------------------- 1 | /* 2 | SDL - Simple DirectMedia Layer 3 | Copyright (C) 1997-2006 Sam Lantinga 4 | 5 | This library is free software; you can redistribute it and/or 6 | modify it under the terms of the GNU Lesser General Public 7 | License as published by the Free Software Foundation; either 8 | version 2.1 of the License, or (at your option) any later version. 9 | 10 | This library is distributed in the hope that it will be useful, 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 13 | Lesser General Public License for more details. 14 | 15 | You should have received a copy of the GNU Lesser General Public 16 | License along with this library; if not, write to the Free Software 17 | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 18 | 19 | Sam Lantinga 20 | slouken@libsdl.org 21 | */ 22 | #include "SDL_config.h" 23 | 24 | /* Define this if you want surface leak detection code enabled */ 25 | /*#define CHECK_LEAKS*/ 26 | 27 | /* Global variables used to check leaks in code using SDL */ 28 | 29 | #ifdef CHECK_LEAKS 30 | extern int surfaces_allocated; 31 | #endif 32 | -------------------------------------------------------------------------------- /distrib/sdl-1.2.12/src/video/SDL_stretch_c.h: -------------------------------------------------------------------------------- 1 | /* 2 | SDL - Simple DirectMedia Layer 3 | Copyright (C) 1997-2006 Sam Lantinga 4 | 5 | This library is free software; you can redistribute it and/or 6 | modify it under the terms of the GNU Lesser General Public 7 | License as published by the Free Software Foundation; either 8 | version 2.1 of the License, or (at your option) any later version. 9 | 10 | This library is distributed in the hope that it will be useful, 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 13 | Lesser General Public License for more details. 14 | 15 | You should have received a copy of the GNU Lesser General Public 16 | License along with this library; if not, write to the Free Software 17 | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 18 | 19 | Sam Lantinga 20 | slouken@libsdl.org 21 | */ 22 | #include "SDL_config.h" 23 | 24 | /* Perform a stretch blit between two surfaces of the same format. 25 | NOTE: This function is not safe to call from multiple threads! 26 | */ 27 | extern int SDL_SoftStretch(SDL_Surface *src, SDL_Rect *srcrect, 28 | SDL_Surface *dst, SDL_Rect *dstrect); 29 | 30 | -------------------------------------------------------------------------------- /distrib/sdl-1.2.12/src/video/Xext/README: -------------------------------------------------------------------------------- 1 | 2 | The reason these libraries are built outside of the standard XFree86 3 | tree is so that they can be linked as shared object code directly into 4 | SDL without causing any symbol collisions with code in the application. 5 | 6 | You can't link static library code into shared libraries on non-x86 7 | Linux platforms. Since these libraries haven't become standard yet, 8 | we'll just include them directly. 9 | 10 | These sources are synchronized with XFree86 4.2.1 11 | -------------------------------------------------------------------------------- /distrib/sdl-1.2.12/src/video/Xext/extensions/Xinerama.h: -------------------------------------------------------------------------------- 1 | /* $XFree86: xc/include/extensions/Xinerama.h,v 3.2 2000/03/01 01:04:20 dawes Exp $ */ 2 | 3 | #ifndef _Xinerama_h 4 | #define _Xinerama_h 5 | 6 | #include "SDL_name.h" 7 | 8 | typedef struct { 9 | int screen_number; 10 | short x_org; 11 | short y_org; 12 | short width; 13 | short height; 14 | } SDL_NAME(XineramaScreenInfo); 15 | 16 | Bool SDL_NAME(XineramaQueryExtension) ( 17 | Display *dpy, 18 | int *event_base, 19 | int *error_base 20 | ); 21 | 22 | Status SDL_NAME(XineramaQueryVersion)( 23 | Display *dpy, 24 | int *major, 25 | int *minor 26 | ); 27 | 28 | Bool SDL_NAME(XineramaIsActive)(Display *dpy); 29 | 30 | 31 | /* 32 | Returns the number of heads and a pointer to an array of 33 | structures describing the position and size of the individual 34 | heads. Returns NULL and number = 0 if Xinerama is not active. 35 | 36 | Returned array should be freed with XFree(). 37 | */ 38 | 39 | SDL_NAME(XineramaScreenInfo) * 40 | SDL_NAME(XineramaQueryScreens)( 41 | Display *dpy, 42 | int *number 43 | ); 44 | 45 | #endif /* _Xinerama_h */ 46 | 47 | -------------------------------------------------------------------------------- /distrib/sdl-1.2.12/src/video/aalib/SDL_aamouse.c: -------------------------------------------------------------------------------- 1 | /* 2 | SDL - Simple DirectMedia Layer 3 | Copyright (C) 1997-2006 Sam Lantinga 4 | 5 | This library is free software; you can redistribute it and/or 6 | modify it under the terms of the GNU Lesser General Public 7 | License as published by the Free Software Foundation; either 8 | version 2.1 of the License, or (at your option) any later version. 9 | 10 | This library is distributed in the hope that it will be useful, 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 13 | Lesser General Public License for more details. 14 | 15 | You should have received a copy of the GNU Lesser General Public 16 | License along with this library; if not, write to the Free Software 17 | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 18 | 19 | Sam Lantinga 20 | slouken@libsdl.org 21 | */ 22 | #include "SDL_config.h" 23 | 24 | #include 25 | 26 | #include "SDL_mouse.h" 27 | #include "../../events/SDL_events_c.h" 28 | 29 | #include "SDL_aamouse_c.h" 30 | 31 | 32 | /* The implementation dependent data for the window manager cursor */ 33 | struct WMcursor { 34 | int unused; 35 | }; 36 | -------------------------------------------------------------------------------- /distrib/sdl-1.2.12/src/video/aalib/SDL_aamouse_c.h: -------------------------------------------------------------------------------- 1 | /* 2 | SDL - Simple DirectMedia Layer 3 | Copyright (C) 1997-2006 Sam Lantinga 4 | 5 | This library is free software; you can redistribute it and/or 6 | modify it under the terms of the GNU Lesser General Public 7 | License as published by the Free Software Foundation; either 8 | version 2.1 of the License, or (at your option) any later version. 9 | 10 | This library is distributed in the hope that it will be useful, 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 13 | Lesser General Public License for more details. 14 | 15 | You should have received a copy of the GNU Lesser General Public 16 | License along with this library; if not, write to the Free Software 17 | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 18 | 19 | Sam Lantinga 20 | slouken@libsdl.org 21 | */ 22 | #include "SDL_config.h" 23 | 24 | #include "SDL_aavideo.h" 25 | 26 | /* Functions to be exported */ 27 | -------------------------------------------------------------------------------- /distrib/sdl-1.2.12/src/video/bwindow/SDL_sysevents_c.h: -------------------------------------------------------------------------------- 1 | /* 2 | SDL - Simple DirectMedia Layer 3 | Copyright (C) 1997-2006 Sam Lantinga 4 | 5 | This library is free software; you can redistribute it and/or 6 | modify it under the terms of the GNU Lesser General Public 7 | License as published by the Free Software Foundation; either 8 | version 2.1 of the License, or (at your option) any later version. 9 | 10 | This library is distributed in the hope that it will be useful, 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 13 | Lesser General Public License for more details. 14 | 15 | You should have received a copy of the GNU Lesser General Public 16 | License along with this library; if not, write to the Free Software 17 | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 18 | 19 | Sam Lantinga 20 | slouken@libsdl.org 21 | */ 22 | #include "SDL_config.h" 23 | 24 | #include "SDL_lowvideo.h" 25 | 26 | /* Variables and functions exported by SDL_sysevents.c to other parts 27 | of the native video subsystem (SDL_sysvideo.c) 28 | */ 29 | 30 | extern void BE_InitOSKeymap(_THIS); 31 | extern void BE_PumpEvents(_THIS); 32 | -------------------------------------------------------------------------------- /distrib/sdl-1.2.12/src/video/cybergfx/SDL_amigaevents_c.h: -------------------------------------------------------------------------------- 1 | /* 2 | SDL - Simple DirectMedia Layer 3 | Copyright (C) 1997-2006 Sam Lantinga 4 | 5 | This library is free software; you can redistribute it and/or 6 | modify it under the terms of the GNU Lesser General Public 7 | License as published by the Free Software Foundation; either 8 | version 2.1 of the License, or (at your option) any later version. 9 | 10 | This library is distributed in the hope that it will be useful, 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 13 | Lesser General Public License for more details. 14 | 15 | You should have received a copy of the GNU Lesser General Public 16 | License along with this library; if not, write to the Free Software 17 | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 18 | 19 | Sam Lantinga 20 | slouken@libsdl.org 21 | */ 22 | #include "SDL_config.h" 23 | 24 | #include "SDL_cgxvideo.h" 25 | 26 | /* Functions to be exported */ 27 | extern void amiga_InitOSKeymap(_THIS); 28 | extern void amiga_PumpEvents(_THIS); 29 | 30 | -------------------------------------------------------------------------------- /distrib/sdl-1.2.12/src/video/dc/SDL_dcevents_c.h: -------------------------------------------------------------------------------- 1 | /* 2 | SDL - Simple DirectMedia Layer 3 | Copyright (C) 1997-2006 Sam Lantinga 4 | 5 | This library is free software; you can redistribute it and/or 6 | modify it under the terms of the GNU Lesser General Public 7 | License as published by the Free Software Foundation; either 8 | version 2.1 of the License, or (at your option) any later version. 9 | 10 | This library is distributed in the hope that it will be useful, 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 13 | Lesser General Public License for more details. 14 | 15 | You should have received a copy of the GNU Lesser General Public 16 | License along with this library; if not, write to the Free Software 17 | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 18 | 19 | Sam Lantinga 20 | slouken@libsdl.org 21 | */ 22 | #include "SDL_config.h" 23 | 24 | #include "SDL_dcvideo.h" 25 | 26 | /* Variables and functions exported by SDL_sysevents.c to other parts 27 | of the native video subsystem (SDL_sysvideo.c) 28 | */ 29 | extern void DC_InitOSKeymap(_THIS); 30 | extern void DC_PumpEvents(_THIS); 31 | 32 | /* end of SDL_dcevents_c.h ... */ 33 | 34 | -------------------------------------------------------------------------------- /distrib/sdl-1.2.12/src/video/dc/SDL_dcmouse.c: -------------------------------------------------------------------------------- 1 | /* 2 | SDL - Simple DirectMedia Layer 3 | Copyright (C) 1997-2006 Sam Lantinga 4 | 5 | This library is free software; you can redistribute it and/or 6 | modify it under the terms of the GNU Lesser General Public 7 | License as published by the Free Software Foundation; either 8 | version 2.1 of the License, or (at your option) any later version. 9 | 10 | This library is distributed in the hope that it will be useful, 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 13 | Lesser General Public License for more details. 14 | 15 | You should have received a copy of the GNU Lesser General Public 16 | License along with this library; if not, write to the Free Software 17 | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 18 | 19 | Sam Lantinga 20 | slouken@libsdl.org 21 | */ 22 | #include "SDL_config.h" 23 | 24 | #include 25 | 26 | #include "SDL_mouse.h" 27 | #include "../../events/SDL_events_c.h" 28 | 29 | #include "SDL_dcmouse_c.h" 30 | 31 | 32 | /* The implementation dependent data for the window manager cursor */ 33 | struct WMcursor { 34 | int unused; 35 | }; 36 | -------------------------------------------------------------------------------- /distrib/sdl-1.2.12/src/video/dc/SDL_dcmouse_c.h: -------------------------------------------------------------------------------- 1 | /* 2 | SDL - Simple DirectMedia Layer 3 | Copyright (C) 1997-2006 Sam Lantinga 4 | 5 | This library is free software; you can redistribute it and/or 6 | modify it under the terms of the GNU Lesser General Public 7 | License as published by the Free Software Foundation; either 8 | version 2.1 of the License, or (at your option) any later version. 9 | 10 | This library is distributed in the hope that it will be useful, 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 13 | Lesser General Public License for more details. 14 | 15 | You should have received a copy of the GNU Lesser General Public 16 | License along with this library; if not, write to the Free Software 17 | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 18 | 19 | Sam Lantinga 20 | slouken@libsdl.org 21 | */ 22 | #include "SDL_config.h" 23 | 24 | #include "SDL_dcvideo.h" 25 | 26 | /* Functions to be exported */ 27 | -------------------------------------------------------------------------------- /distrib/sdl-1.2.12/src/video/default_cursor.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0-14N/NDroid/4e5dbe69855a7fda8b74e61d9db5aa61e6ba9ee8/distrib/sdl-1.2.12/src/video/default_cursor.h -------------------------------------------------------------------------------- /distrib/sdl-1.2.12/src/video/dga/SDL_dgaevents_c.h: -------------------------------------------------------------------------------- 1 | /* 2 | SDL - Simple DirectMedia Layer 3 | Copyright (C) 1997-2006 Sam Lantinga 4 | 5 | This library is free software; you can redistribute it and/or 6 | modify it under the terms of the GNU Lesser General Public 7 | License as published by the Free Software Foundation; either 8 | version 2.1 of the License, or (at your option) any later version. 9 | 10 | This library is distributed in the hope that it will be useful, 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 13 | Lesser General Public License for more details. 14 | 15 | You should have received a copy of the GNU Lesser General Public 16 | License along with this library; if not, write to the Free Software 17 | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 18 | 19 | Sam Lantinga 20 | slouken@libsdl.org 21 | */ 22 | #include "SDL_config.h" 23 | 24 | #include "SDL_dgavideo.h" 25 | 26 | /* Functions to be exported */ 27 | extern void DGA_PumpEvents(_THIS); 28 | extern void DGA_InitOSKeymap(_THIS); 29 | -------------------------------------------------------------------------------- /distrib/sdl-1.2.12/src/video/dga/SDL_dgamouse.c: -------------------------------------------------------------------------------- 1 | /* 2 | SDL - Simple DirectMedia Layer 3 | Copyright (C) 1997-2006 Sam Lantinga 4 | 5 | This library is free software; you can redistribute it and/or 6 | modify it under the terms of the GNU Lesser General Public 7 | License as published by the Free Software Foundation; either 8 | version 2.1 of the License, or (at your option) any later version. 9 | 10 | This library is distributed in the hope that it will be useful, 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 13 | Lesser General Public License for more details. 14 | 15 | You should have received a copy of the GNU Lesser General Public 16 | License along with this library; if not, write to the Free Software 17 | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 18 | 19 | Sam Lantinga 20 | slouken@libsdl.org 21 | */ 22 | #include "SDL_config.h" 23 | 24 | #include 25 | 26 | #include "SDL_mouse.h" 27 | #include "../../events/SDL_events_c.h" 28 | #include "SDL_dgavideo.h" 29 | #include "SDL_dgamouse_c.h" 30 | 31 | 32 | /* The implementation dependent data for the window manager cursor */ 33 | struct WMcursor { 34 | int unused; 35 | }; 36 | -------------------------------------------------------------------------------- /distrib/sdl-1.2.12/src/video/dga/SDL_dgamouse_c.h: -------------------------------------------------------------------------------- 1 | /* 2 | SDL - Simple DirectMedia Layer 3 | Copyright (C) 1997-2006 Sam Lantinga 4 | 5 | This library is free software; you can redistribute it and/or 6 | modify it under the terms of the GNU Lesser General Public 7 | License as published by the Free Software Foundation; either 8 | version 2.1 of the License, or (at your option) any later version. 9 | 10 | This library is distributed in the hope that it will be useful, 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 13 | Lesser General Public License for more details. 14 | 15 | You should have received a copy of the GNU Lesser General Public 16 | License along with this library; if not, write to the Free Software 17 | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 18 | 19 | Sam Lantinga 20 | slouken@libsdl.org 21 | */ 22 | #include "SDL_config.h" 23 | 24 | #include "SDL_dgavideo.h" 25 | 26 | /* Functions to be exported */ 27 | -------------------------------------------------------------------------------- /distrib/sdl-1.2.12/src/video/directfb/SDL_DirectFB_events.h: -------------------------------------------------------------------------------- 1 | /* 2 | SDL - Simple DirectMedia Layer 3 | Copyright (C) 1997-2006 Sam Lantinga 4 | 5 | This library is free software; you can redistribute it and/or 6 | modify it under the terms of the GNU Lesser General Public 7 | License as published by the Free Software Foundation; either 8 | version 2.1 of the License, or (at your option) any later version. 9 | 10 | This library is distributed in the hope that it will be useful, 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 13 | Lesser General Public License for more details. 14 | 15 | You should have received a copy of the GNU Lesser General Public 16 | License along with this library; if not, write to the Free Software 17 | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 18 | 19 | Sam Lantinga 20 | slouken@libsdl.org 21 | */ 22 | #include "SDL_config.h" 23 | 24 | #include "SDL_DirectFB_video.h" 25 | 26 | /* Functions to be exported */ 27 | extern void DirectFB_InitOSKeymap(_THIS); 28 | extern void DirectFB_PumpEvents(_THIS); 29 | 30 | -------------------------------------------------------------------------------- /distrib/sdl-1.2.12/src/video/dummy/SDL_nullmouse.c: -------------------------------------------------------------------------------- 1 | /* 2 | SDL - Simple DirectMedia Layer 3 | Copyright (C) 1997-2006 Sam Lantinga 4 | 5 | This library is free software; you can redistribute it and/or 6 | modify it under the terms of the GNU Lesser General Public 7 | License as published by the Free Software Foundation; either 8 | version 2.1 of the License, or (at your option) any later version. 9 | 10 | This library is distributed in the hope that it will be useful, 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 13 | Lesser General Public License for more details. 14 | 15 | You should have received a copy of the GNU Lesser General Public 16 | License along with this library; if not, write to the Free Software 17 | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 18 | 19 | Sam Lantinga 20 | slouken@libsdl.org 21 | */ 22 | #include "SDL_config.h" 23 | 24 | #include "SDL_mouse.h" 25 | #include "../../events/SDL_events_c.h" 26 | 27 | #include "SDL_nullmouse_c.h" 28 | 29 | 30 | /* The implementation dependent data for the window manager cursor */ 31 | struct WMcursor { 32 | int unused; 33 | }; 34 | -------------------------------------------------------------------------------- /distrib/sdl-1.2.12/src/video/dummy/SDL_nullmouse_c.h: -------------------------------------------------------------------------------- 1 | /* 2 | SDL - Simple DirectMedia Layer 3 | Copyright (C) 1997-2006 Sam Lantinga 4 | 5 | This library is free software; you can redistribute it and/or 6 | modify it under the terms of the GNU Lesser General Public 7 | License as published by the Free Software Foundation; either 8 | version 2.1 of the License, or (at your option) any later version. 9 | 10 | This library is distributed in the hope that it will be useful, 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 13 | Lesser General Public License for more details. 14 | 15 | You should have received a copy of the GNU Lesser General Public 16 | License along with this library; if not, write to the Free Software 17 | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 18 | 19 | Sam Lantinga 20 | slouken@libsdl.org 21 | */ 22 | #include "SDL_config.h" 23 | 24 | #include "SDL_nullvideo.h" 25 | 26 | /* Functions to be exported */ 27 | -------------------------------------------------------------------------------- /distrib/sdl-1.2.12/src/video/fbcon/SDL_fb3dfx.h: -------------------------------------------------------------------------------- 1 | /* 2 | SDL - Simple DirectMedia Layer 3 | Copyright (C) 1997-2006 Sam Lantinga 4 | 5 | This library is free software; you can redistribute it and/or 6 | modify it under the terms of the GNU Lesser General Public 7 | License as published by the Free Software Foundation; either 8 | version 2.1 of the License, or (at your option) any later version. 9 | 10 | This library is distributed in the hope that it will be useful, 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 13 | Lesser General Public License for more details. 14 | 15 | You should have received a copy of the GNU Lesser General Public 16 | License along with this library; if not, write to the Free Software 17 | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 18 | 19 | Sam Lantinga 20 | slouken@libsdl.org 21 | */ 22 | #include "SDL_config.h" 23 | 24 | /* 3Dfx hardware acceleration for the SDL framebuffer console driver */ 25 | 26 | #include "SDL_fbvideo.h" 27 | 28 | /* Set up the driver for 3Dfx acceleration */ 29 | extern void FB_3DfxAccel(_THIS, __u32 card); 30 | -------------------------------------------------------------------------------- /distrib/sdl-1.2.12/src/video/fbcon/SDL_fbmatrox.h: -------------------------------------------------------------------------------- 1 | /* 2 | SDL - Simple DirectMedia Layer 3 | Copyright (C) 1997-2006 Sam Lantinga 4 | 5 | This library is free software; you can redistribute it and/or 6 | modify it under the terms of the GNU Lesser General Public 7 | License as published by the Free Software Foundation; either 8 | version 2.1 of the License, or (at your option) any later version. 9 | 10 | This library is distributed in the hope that it will be useful, 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 13 | Lesser General Public License for more details. 14 | 15 | You should have received a copy of the GNU Lesser General Public 16 | License along with this library; if not, write to the Free Software 17 | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 18 | 19 | Sam Lantinga 20 | slouken@libsdl.org 21 | */ 22 | #include "SDL_config.h" 23 | 24 | /* Matrox hardware acceleration for the SDL framebuffer console driver */ 25 | 26 | #include "SDL_fbvideo.h" 27 | 28 | /* Set up the driver for Matrox acceleration */ 29 | extern void FB_MatroxAccel(_THIS, __u32 card); 30 | -------------------------------------------------------------------------------- /distrib/sdl-1.2.12/src/video/fbcon/SDL_fbmouse.c: -------------------------------------------------------------------------------- 1 | /* 2 | SDL - Simple DirectMedia Layer 3 | Copyright (C) 1997-2006 Sam Lantinga 4 | 5 | This library is free software; you can redistribute it and/or 6 | modify it under the terms of the GNU Lesser General Public 7 | License as published by the Free Software Foundation; either 8 | version 2.1 of the License, or (at your option) any later version. 9 | 10 | This library is distributed in the hope that it will be useful, 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 13 | Lesser General Public License for more details. 14 | 15 | You should have received a copy of the GNU Lesser General Public 16 | License along with this library; if not, write to the Free Software 17 | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 18 | 19 | Sam Lantinga 20 | slouken@libsdl.org 21 | */ 22 | #include "SDL_config.h" 23 | 24 | #include "SDL_mouse.h" 25 | #include "../../events/SDL_events_c.h" 26 | #include "SDL_fbvideo.h" 27 | #include "SDL_fbmouse_c.h" 28 | 29 | 30 | /* The implementation dependent data for the window manager cursor */ 31 | struct WMcursor { 32 | int unused; 33 | }; 34 | -------------------------------------------------------------------------------- /distrib/sdl-1.2.12/src/video/fbcon/SDL_fbmouse_c.h: -------------------------------------------------------------------------------- 1 | /* 2 | SDL - Simple DirectMedia Layer 3 | Copyright (C) 1997-2006 Sam Lantinga 4 | 5 | This library is free software; you can redistribute it and/or 6 | modify it under the terms of the GNU Lesser General Public 7 | License as published by the Free Software Foundation; either 8 | version 2.1 of the License, or (at your option) any later version. 9 | 10 | This library is distributed in the hope that it will be useful, 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 13 | Lesser General Public License for more details. 14 | 15 | You should have received a copy of the GNU Lesser General Public 16 | License along with this library; if not, write to the Free Software 17 | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 18 | 19 | Sam Lantinga 20 | slouken@libsdl.org 21 | */ 22 | #include "SDL_config.h" 23 | 24 | #include "SDL_fbvideo.h" 25 | 26 | /* Functions to be exported */ 27 | -------------------------------------------------------------------------------- /distrib/sdl-1.2.12/src/video/fbcon/out: -------------------------------------------------------------------------------- 1 | Index: SDL_fbevents.c 2 | =================================================================== 3 | --- SDL_fbevents.c (revision 2338) 4 | +++ SDL_fbevents.c (working copy) 5 | @@ -55,6 +55,7 @@ 6 | #define GPM_NODE_FIFO "/dev/gpmdata" 7 | #endif 8 | 9 | +/*#define DEBUG_KEYBOARD*/ 10 | /*#define DEBUG_MOUSE*/ 11 | 12 | /* The translation tables from a console scancode to a SDL keysym */ 13 | @@ -281,8 +282,15 @@ 14 | } 15 | if ( keyboard_fd < 0 ) { 16 | /* Last resort, maybe our tty is a usable VT */ 17 | - current_vt = 0; 18 | + struct vt_stat vtstate; 19 | + 20 | keyboard_fd = open("/dev/tty", O_RDWR); 21 | + 22 | + if ( ioctl(keyboard_fd, VT_GETSTATE, &vtstate) == 0 ) { 23 | + current_vt = vtstate.v_active; 24 | + } else { 25 | + current_vt = 0; 26 | + } 27 | } 28 | #ifdef DEBUG_KEYBOARD 29 | fprintf(stderr, "Current VT: %d\n", current_vt); 30 | -------------------------------------------------------------------------------- /distrib/sdl-1.2.12/src/video/ggi/SDL_ggievents_c.h: -------------------------------------------------------------------------------- 1 | /* 2 | SDL - Simple DirectMedia Layer 3 | Copyright (C) 1997-2006 Sam Lantinga 4 | 5 | This library is free software; you can redistribute it and/or 6 | modify it under the terms of the GNU Lesser General Public 7 | License as published by the Free Software Foundation; either 8 | version 2.1 of the License, or (at your option) any later version. 9 | 10 | This library is distributed in the hope that it will be useful, 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 13 | Lesser General Public License for more details. 14 | 15 | You should have received a copy of the GNU Lesser General Public 16 | License along with this library; if not, write to the Free Software 17 | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 18 | 19 | Sam Lantinga 20 | slouken@libsdl.org 21 | */ 22 | #include "SDL_config.h" 23 | 24 | #include "SDL_ggivideo.h" 25 | 26 | /* Functions to be exported */ 27 | extern void GGI_InitOSKeymap(_THIS); 28 | extern void GGI_PumpEvents(_THIS); 29 | 30 | -------------------------------------------------------------------------------- /distrib/sdl-1.2.12/src/video/ggi/SDL_ggimouse.c: -------------------------------------------------------------------------------- 1 | /* 2 | SDL - Simple DirectMedia Layer 3 | Copyright (C) 1997-2006 Sam Lantinga 4 | 5 | This library is free software; you can redistribute it and/or 6 | modify it under the terms of the GNU Lesser General Public 7 | License as published by the Free Software Foundation; either 8 | version 2.1 of the License, or (at your option) any later version. 9 | 10 | This library is distributed in the hope that it will be useful, 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 13 | Lesser General Public License for more details. 14 | 15 | You should have received a copy of the GNU Lesser General Public 16 | License along with this library; if not, write to the Free Software 17 | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 18 | 19 | Sam Lantinga 20 | slouken@libsdl.org 21 | */ 22 | #include "SDL_config.h" 23 | 24 | #include "SDL_mouse.h" 25 | #include "../../events/SDL_events_c.h" 26 | #include "SDL_ggimouse_c.h" 27 | 28 | 29 | /* The implementation dependent data for the window manager cursor */ 30 | struct WMcursor { 31 | int unused; 32 | }; 33 | -------------------------------------------------------------------------------- /distrib/sdl-1.2.12/src/video/ggi/SDL_ggimouse_c.h: -------------------------------------------------------------------------------- 1 | /* 2 | SDL - Simple DirectMedia Layer 3 | Copyright (C) 1997-2006 Sam Lantinga 4 | 5 | This library is free software; you can redistribute it and/or 6 | modify it under the terms of the GNU Lesser General Public 7 | License as published by the Free Software Foundation; either 8 | version 2.1 of the License, or (at your option) any later version. 9 | 10 | This library is distributed in the hope that it will be useful, 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 13 | Lesser General Public License for more details. 14 | 15 | You should have received a copy of the GNU Lesser General Public 16 | License along with this library; if not, write to the Free Software 17 | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 18 | 19 | Sam Lantinga 20 | slouken@libsdl.org 21 | */ 22 | #include "SDL_config.h" 23 | 24 | #include "SDL_ggivideo.h" 25 | 26 | /* Functions to be exported */ 27 | -------------------------------------------------------------------------------- /distrib/sdl-1.2.12/src/video/ipod/SDL_ipodvideo.h: -------------------------------------------------------------------------------- 1 | /* 2 | SDL - Simple DirectMedia Layer 3 | Copyright (C) 1997-2006 Sam Lantinga 4 | 5 | This library is free software; you can redistribute it and/or 6 | modify it under the terms of the GNU Lesser General Public 7 | License as published by the Free Software Foundation; either 8 | version 2.1 of the License, or (at your option) any later version. 9 | 10 | This library is distributed in the hope that it will be useful, 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 13 | Lesser General Public License for more details. 14 | 15 | You should have received a copy of the GNU Lesser General Public 16 | License along with this library; if not, write to the Free Software 17 | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 18 | 19 | Sam Lantinga 20 | slouken@libsdl.org 21 | */ 22 | #include "SDL_config.h" 23 | 24 | /* iPod SDL framebuffer driver 25 | * Joshua Oreman 26 | * Main header file 27 | */ 28 | 29 | #ifndef _SDL_ipodvideo_h 30 | #define _SDL_ipodvideo_h 31 | 32 | struct SDL_PrivateVideoData { 33 | char *buffer; 34 | int w, h; 35 | }; 36 | 37 | 38 | #endif 39 | -------------------------------------------------------------------------------- /distrib/sdl-1.2.12/src/video/maccommon/SDL_macevents_c.h: -------------------------------------------------------------------------------- 1 | /* 2 | SDL - Simple DirectMedia Layer 3 | Copyright (C) 1997-2006 Sam Lantinga 4 | 5 | This library is free software; you can redistribute it and/or 6 | modify it under the terms of the GNU Lesser General Public 7 | License as published by the Free Software Foundation; either 8 | version 2.1 of the License, or (at your option) any later version. 9 | 10 | This library is distributed in the hope that it will be useful, 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 13 | Lesser General Public License for more details. 14 | 15 | You should have received a copy of the GNU Lesser General Public 16 | License along with this library; if not, write to the Free Software 17 | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 18 | 19 | Sam Lantinga 20 | slouken@libsdl.org 21 | */ 22 | #include "SDL_config.h" 23 | 24 | #include "../macrom/SDL_romvideo.h" 25 | 26 | /* Functions exported by SDL_macevents.c for the video subsystem 27 | */ 28 | extern void Mac_InitEvents(_THIS); 29 | extern void Mac_QuitEvents(_THIS); 30 | 31 | extern void Mac_InitOSKeymap(_THIS); 32 | extern void Mac_PumpEvents(_THIS); 33 | -------------------------------------------------------------------------------- /distrib/sdl-1.2.12/src/video/macrom/SDL_romvideo.h: -------------------------------------------------------------------------------- 1 | /* 2 | SDL - Simple DirectMedia Layer 3 | Copyright (C) 1997-2006 Sam Lantinga 4 | 5 | This library is free software; you can redistribute it and/or 6 | modify it under the terms of the GNU Lesser General Public 7 | License as published by the Free Software Foundation; either 8 | version 2.1 of the License, or (at your option) any later version. 9 | 10 | This library is distributed in the hope that it will be useful, 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 13 | Lesser General Public License for more details. 14 | 15 | You should have received a copy of the GNU Lesser General Public 16 | License along with this library; if not, write to the Free Software 17 | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 18 | 19 | Sam Lantinga 20 | slouken@libsdl.org 21 | */ 22 | #include "SDL_config.h" 23 | 24 | #ifndef _SDL_romvideo_h 25 | #define _SDL_romvideo_h 26 | 27 | #include "../maccommon/SDL_lowvideo.h" 28 | 29 | #endif /* _SDL_romvideo_h */ 30 | -------------------------------------------------------------------------------- /distrib/sdl-1.2.12/src/video/nanox/SDL_nxevents_c.h: -------------------------------------------------------------------------------- 1 | /* 2 | SDL - Simple DirectMedia Layer 3 | Copyright (C) 1997-2004 Sam Lantinga 4 | Copyright (C) 2001 Hsieh-Fu Tsai 5 | 6 | This library is free software; you can redistribute it and/or 7 | modify it under the terms of the GNU Library General Public 8 | License as published by the Free Software Foundation; either 9 | version 2 of the License, or (at your option) any later version. 10 | 11 | This library is distributed in the hope that it will be useful, 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 14 | Library General Public License for more details. 15 | 16 | You should have received a copy of the GNU Library General Public 17 | License along with this library; if not, write to the Free 18 | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 19 | 20 | Sam Lantinga 21 | slouken@libsdl.org 22 | 23 | Hsieh-Fu Tsai 24 | clare@setabox.com 25 | */ 26 | #include "SDL_config.h" 27 | 28 | #include "SDL_nxvideo.h" 29 | 30 | // Functions to be exported 31 | extern void NX_InitOSKeymap (_THIS) ; 32 | extern void NX_PumpEvents (_THIS) ; 33 | -------------------------------------------------------------------------------- /distrib/sdl-1.2.12/src/video/nanox/SDL_nxwm_c.h: -------------------------------------------------------------------------------- 1 | /* 2 | SDL - Simple DirectMedia Layer 3 | Copyright (C) 1997-2004 Sam Lantinga 4 | Copyright (C) 2001 Hsieh-Fu Tsai 5 | 6 | This library is free software; you can redistribute it and/or 7 | modify it under the terms of the GNU Library General Public 8 | License as published by the Free Software Foundation; either 9 | version 2 of the License, or (at your option) any later version. 10 | 11 | This library is distributed in the hope that it will be useful, 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 14 | Library General Public License for more details. 15 | 16 | You should have received a copy of the GNU Library General Public 17 | License along with this library; if not, write to the Free 18 | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 19 | 20 | Sam Lantinga 21 | slouken@libsdl.org 22 | 23 | Hsieh-Fu Tsai 24 | clare@setabox.com 25 | */ 26 | #include "SDL_config.h" 27 | 28 | #include "SDL_nxvideo.h" 29 | 30 | // Functions to be exported 31 | extern void NX_SetCaption (_THIS, const char * title, const char * icon) ; 32 | extern int NX_GetWMInfo (_THIS, SDL_SysWMinfo * info) ; 33 | -------------------------------------------------------------------------------- /distrib/sdl-1.2.12/src/video/qtopia/SDL_sysevents_c.h: -------------------------------------------------------------------------------- 1 | /* 2 | SDL - Simple DirectMedia Layer 3 | Copyright (C) 1997-2006 Sam Lantinga 4 | 5 | This library is free software; you can redistribute it and/or 6 | modify it under the terms of the GNU Lesser General Public 7 | License as published by the Free Software Foundation; either 8 | version 2.1 of the License, or (at your option) any later version. 9 | 10 | This library is distributed in the hope that it will be useful, 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 13 | Lesser General Public License for more details. 14 | 15 | You should have received a copy of the GNU Lesser General Public 16 | License along with this library; if not, write to the Free Software 17 | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 18 | 19 | Sam Lantinga 20 | slouken@libsdl.org 21 | */ 22 | #include "SDL_config.h" 23 | 24 | #include "SDL_lowvideo.h" 25 | 26 | /* Variables and functions exported by SDL_sysevents.c to other parts 27 | of the native video subsystem (SDL_sysvideo.c) 28 | */ 29 | 30 | extern void QT_InitOSKeymap(_THIS); 31 | extern void QT_PumpEvents(_THIS); 32 | -------------------------------------------------------------------------------- /distrib/sdl-1.2.12/src/video/qtopia/SDL_sysvideo.cc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0-14N/NDroid/4e5dbe69855a7fda8b74e61d9db5aa61e6ba9ee8/distrib/sdl-1.2.12/src/video/qtopia/SDL_sysvideo.cc -------------------------------------------------------------------------------- /distrib/sdl-1.2.12/src/video/qtopia/SDL_syswm.cc: -------------------------------------------------------------------------------- 1 | /* 2 | SDL - Simple DirectMedia Layer 3 | Copyright (C) 1997-2006 Sam Lantinga 4 | 5 | This library is free software; you can redistribute it and/or 6 | modify it under the terms of the GNU Lesser General Public 7 | License as published by the Free Software Foundation; either 8 | version 2.1 of the License, or (at your option) any later version. 9 | 10 | This library is distributed in the hope that it will be useful, 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 13 | Lesser General Public License for more details. 14 | 15 | You should have received a copy of the GNU Lesser General Public 16 | License along with this library; if not, write to the Free Software 17 | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 18 | 19 | Sam Lantinga 20 | slouken@libsdl.org 21 | */ 22 | #include "SDL_config.h" 23 | 24 | #include "SDL_QWin.h" 25 | 26 | extern "C" { 27 | 28 | #include "SDL_syswm_c.h" 29 | 30 | void QT_SetWMCaption(_THIS, const char *title, const char *icon) 31 | { 32 | SDL_Win->setCaption(title); 33 | } 34 | 35 | }; /* Extern C */ 36 | -------------------------------------------------------------------------------- /distrib/sdl-1.2.12/src/video/qtopia/SDL_syswm_c.h: -------------------------------------------------------------------------------- 1 | /* 2 | SDL - Simple DirectMedia Layer 3 | Copyright (C) 1997-2006 Sam Lantinga 4 | 5 | This library is free software; you can redistribute it and/or 6 | modify it under the terms of the GNU Lesser General Public 7 | License as published by the Free Software Foundation; either 8 | version 2.1 of the License, or (at your option) any later version. 9 | 10 | This library is distributed in the hope that it will be useful, 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 13 | Lesser General Public License for more details. 14 | 15 | You should have received a copy of the GNU Lesser General Public 16 | License along with this library; if not, write to the Free Software 17 | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 18 | 19 | Sam Lantinga 20 | slouken@libsdl.org 21 | */ 22 | #include "SDL_config.h" 23 | 24 | #include "SDL_lowvideo.h" 25 | 26 | /* Functions to be exported */ 27 | extern void QT_SetWMCaption(_THIS, const char *title, const char *icon); 28 | 29 | -------------------------------------------------------------------------------- /distrib/sdl-1.2.12/src/video/quartz/SDL_QuartzWM.h: -------------------------------------------------------------------------------- 1 | /* 2 | SDL - Simple DirectMedia Layer 3 | Copyright (C) 1997-2003 Sam Lantinga 4 | 5 | This library is free software; you can redistribute it and/or 6 | modify it under the terms of the GNU Library General Public 7 | License as published by the Free Software Foundation; either 8 | version 2 of the License, or (at your option) any later version. 9 | 10 | This library is distributed in the hope that it will be useful, 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 13 | Library General Public License for more details. 14 | 15 | You should have received a copy of the GNU Library General Public 16 | License along with this library; if not, write to the Free 17 | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 18 | 19 | Sam Lantinga 20 | slouken@libsdl.org 21 | */ 22 | 23 | struct WMcursor { 24 | NSCursor *nscursor; 25 | }; 26 | 27 | void QZ_UpdateCursor(_THIS); 28 | int QZ_GetWMInfo (_THIS, SDL_SysWMinfo *info); 29 | -------------------------------------------------------------------------------- /distrib/sdl-1.2.12/src/video/riscos/SDL_riscosevents.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0-14N/NDroid/4e5dbe69855a7fda8b74e61d9db5aa61e6ba9ee8/distrib/sdl-1.2.12/src/video/riscos/SDL_riscosevents.c -------------------------------------------------------------------------------- /distrib/sdl-1.2.12/src/video/svga/SDL_svgamouse.c: -------------------------------------------------------------------------------- 1 | /* 2 | SDL - Simple DirectMedia Layer 3 | Copyright (C) 1997-2006 Sam Lantinga 4 | 5 | This library is free software; you can redistribute it and/or 6 | modify it under the terms of the GNU Lesser General Public 7 | License as published by the Free Software Foundation; either 8 | version 2.1 of the License, or (at your option) any later version. 9 | 10 | This library is distributed in the hope that it will be useful, 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 13 | Lesser General Public License for more details. 14 | 15 | You should have received a copy of the GNU Lesser General Public 16 | License along with this library; if not, write to the Free Software 17 | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 18 | 19 | Sam Lantinga 20 | slouken@libsdl.org 21 | */ 22 | #include "SDL_config.h" 23 | 24 | #include "SDL_mouse.h" 25 | #include "../../events/SDL_events_c.h" 26 | #include "SDL_svgavideo.h" 27 | #include "SDL_svgamouse_c.h" 28 | 29 | 30 | /* The implementation dependent data for the window manager cursor */ 31 | struct WMcursor { 32 | int unused; 33 | }; 34 | -------------------------------------------------------------------------------- /distrib/sdl-1.2.12/src/video/svga/SDL_svgamouse_c.h: -------------------------------------------------------------------------------- 1 | /* 2 | SDL - Simple DirectMedia Layer 3 | Copyright (C) 1997-2006 Sam Lantinga 4 | 5 | This library is free software; you can redistribute it and/or 6 | modify it under the terms of the GNU Lesser General Public 7 | License as published by the Free Software Foundation; either 8 | version 2.1 of the License, or (at your option) any later version. 9 | 10 | This library is distributed in the hope that it will be useful, 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 13 | Lesser General Public License for more details. 14 | 15 | You should have received a copy of the GNU Lesser General Public 16 | License along with this library; if not, write to the Free Software 17 | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 18 | 19 | Sam Lantinga 20 | slouken@libsdl.org 21 | */ 22 | #include "SDL_config.h" 23 | 24 | #include "SDL_svgavideo.h" 25 | 26 | /* Functions to be exported */ 27 | -------------------------------------------------------------------------------- /distrib/sdl-1.2.12/src/video/wscons/SDL_wsconsmouse.c: -------------------------------------------------------------------------------- 1 | /* 2 | SDL - Simple DirectMedia Layer 3 | Copyright (C) 1997-2006 Sam Lantinga 4 | 5 | This library is free software; you can redistribute it and/or 6 | modify it under the terms of the GNU Lesser General Public 7 | License as published by the Free Software Foundation; either 8 | version 2.1 of the License, or (at your option) any later version. 9 | 10 | This library is distributed in the hope that it will be useful, 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 13 | Lesser General Public License for more details. 14 | 15 | You should have received a copy of the GNU Lesser General Public 16 | License along with this library; if not, write to the Free Software 17 | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 18 | 19 | Sam Lantinga 20 | slouken@libsdl.org 21 | */ 22 | #include "SDL_config.h" 23 | 24 | #include "SDL_mouse.h" 25 | #include "../../events/SDL_events_c.h" 26 | 27 | #include "SDL_wsconsmouse_c.h" 28 | 29 | 30 | /* The implementation dependent data for the window manager cursor */ 31 | struct WMcursor { 32 | int unused; 33 | }; 34 | -------------------------------------------------------------------------------- /distrib/sdl-1.2.12/src/video/wscons/SDL_wsconsmouse_c.h: -------------------------------------------------------------------------------- 1 | /* 2 | SDL - Simple DirectMedia Layer 3 | Copyright (C) 1997-2006 Sam Lantinga 4 | 5 | This library is free software; you can redistribute it and/or 6 | modify it under the terms of the GNU Lesser General Public 7 | License as published by the Free Software Foundation; either 8 | version 2.1 of the License, or (at your option) any later version. 9 | 10 | This library is distributed in the hope that it will be useful, 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 13 | Lesser General Public License for more details. 14 | 15 | You should have received a copy of the GNU Lesser General Public 16 | License along with this library; if not, write to the Free Software 17 | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 18 | 19 | Sam Lantinga 20 | slouken@libsdl.org 21 | */ 22 | #include "SDL_config.h" 23 | 24 | #include "SDL_wsconsvideo.h" 25 | 26 | /* Functions to be exported */ 27 | -------------------------------------------------------------------------------- /distrib/sdl-1.2.12/src/video/x11/SDL_x11dga_c.h: -------------------------------------------------------------------------------- 1 | /* 2 | SDL - Simple DirectMedia Layer 3 | Copyright (C) 1997-2006 Sam Lantinga 4 | 5 | This library is free software; you can redistribute it and/or 6 | modify it under the terms of the GNU Lesser General Public 7 | License as published by the Free Software Foundation; either 8 | version 2.1 of the License, or (at your option) any later version. 9 | 10 | This library is distributed in the hope that it will be useful, 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 13 | Lesser General Public License for more details. 14 | 15 | You should have received a copy of the GNU Lesser General Public 16 | License along with this library; if not, write to the Free Software 17 | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 18 | 19 | Sam Lantinga 20 | slouken@libsdl.org 21 | */ 22 | #include "SDL_config.h" 23 | 24 | #include "SDL_x11video.h" 25 | 26 | /* Different DGA access states */ 27 | #define DGA_GRAPHICS 0x01 28 | #define DGA_KEYBOARD 0x02 29 | #define DGA_MOUSE 0x04 30 | 31 | extern void X11_EnableDGAMouse(_THIS); 32 | extern void X11_CheckDGAMouse(_THIS); 33 | extern void X11_DisableDGAMouse(_THIS); 34 | -------------------------------------------------------------------------------- /distrib/zlib-1.2.3/Makefile: -------------------------------------------------------------------------------- 1 | # Makefile used to compile zlib statically 2 | # 3 | ZLIB_LIB := $(SRC_PATH)/libz.a 4 | ZLIB_CFLAGS := -I$(ZLIB_DIR) $(MY_CFLAGS) 5 | 6 | include $(ZLIB_DIR)/sources.make 7 | ZLIB_OBJS := $(ZLIB_SOURCES:%.c=%.o) 8 | 9 | $(ZLIB_LIB): $(ZLIB_OBJS) 10 | ar ru $(ZLIB_LIB) $(MY_LDLIBS) $(ZLIB_OBJS) 11 | 12 | $(ZLIB_OBJS): CFLAGS += $(ZLIB_CFLAGS) 13 | 14 | clean-zlib: 15 | rm -f $(ZLIB_OBJS) $(zlib_lib) 16 | -------------------------------------------------------------------------------- /distrib/zlib-1.2.3/inffast.h: -------------------------------------------------------------------------------- 1 | /* inffast.h -- header to use inffast.c 2 | * Copyright (C) 1995-2003 Mark Adler 3 | * For conditions of distribution and use, see copyright notice in zlib.h 4 | */ 5 | 6 | /* WARNING: this file should *not* be used by applications. It is 7 | part of the implementation of the compression library and is 8 | subject to change. Applications should only use zlib.h. 9 | */ 10 | 11 | void inflate_fast OF((z_streamp strm, unsigned start)); 12 | -------------------------------------------------------------------------------- /distrib/zlib-1.2.3/sources.make: -------------------------------------------------------------------------------- 1 | # this is included by various Makefiles 2 | ZLIB_SOURCES := adler32.c compress.c crc32.c deflate.c gzio.c infback.c inffast.c inflate.c inftrees.c trees.c uncompr.c zutil.c 3 | ZLIB_SOURCES := $(ZLIB_SOURCES:%=$(ZLIB_DIR)/%) 4 | 5 | -------------------------------------------------------------------------------- /dma.h: -------------------------------------------------------------------------------- 1 | /* 2 | * DMA helper functions 3 | * 4 | * Copyright (c) 2009 Red Hat 5 | * 6 | * This work is licensed under the terms of the GNU General Public License 7 | * (GNU GPL), version 2 or later. 8 | */ 9 | 10 | #ifndef DMA_H 11 | #define DMA_H 12 | 13 | #include 14 | //#include "cpu.h" 15 | #include "hw/hw.h" 16 | #include "block.h" 17 | 18 | typedef struct { 19 | target_phys_addr_t base; 20 | target_phys_addr_t len; 21 | } ScatterGatherEntry; 22 | 23 | typedef struct { 24 | ScatterGatherEntry *sg; 25 | int nsg; 26 | int nalloc; 27 | target_phys_addr_t size; 28 | } QEMUSGList; 29 | 30 | void qemu_sglist_init(QEMUSGList *qsg, int alloc_hint); 31 | void qemu_sglist_add(QEMUSGList *qsg, target_phys_addr_t base, 32 | target_phys_addr_t len); 33 | void qemu_sglist_destroy(QEMUSGList *qsg); 34 | 35 | BlockDriverAIOCB *dma_bdrv_read(BlockDriverState *bs, 36 | QEMUSGList *sg, uint64_t sector, 37 | BlockDriverCompletionFunc *cb, void *opaque); 38 | BlockDriverAIOCB *dma_bdrv_write(BlockDriverState *bs, 39 | QEMUSGList *sg, uint64_t sector, 40 | BlockDriverCompletionFunc *cb, void *opaque); 41 | #endif 42 | -------------------------------------------------------------------------------- /docs/ANDROID-ELFF.TXT: -------------------------------------------------------------------------------- 1 | ANDROID ELFF LIBRARY 2 | 3 | The docs/ANDROID-ELFF.TXT document contains notes about the ELFF library used 4 | by the emulator to extract debugging information from symbol files of the 5 | emulated system. 6 | 7 | The ELFF library has been introduced to provide the emulator's memory checker 8 | subsystem with information about routine name, source file name and location 9 | when a memory access violation detected at runtime. This requires parsing symbol 10 | files corresponding to the libraries of the emulated system, in order to extract 11 | relevant information from them. 12 | 13 | Due to lack of windows support on available open source projects, this is a 14 | full new implementation of an ELF/DWARF parser. 15 | 16 | The library exposes a simple API that at this point allows: 17 | - Extract information about routine, containing given PC address in the emulated 18 | system. Routine information, collected by the library includes: 19 | * Routine name 20 | * Source file name and line corresponded to the given emulated PC. 21 | * If routine happens to be inlined, library traces inclusion up to the first 22 | routine that is not inlined, providing names and source file location 23 | information for all inlined routines in that chain. 24 | -------------------------------------------------------------------------------- /elff/elff-common.h: -------------------------------------------------------------------------------- 1 | /* Copyright (C) 2007-2010 The Android Open Source Project 2 | ** 3 | ** This software is licensed under the terms of the GNU General Public 4 | ** License version 2, as published by the Free Software Foundation, and 5 | ** may be copied, distributed, and modified under those terms. 6 | ** 7 | ** This program is distributed in the hope that it will be useful, 8 | ** but WITHOUT ANY WARRANTY; without even the implied warranty of 9 | ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 10 | ** GNU General Public License for more details. 11 | */ 12 | 13 | /* 14 | * Includes common headers for the ELFF library. 15 | */ 16 | 17 | #ifndef ELFF_ELFF_COMMON_H_ 18 | #define ELFF_ELFF_COMMON_H_ 19 | 20 | #include "stddef.h" 21 | #include "sys/types.h" 22 | #include "assert.h" 23 | #include "memory.h" 24 | #include "errno.h" 25 | #include "stdlib.h" 26 | #ifdef WIN32 27 | #include "windows.h" 28 | #else // WIN32 29 | #include 30 | #include 31 | #include 32 | #endif // WIN32 33 | 34 | static inline void _set_errno(uint32_t err) { 35 | errno = err; 36 | } 37 | 38 | #endif // ELFF_ELFF_COMMON_H_ 39 | -------------------------------------------------------------------------------- /envlist.h: -------------------------------------------------------------------------------- 1 | #ifndef ENVLIST_H 2 | #define ENVLIST_H 3 | 4 | #ifdef __cplusplus 5 | extern "C" { 6 | #endif 7 | 8 | typedef struct envlist envlist_t; 9 | 10 | envlist_t *envlist_create(void); 11 | void envlist_free(envlist_t *); 12 | int envlist_setenv(envlist_t *, const char *); 13 | int envlist_unsetenv(envlist_t *, const char *); 14 | int envlist_parse_set(envlist_t *, const char *); 15 | int envlist_parse_unset(envlist_t *, const char *); 16 | char **envlist_to_environ(const envlist_t *, size_t *); 17 | 18 | #ifdef __cplusplus 19 | } 20 | #endif 21 | 22 | #endif /* ENVLIST_H */ 23 | -------------------------------------------------------------------------------- /gdb-xml/arm-core.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 30 | 31 | 32 | -------------------------------------------------------------------------------- /gdb-xml/cf-core.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | -------------------------------------------------------------------------------- /gdb-xml/cf-fp.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | , 21 | 22 | 23 | -------------------------------------------------------------------------------- /hax.h: -------------------------------------------------------------------------------- 1 | /* header to be included in non-HAX-specific code */ 2 | #ifndef _HAX_H 3 | #define _HAX_H 4 | 5 | #include "config.h" 6 | #include "qemu-common.h" 7 | #include "cpu.h" 8 | 9 | extern int hax_disabled; 10 | struct hax_vcpu_state; 11 | 12 | #ifdef CONFIG_HAX 13 | int hax_enabled(void); 14 | int hax_set_ramsize(uint64_t ramsize); 15 | int hax_init(int smp_cpus); 16 | int hax_init_vcpu(CPUState *env); 17 | /* Execute vcpu in non-root mode */ 18 | int hax_vcpu_exec(CPUState *env); 19 | /* Sync vcpu state with HAX driver */ 20 | int hax_sync_vcpus(void); 21 | void hax_vcpu_sync_state(CPUState *env, int modified); 22 | int hax_populate_ram(uint64_t va, uint32_t size); 23 | int hax_set_phys_mem(target_phys_addr_t start_addr, 24 | ram_addr_t size, ram_addr_t phys_offset); 25 | /* Check if QEMU need emulate guest execution */ 26 | int hax_vcpu_emulation_mode(CPUState *env); 27 | int hax_stop_emulation(CPUState *env); 28 | int hax_stop_translate(CPUState *env); 29 | int hax_arch_get_registers(CPUState *env); 30 | void hax_raise_event(CPUState *env); 31 | void hax_reset_vcpu_state(void *opaque); 32 | 33 | #include "target-i386/hax-interface.h" 34 | 35 | #else 36 | #define hax_enabled() (0) 37 | #endif 38 | 39 | #endif 40 | -------------------------------------------------------------------------------- /host-defs.h: -------------------------------------------------------------------------------- 1 | #ifndef _HOST_DEFS_H 2 | #define _HOST_DEFS_H 3 | 4 | /* all host-specific definitions should go here */ 5 | 6 | #include "config-host.h" 7 | #include 8 | 9 | #if HOST_LONG_BITS == 32 10 | typedef int32_t host_long; 11 | typedef uint32_t host_ulong; 12 | #elif HOST_LONG_BITS == 64 13 | typedef int64_t host_long; 14 | typedef uint64_t host_ulong; 15 | #endif 16 | 17 | #endif /* _HOST_DEFS_H */ 18 | 19 | -------------------------------------------------------------------------------- /hpet.h: -------------------------------------------------------------------------------- 1 | #ifndef __HPET__ 2 | #define __HPET__ 1 3 | 4 | 5 | 6 | struct hpet_info { 7 | unsigned long hi_ireqfreq; /* Hz */ 8 | unsigned long hi_flags; /* information */ 9 | unsigned short hi_hpet; 10 | unsigned short hi_timer; 11 | }; 12 | 13 | #define HPET_INFO_PERIODIC 0x0001 /* timer is periodic */ 14 | 15 | #define HPET_IE_ON _IO('h', 0x01) /* interrupt on */ 16 | #define HPET_IE_OFF _IO('h', 0x02) /* interrupt off */ 17 | #define HPET_INFO _IOR('h', 0x03, struct hpet_info) 18 | #define HPET_EPI _IO('h', 0x04) /* enable periodic */ 19 | #define HPET_DPI _IO('h', 0x05) /* disable periodic */ 20 | #define HPET_IRQFREQ _IOW('h', 0x6, unsigned long) /* IRQFREQ usec */ 21 | 22 | #endif /* !__HPET__ */ 23 | -------------------------------------------------------------------------------- /hw/arm_pic.c: -------------------------------------------------------------------------------- 1 | /* 2 | * Generic ARM Programmable Interrupt Controller support. 3 | * 4 | * Copyright (c) 2006 CodeSourcery. 5 | * Written by Paul Brook 6 | * 7 | * This code is licenced under the LGPL 8 | */ 9 | 10 | #include "hw.h" 11 | #include "pc.h" 12 | #include "arm-misc.h" 13 | 14 | /* Stub functions for hardware that doesn't exist. */ 15 | void pic_info(Monitor *mon) 16 | { 17 | } 18 | 19 | void irq_info(Monitor *mon) 20 | { 21 | } 22 | 23 | 24 | /* Input 0 is IRQ and input 1 is FIQ. */ 25 | static void arm_pic_cpu_handler(void *opaque, int irq, int level) 26 | { 27 | CPUState *env = (CPUState *)opaque; 28 | switch (irq) { 29 | case ARM_PIC_CPU_IRQ: 30 | if (level) 31 | cpu_interrupt(env, CPU_INTERRUPT_HARD); 32 | else 33 | cpu_reset_interrupt(env, CPU_INTERRUPT_HARD); 34 | break; 35 | case ARM_PIC_CPU_FIQ: 36 | if (level) 37 | cpu_interrupt(env, CPU_INTERRUPT_FIQ); 38 | else 39 | cpu_reset_interrupt(env, CPU_INTERRUPT_FIQ); 40 | break; 41 | default: 42 | hw_error("arm_pic_cpu_handler: Bad interrput line %d\n", irq); 43 | } 44 | } 45 | 46 | qemu_irq *arm_pic_init_cpu(CPUState *env) 47 | { 48 | return qemu_allocate_irqs(arm_pic_cpu_handler, env, 2); 49 | } 50 | -------------------------------------------------------------------------------- /hw/arm_pic.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Generic ARM Programmable Interrupt Controller support. 3 | * 4 | * Copyright (c) 2006 CodeSourcery. 5 | * Written by Paul Brook 6 | * 7 | * This code is licenced under the LGPL. 8 | * 9 | * Arm hardware uses a wide variety of interrupt handling hardware. 10 | * This provides a generic framework for connecting interrupt sources and 11 | * inputs. 12 | */ 13 | 14 | #ifndef ARM_INTERRUPT_H 15 | #define ARM_INTERRUPT_H 1 16 | 17 | #include "irq.h" 18 | 19 | /* The CPU is also modeled as an interrupt controller. */ 20 | #define ARM_PIC_CPU_IRQ 0 21 | #define ARM_PIC_CPU_FIQ 1 22 | qemu_irq *arm_pic_init_cpu(CPUState *env); 23 | 24 | #endif /* !ARM_INTERRUPT_H */ 25 | 26 | -------------------------------------------------------------------------------- /hw/audiodev.h: -------------------------------------------------------------------------------- 1 | /* es1370.c */ 2 | int es1370_init(PCIBus *bus); 3 | 4 | /* sb16.c */ 5 | int SB16_init(qemu_irq *pic); 6 | 7 | /* adlib.c */ 8 | int Adlib_init(qemu_irq *pic); 9 | 10 | /* gus.c */ 11 | int GUS_init(qemu_irq *pic); 12 | 13 | /* ac97.c */ 14 | int ac97_init(PCIBus *buf); 15 | 16 | /* cs4231a.c */ 17 | int cs4231a_init(qemu_irq *pic); 18 | -------------------------------------------------------------------------------- /hw/boards.h: -------------------------------------------------------------------------------- 1 | /* Declarations for use by board files for creating devices. */ 2 | 3 | #ifndef HW_BOARDS_H 4 | #define HW_BOARDS_H 5 | 6 | typedef void QEMUMachineInitFunc(ram_addr_t ram_size, 7 | const char *boot_device, 8 | const char *kernel_filename, 9 | const char *kernel_cmdline, 10 | const char *initrd_filename, 11 | const char *cpu_model); 12 | 13 | typedef struct QEMUMachine { 14 | const char *name; 15 | const char *desc; 16 | QEMUMachineInitFunc *init; 17 | int use_scsi; 18 | int max_cpus; 19 | int is_default; 20 | struct QEMUMachine *next; 21 | } QEMUMachine; 22 | 23 | int qemu_register_machine(QEMUMachine *m); 24 | 25 | extern QEMUMachine *current_machine; 26 | 27 | /* android_arm.c */ 28 | extern QEMUMachine android_arm_machine; 29 | 30 | #endif 31 | -------------------------------------------------------------------------------- /hw/fdc.h: -------------------------------------------------------------------------------- 1 | /* fdc.c */ 2 | #define MAX_FD 2 3 | 4 | typedef struct fdctrl_t fdctrl_t; 5 | 6 | fdctrl_t *fdctrl_init (qemu_irq irq, int dma_chann, int mem_mapped, 7 | target_phys_addr_t io_base, 8 | BlockDriverState **fds); 9 | fdctrl_t *sun4m_fdctrl_init (qemu_irq irq, target_phys_addr_t io_base, 10 | BlockDriverState **fds, qemu_irq *fdc_tc); 11 | int fdctrl_get_drive_type(fdctrl_t *fdctrl, int drive_num); 12 | -------------------------------------------------------------------------------- /hw/goldfish_nand.h: -------------------------------------------------------------------------------- 1 | /* Copyright (C) 2007-2008 The Android Open Source Project 2 | ** 3 | ** This software is licensed under the terms of the GNU General Public 4 | ** License version 2, as published by the Free Software Foundation, and 5 | ** may be copied, distributed, and modified under those terms. 6 | ** 7 | ** This program is distributed in the hope that it will be useful, 8 | ** but WITHOUT ANY WARRANTY; without even the implied warranty of 9 | ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 10 | ** GNU General Public License for more details. 11 | */ 12 | #ifndef NAND_DEVICE_H 13 | #define NAND_DEVICE_H 14 | 15 | void nand_dev_init(uint32_t base); 16 | void nand_add_dev(const char *arg); 17 | void parse_nand_limits(char* limits); 18 | 19 | typedef struct { 20 | uint64_t limit; 21 | uint64_t counter; 22 | int pid; 23 | int signal; 24 | } nand_threshold; 25 | 26 | extern nand_threshold android_nand_read_threshold; 27 | extern nand_threshold android_nand_write_threshold; 28 | 29 | #endif 30 | -------------------------------------------------------------------------------- /hw/irq.h: -------------------------------------------------------------------------------- 1 | #ifndef QEMU_IRQ_H 2 | #define QEMU_IRQ_H 3 | 4 | /* Generic IRQ/GPIO pin infrastructure. */ 5 | 6 | /* FIXME: Rmove one of these. */ 7 | typedef void (*qemu_irq_handler)(void *opaque, int n, int level); 8 | typedef void SetIRQFunc(void *opaque, int irq_num, int level); 9 | 10 | void qemu_set_irq(qemu_irq irq, int level); 11 | 12 | static inline void qemu_irq_raise(qemu_irq irq) 13 | { 14 | qemu_set_irq(irq, 1); 15 | } 16 | 17 | static inline void qemu_irq_lower(qemu_irq irq) 18 | { 19 | qemu_set_irq(irq, 0); 20 | } 21 | 22 | static inline void qemu_irq_pulse(qemu_irq irq) 23 | { 24 | qemu_set_irq(irq, 1); 25 | qemu_set_irq(irq, 0); 26 | } 27 | 28 | /* Returns an array of N IRQs. */ 29 | qemu_irq *qemu_allocate_irqs(qemu_irq_handler handler, void *opaque, int n); 30 | void qemu_free_irqs(qemu_irq *s); 31 | 32 | /* Returns a new IRQ with opposite polarity. */ 33 | qemu_irq qemu_irq_invert(qemu_irq irq); 34 | 35 | #endif 36 | -------------------------------------------------------------------------------- /hw/isa.h: -------------------------------------------------------------------------------- 1 | #ifndef HW_ISA_H 2 | #define HW_ISA_H 3 | 4 | /* ISA bus */ 5 | 6 | #include "ioport.h" 7 | #include "qdev.h" 8 | 9 | extern target_phys_addr_t isa_mem_base; 10 | 11 | void isa_mmio_init(target_phys_addr_t base, target_phys_addr_t size); 12 | 13 | /* dma.c */ 14 | int DMA_get_channel_mode (int nchan); 15 | int DMA_read_memory (int nchan, void *buf, int pos, int size); 16 | int DMA_write_memory (int nchan, void *buf, int pos, int size); 17 | void DMA_hold_DREQ (int nchan); 18 | void DMA_release_DREQ (int nchan); 19 | void DMA_schedule(int nchan); 20 | void DMA_init (int high_page_enable); 21 | void DMA_register_channel (int nchan, 22 | DMA_transfer_handler transfer_handler, 23 | void *opaque); 24 | #endif 25 | -------------------------------------------------------------------------------- /hw/mips-bios.h: -------------------------------------------------------------------------------- 1 | #include "cpu.h" 2 | 3 | #define BIOS_SIZE (4 * 1024 * 1024) 4 | #ifdef TARGET_WORDS_BIGENDIAN 5 | #define BIOS_FILENAME "mips_bios.bin" 6 | #else 7 | #define BIOS_FILENAME "mipsel_bios.bin" 8 | #endif 9 | -------------------------------------------------------------------------------- /hw/msmouse.h: -------------------------------------------------------------------------------- 1 | /* msmouse.c */ 2 | CharDriverState *qemu_chr_open_msmouse(QemuOpts *opts); 3 | -------------------------------------------------------------------------------- /hw/ps2.h: -------------------------------------------------------------------------------- 1 | /* ps2.c */ 2 | void *ps2_kbd_init(void (*update_irq)(void *, int), void *update_arg); 3 | void *ps2_mouse_init(void (*update_irq)(void *, int), void *update_arg); 4 | void ps2_write_mouse(void *, int val); 5 | void ps2_write_keyboard(void *, int val); 6 | uint32_t ps2_read_data(void *); 7 | void ps2_queue(void *, int b); 8 | void ps2_keyboard_set_translation(void *opaque, int mode); 9 | void ps2_mouse_fake_event(void *opaque); 10 | -------------------------------------------------------------------------------- /hw/xen.h: -------------------------------------------------------------------------------- 1 | #ifndef QEMU_HW_XEN_H 2 | #define QEMU_HW_XEN_H 1 3 | /* 4 | * public xen header 5 | * stuff needed outside xen-*.c, i.e. interfaces to qemu. 6 | * must not depend on any xen headers being present in 7 | * /usr/include/xen, so it can be included unconditionally. 8 | */ 9 | #include 10 | 11 | /* xen-machine.c */ 12 | enum xen_mode { 13 | XEN_EMULATE = 0, // xen emulation, using xenner (default) 14 | XEN_CREATE, // create xen domain 15 | XEN_ATTACH // attach to xen domain created by xend 16 | }; 17 | 18 | extern uint32_t xen_domid; 19 | extern enum xen_mode xen_mode; 20 | 21 | #endif /* QEMU_HW_XEN_H */ 22 | -------------------------------------------------------------------------------- /images/android_icon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0-14N/NDroid/4e5dbe69855a7fda8b74e61d9db5aa61e6ba9ee8/images/android_icon.ico -------------------------------------------------------------------------------- /images/android_icon.rc: -------------------------------------------------------------------------------- 1 | 1 ICON "../images/android_icon.ico" 2 | 3 | 4 | -------------------------------------------------------------------------------- /images/android_icon_16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0-14N/NDroid/4e5dbe69855a7fda8b74e61d9db5aa61e6ba9ee8/images/android_icon_16.png -------------------------------------------------------------------------------- /images/android_icon_256.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0-14N/NDroid/4e5dbe69855a7fda8b74e61d9db5aa61e6ba9ee8/images/android_icon_256.png -------------------------------------------------------------------------------- /images/android_icon_32.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0-14N/NDroid/4e5dbe69855a7fda8b74e61d9db5aa61e6ba9ee8/images/android_icon_32.png -------------------------------------------------------------------------------- /json-lexer.h: -------------------------------------------------------------------------------- 1 | /* 2 | * JSON lexer 3 | * 4 | * Copyright IBM, Corp. 2009 5 | * 6 | * Authors: 7 | * Anthony Liguori 8 | * 9 | * This work is licensed under the terms of the GNU LGPL, version 2.1 or later. 10 | * See the COPYING.LIB file in the top-level directory. 11 | * 12 | */ 13 | 14 | #ifndef QEMU_JSON_LEXER_H 15 | #define QEMU_JSON_LEXER_H 16 | 17 | #include "qstring.h" 18 | #include "qlist.h" 19 | 20 | typedef enum json_token_type { 21 | JSON_OPERATOR = 100, 22 | JSON_INTEGER, 23 | JSON_FLOAT, 24 | JSON_KEYWORD, 25 | JSON_STRING, 26 | JSON_ESCAPE, 27 | JSON_SKIP, 28 | } JSONTokenType; 29 | 30 | typedef struct JSONLexer JSONLexer; 31 | 32 | typedef void (JSONLexerEmitter)(JSONLexer *, QString *, JSONTokenType, int x, int y); 33 | 34 | struct JSONLexer 35 | { 36 | JSONLexerEmitter *emit; 37 | int state; 38 | QString *token; 39 | int x, y; 40 | }; 41 | 42 | void json_lexer_init(JSONLexer *lexer, JSONLexerEmitter func); 43 | 44 | int json_lexer_feed(JSONLexer *lexer, const char *buffer, size_t size); 45 | 46 | int json_lexer_flush(JSONLexer *lexer); 47 | 48 | void json_lexer_destroy(JSONLexer *lexer); 49 | 50 | #endif 51 | -------------------------------------------------------------------------------- /json-parser.h: -------------------------------------------------------------------------------- 1 | /* 2 | * JSON Parser 3 | * 4 | * Copyright IBM, Corp. 2009 5 | * 6 | * Authors: 7 | * Anthony Liguori 8 | * 9 | * This work is licensed under the terms of the GNU LGPL, version 2.1 or later. 10 | * See the COPYING.LIB file in the top-level directory. 11 | * 12 | */ 13 | 14 | #ifndef QEMU_JSON_PARSER_H 15 | #define QEMU_JSON_PARSER_H 16 | 17 | #include "qemu-common.h" 18 | #include "qlist.h" 19 | 20 | QObject *json_parser_parse(QList *tokens, va_list *ap); 21 | 22 | #endif 23 | -------------------------------------------------------------------------------- /json-streamer.h: -------------------------------------------------------------------------------- 1 | /* 2 | * JSON streaming support 3 | * 4 | * Copyright IBM, Corp. 2009 5 | * 6 | * Authors: 7 | * Anthony Liguori 8 | * 9 | * This work is licensed under the terms of the GNU LGPL, version 2.1 or later. 10 | * See the COPYING.LIB file in the top-level directory. 11 | * 12 | */ 13 | 14 | #ifndef QEMU_JSON_STREAMER_H 15 | #define QEMU_JSON_STREAMER_H 16 | 17 | #include "qlist.h" 18 | #include "json-lexer.h" 19 | 20 | typedef struct JSONMessageParser 21 | { 22 | void (*emit)(struct JSONMessageParser *parser, QList *tokens); 23 | JSONLexer lexer; 24 | int brace_count; 25 | int bracket_count; 26 | QList *tokens; 27 | } JSONMessageParser; 28 | 29 | void json_message_parser_init(JSONMessageParser *parser, 30 | void (*func)(JSONMessageParser *, QList *)); 31 | 32 | int json_message_parser_feed(JSONMessageParser *parser, 33 | const char *buffer, size_t size); 34 | 35 | int json_message_parser_flush(JSONMessageParser *parser); 36 | 37 | void json_message_parser_destroy(JSONMessageParser *parser); 38 | 39 | #endif 40 | -------------------------------------------------------------------------------- /kvm-android.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include 4 | #include "android/utils/debug.h" 5 | 6 | #define D(...) VERBOSE_PRINT(init,__VA_ARGS__) 7 | 8 | /* A simple routine used to check that we can run the program under KVM. 9 | * We simply want to ensure that the kvm driver is loaded and that the 10 | * corresponding device file is accessible by the user. 11 | */ 12 | 13 | #ifndef __linux__ 14 | #error "This file should only be compiled under linux" 15 | #endif 16 | 17 | int 18 | kvm_check_allowed(void) 19 | { 20 | /* Is there a /dev/kvm device file here? */ 21 | if (access("/dev/kvm",F_OK)) { 22 | /* no need to print a warning here */ 23 | D("No kvm device file detected"); 24 | return 0; 25 | } 26 | 27 | /* Can we access it? */ 28 | if (access("/dev/kvm",R_OK)) { 29 | D("KVM device file is not readable for this user."); 30 | return 0; 31 | } 32 | 33 | D("KVM mode auto-enabled!"); 34 | return 1; 35 | } 36 | 37 | -------------------------------------------------------------------------------- /kvm-android.h: -------------------------------------------------------------------------------- 1 | #ifndef KVM_ANDROID_H 2 | #define KVM_ANDROID_H 3 | 4 | /* Returns 1 if we can use /dev/kvm on this machine */ 5 | extern int kvm_check_allowed(void); 6 | 7 | #endif /* KVM_ANDROID_H */ 8 | -------------------------------------------------------------------------------- /module.h: -------------------------------------------------------------------------------- 1 | /* 2 | * QEMU Module Infrastructure 3 | * 4 | * Copyright IBM, Corp. 2009 5 | * 6 | * Authors: 7 | * Anthony Liguori 8 | * 9 | * This work is licensed under the terms of the GNU GPL, version 2. See 10 | * the COPYING file in the top-level directory. 11 | * 12 | */ 13 | 14 | #ifndef QEMU_MODULE_H 15 | #define QEMU_MODULE_H 16 | 17 | /* This should not be used directly. Use block_init etc. instead. */ 18 | #define module_init(function, type) \ 19 | static void __attribute__((constructor)) do_qemu_init_ ## function(void) { \ 20 | register_module_init(function, type); \ 21 | } 22 | 23 | typedef enum { 24 | MODULE_INIT_BLOCK, 25 | MODULE_INIT_DEVICE, 26 | MODULE_INIT_MACHINE, 27 | MODULE_INIT_MAX 28 | } module_init_type; 29 | 30 | #define block_init(function) module_init(function, MODULE_INIT_BLOCK) 31 | #define device_init(function) module_init(function, MODULE_INIT_DEVICE) 32 | #define machine_init(function) module_init(function, MODULE_INIT_MACHINE) 33 | 34 | void register_module_init(void (*fn)(void), module_init_type type); 35 | 36 | void module_call_init(module_init_type type); 37 | 38 | #endif 39 | -------------------------------------------------------------------------------- /monitor-android.h: -------------------------------------------------------------------------------- 1 | /* This file is included from monitor.c, it's purpose is to hold as much 2 | * Android-specific stuff as possible to ease upstream integrations. 3 | */ 4 | 5 | Monitor* 6 | monitor_fake_new(void* opaque, MonitorFakeFunc cb) 7 | { 8 | Monitor* mon; 9 | 10 | assert(cb != NULL); 11 | mon = qemu_mallocz(sizeof(*mon)); 12 | mon->fake_opaque = opaque; 13 | mon->fake_func = cb; 14 | mon->fake_count = 0; 15 | 16 | return mon; 17 | } 18 | 19 | int 20 | monitor_fake_get_bytes(Monitor* mon) 21 | { 22 | assert(mon->fake_func != NULL); 23 | return mon->fake_count; 24 | } 25 | 26 | void 27 | monitor_fake_free(Monitor* mon) 28 | { 29 | assert(mon->fake_func != NULL); 30 | free(mon); 31 | } 32 | 33 | /* This replaces the definition in monitor.c which is in a 34 | * #ifndef CONFIG_ANDROID .. #endif block. 35 | */ 36 | void monitor_flush(Monitor *mon) 37 | { 38 | if (!mon) 39 | return; 40 | 41 | if (mon->fake_func != NULL) { 42 | mon->fake_func(mon->fake_opaque, (void*)mon->outbuf, mon->outbuf_index); 43 | mon->outbuf_index = 0; 44 | mon->fake_count += mon->outbuf_index; 45 | } else if (!mon->mux_out) { 46 | qemu_chr_write(mon->chr, mon->outbuf, mon->outbuf_index); 47 | mon->outbuf_index = 0; 48 | } 49 | } 50 | -------------------------------------------------------------------------------- /notify.c: -------------------------------------------------------------------------------- 1 | /* 2 | * Notifier lists 3 | * 4 | * Copyright IBM, Corp. 2010 5 | * 6 | * Authors: 7 | * Anthony Liguori 8 | * 9 | * This work is licensed under the terms of the GNU GPL, version 2. See 10 | * the COPYING file in the top-level directory. 11 | * 12 | */ 13 | 14 | #include "qemu-common.h" 15 | #include "notify.h" 16 | 17 | void notifier_list_init(NotifierList *list) 18 | { 19 | QTAILQ_INIT(&list->notifiers); 20 | } 21 | 22 | void notifier_list_add(NotifierList *list, Notifier *notifier) 23 | { 24 | QTAILQ_INSERT_HEAD(&list->notifiers, notifier, node); 25 | } 26 | 27 | void notifier_list_remove(NotifierList *list, Notifier *notifier) 28 | { 29 | QTAILQ_REMOVE(&list->notifiers, notifier, node); 30 | } 31 | 32 | void notifier_list_notify(NotifierList *list) 33 | { 34 | Notifier *notifier, *next; 35 | 36 | QTAILQ_FOREACH_SAFE(notifier, &list->notifiers, node, next) { 37 | notifier->notify(notifier); 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /notify.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Notifier lists 3 | * 4 | * Copyright IBM, Corp. 2010 5 | * 6 | * Authors: 7 | * Anthony Liguori 8 | * 9 | * This work is licensed under the terms of the GNU GPL, version 2. See 10 | * the COPYING file in the top-level directory. 11 | * 12 | */ 13 | 14 | #ifndef QEMU_NOTIFY_H 15 | #define QEMU_NOTIFY_H 16 | 17 | #include "qemu-queue.h" 18 | 19 | typedef struct Notifier Notifier; 20 | 21 | struct Notifier 22 | { 23 | void (*notify)(Notifier *notifier); 24 | QTAILQ_ENTRY(Notifier) node; 25 | }; 26 | 27 | typedef struct NotifierList 28 | { 29 | QTAILQ_HEAD(, Notifier) notifiers; 30 | } NotifierList; 31 | 32 | #define NOTIFIER_LIST_INITIALIZER(head) \ 33 | { QTAILQ_HEAD_INITIALIZER((head).notifiers) } 34 | 35 | void notifier_list_init(NotifierList *list); 36 | 37 | void notifier_list_add(NotifierList *list, Notifier *notifier); 38 | 39 | void notifier_list_remove(NotifierList *list, Notifier *notifier); 40 | 41 | void notifier_list_notify(NotifierList *list); 42 | 43 | #endif 44 | -------------------------------------------------------------------------------- /pc-bios/keymaps/en-us: -------------------------------------------------------------------------------- 1 | # generated from XKB map us 2 | include common 3 | map 0x409 4 | exclam 0x02 shift 5 | at 0x03 shift 6 | numbersign 0x04 shift 7 | dollar 0x05 shift 8 | percent 0x06 shift 9 | asciicircum 0x07 shift 10 | ampersand 0x08 shift 11 | asterisk 0x09 shift 12 | parenleft 0x0a shift 13 | parenright 0x0b shift 14 | minus 0x0c 15 | underscore 0x0c shift 16 | equal 0x0d 17 | plus 0x0d shift 18 | bracketleft 0x1a 19 | braceleft 0x1a shift 20 | bracketright 0x1b 21 | braceright 0x1b shift 22 | semicolon 0x27 23 | colon 0x27 shift 24 | apostrophe 0x28 25 | quotedbl 0x28 shift 26 | grave 0x29 27 | asciitilde 0x29 shift 28 | backslash 0x2b 29 | bar 0x2b shift 30 | comma 0x33 31 | less 0x33 shift 32 | period 0x34 33 | greater 0x34 shift 34 | slash 0x35 35 | question 0x35 shift 36 | -------------------------------------------------------------------------------- /pc-bios/keymaps/fo: -------------------------------------------------------------------------------- 1 | map 0x438 2 | include common 3 | 4 | # 5 | # Top row 6 | # 7 | onehalf 0x29 8 | section 0x29 shift 9 | 10 | # 1 11 | exclam 0x2 shift 12 | 13 | # 2 14 | quotedbl 0x3 shift 15 | at 0x3 altgr 16 | 17 | # 3 18 | numbersign 0x4 shift 19 | sterling 0x4 altgr 20 | # 4 21 | currency 0x5 shift 22 | dollar 0x5 altgr 23 | # 5 24 | percent 0x6 shift 25 | # 6 26 | ampersand 0x7 shift 27 | # 7 28 | slash 0x8 shift 29 | braceleft 0x8 altgr 30 | # 8 31 | parenleft 0x9 shift 32 | bracketleft 0x9 altgr 33 | # 9 34 | parenright 0xa shift 35 | bracketright 0xa altgr 36 | # 0 37 | equal 0xb shift 38 | braceright 0xb altgr 39 | 40 | plus 0xc 41 | question 0xc shift 42 | plusminus 0xc altgr 43 | 44 | bar 0xd altgr 45 | dead_acute 0xd 46 | 47 | # 48 | # QWERTY first row 49 | # 50 | EuroSign 0x12 altgr 51 | aring 0x1a 52 | Aring 0x1a shift 53 | eth 0x1b addupper 54 | asciitilde 0x1b altgr 55 | 56 | # 57 | # QWERTY second row 58 | # 59 | ae 0x27 addupper 60 | oslash 0x28 61 | Ooblique 0x28 shift 62 | apostrophe 0x2b 63 | asterisk 0x2b shift 64 | 65 | # 66 | # QWERTY third row 67 | # 68 | less 0x56 69 | greater 0x56 shift 70 | backslash 0x56 altgr 71 | comma 0x33 72 | semicolon 0x33 shift 73 | period 0x34 74 | colon 0x34 shift 75 | minus 0x35 76 | underscore 0x35 shift 77 | -------------------------------------------------------------------------------- /pc-bios/keymaps/fr-ca: -------------------------------------------------------------------------------- 1 | # Canadian French 2 | # By Simon Germain 3 | include common 4 | map 0xc0c 5 | 6 | backslash 0x29 altgr 7 | plusminus 0x2 altgr 8 | at 0x3 altgr 9 | sterling 0x4 altgr 10 | cent 0x5 altgr 11 | currency 0x6 altgr 12 | notsign 0x7 altgr 13 | bar 0x29 shift 14 | twosuperior 0x9 altgr 15 | threesuperior 0xa altgr 16 | onequarter 0xb altgr 17 | onehalf 0xc altgr 18 | threequarters 0xd altgr 19 | section 0x18 altgr 20 | paragraph 0x19 altgr 21 | bracketleft 0x1a altgr 22 | bracketright 0x1b altgr 23 | asciitilde 0x27 altgr 24 | braceleft 0x28 altgr 25 | braceright 0x2b altgr 26 | less 0x2b 27 | greater 0x2b shift 28 | guillemotleft 0x56 29 | guillemotright 0x56 shift 30 | degree 0x56 altgr 31 | mu 0x32 altgr 32 | eacute 0x35 33 | dead_acute 0x35 altgr 34 | dead_grave 0x28 35 | dead_circumflex 0x1a 36 | dead_circumflex 0x1a shift 37 | dead_cedilla 0x1b 38 | dead_diaeresis 0x1b shift 39 | exclam 0x2 shift 40 | quotedbl 0x3 shift 41 | slash 0x4 shift 42 | dollar 0x5 shift 43 | percent 0x6 shift 44 | question 0x7 shift 45 | ampersand 0x8 shift 46 | asterisk 0x9 shift 47 | parenleft 0xa shift 48 | parenright 0xb shift 49 | underscore 0xc shift 50 | plus 0xd shift 51 | -------------------------------------------------------------------------------- /pc-bios/keymaps/is: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0-14N/NDroid/4e5dbe69855a7fda8b74e61d9db5aa61e6ba9ee8/pc-bios/keymaps/is -------------------------------------------------------------------------------- /pc-bios/keymaps/modifiers: -------------------------------------------------------------------------------- 1 | Shift_R 0x36 2 | Shift_L 0x2a 3 | 4 | Alt_R 0xb8 5 | Mode_switch 0xb8 6 | ISO_Level3_Shift 0xb8 7 | Alt_L 0x38 8 | 9 | Control_R 0x9d 10 | Control_L 0x1d 11 | 12 | # Translate Super to Windows keys. 13 | # This is hardcoded. See documentation for details. 14 | Super_R 0xdc 15 | Super_L 0xdb 16 | 17 | # Translate Menu to the Windows Application key. 18 | Menu 0xdd 19 | -------------------------------------------------------------------------------- /pc-bios/keymaps/nl-be: -------------------------------------------------------------------------------- 1 | # Dutch (Belgium) 2 | map 0x813 3 | include common 4 | -------------------------------------------------------------------------------- /proxy/proxy_http.h: -------------------------------------------------------------------------------- 1 | /* Copyright (C) 2007-2008 The Android Open Source Project 2 | ** 3 | ** This software is licensed under the terms of the GNU General Public 4 | ** License version 2, as published by the Free Software Foundation, and 5 | ** may be copied, distributed, and modified under those terms. 6 | ** 7 | ** This program is distributed in the hope that it will be useful, 8 | ** but WITHOUT ANY WARRANTY; without even the implied warranty of 9 | ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 10 | ** GNU General Public License for more details. 11 | */ 12 | #ifndef _PROXY_HTTP_H 13 | #define _PROXY_HTTP_H 14 | 15 | #include "proxy_common.h" 16 | 17 | extern int 18 | proxy_http_setup( const char* servername, 19 | int servernamelen, 20 | int serverport, 21 | int num_options, 22 | const ProxyOption* options ); 23 | 24 | #endif /* END */ 25 | -------------------------------------------------------------------------------- /qbool.h: -------------------------------------------------------------------------------- 1 | /* 2 | * QBool Module 3 | * 4 | * Copyright IBM, Corp. 2009 5 | * 6 | * Authors: 7 | * Anthony Liguori 8 | * 9 | * This work is licensed under the terms of the GNU LGPL, version 2.1 or later. 10 | * See the COPYING.LIB file in the top-level directory. 11 | * 12 | */ 13 | 14 | #ifndef QBOOL_H 15 | #define QBOOL_H 16 | 17 | #include 18 | #include "qobject.h" 19 | 20 | typedef struct QBool { 21 | QObject_HEAD; 22 | int value; 23 | } QBool; 24 | 25 | QBool *qbool_from_int(int value); 26 | int qbool_get_int(const QBool *qb); 27 | QBool *qobject_to_qbool(const QObject *obj); 28 | 29 | #endif /* QBOOL_H */ 30 | -------------------------------------------------------------------------------- /qemu-barrier.h: -------------------------------------------------------------------------------- 1 | #ifndef __QEMU_BARRIER_H 2 | #define __QEMU_BARRIER_H 1 3 | 4 | /* FIXME: arch dependant, x86 version */ 5 | #define smp_wmb() asm volatile("" ::: "memory") 6 | 7 | /* Compiler barrier */ 8 | #define barrier() asm volatile("" ::: "memory") 9 | 10 | #endif 11 | -------------------------------------------------------------------------------- /qemu-config.h: -------------------------------------------------------------------------------- 1 | #ifndef QEMU_CONFIG_H 2 | #define QEMU_CONFIG_H 3 | 4 | extern QemuOptsList qemu_fsdev_opts; 5 | extern QemuOptsList qemu_virtfs_opts; 6 | extern QemuOptsList qemu_spice_opts; 7 | 8 | QemuOptsList *qemu_find_opts(const char *group); 9 | void qemu_add_opts(QemuOptsList *list); 10 | int qemu_set_option(const char *str); 11 | int qemu_global_option(const char *str); 12 | void qemu_add_globals(void); 13 | 14 | void qemu_config_write(FILE *fp); 15 | int qemu_config_parse(FILE *fp, QemuOptsList **lists, const char *fname); 16 | 17 | int qemu_read_config_file(const char *filename); 18 | 19 | #endif /* QEMU_CONFIG_H */ 20 | -------------------------------------------------------------------------------- /qemu-objects.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Include all QEMU objects. 3 | * 4 | * Copyright (C) 2009 Red Hat Inc. 5 | * 6 | * Authors: 7 | * Luiz Capitulino 8 | * 9 | * This work is licensed under the terms of the GNU LGPL, version 2.1 or later. 10 | * See the COPYING.LIB file in the top-level directory. 11 | */ 12 | 13 | #ifndef QEMU_OBJECTS_H 14 | #define QEMU_OBJECTS_H 15 | 16 | #include "qobject.h" 17 | #include "qint.h" 18 | #include "qfloat.h" 19 | #include "qbool.h" 20 | #include "qstring.h" 21 | #include "qdict.h" 22 | #include "qlist.h" 23 | #include "qjson.h" 24 | 25 | #endif /* QEMU_OBJECTS_H */ 26 | -------------------------------------------------------------------------------- /qemu_debug.h: -------------------------------------------------------------------------------- 1 | /* this is a transitional header. It should only be included 2 | * by non-specific source files. Later, a non-Android specific 3 | * implementation will be hooked in 4 | */ 5 | #include "android/utils/debug.h" 6 | -------------------------------------------------------------------------------- /qemu_socket.h: -------------------------------------------------------------------------------- 1 | /* headers to use the BSD sockets */ 2 | #ifndef QEMU__SOCKET_H 3 | #define QEMU__SOCKET_H 4 | 5 | #include "qemu-option.h" 6 | 7 | #include "sockets.h" 8 | #define socket_error() errno 9 | #define closesocket socket_close 10 | 11 | /* New, ipv6-ready socket helper functions, see qemu-sockets.c */ 12 | int inet_listen_opts(QemuOpts *opts, int port_offset); 13 | int inet_listen(const char *str, char *ostr, int olen, 14 | int socktype, int port_offset); 15 | int inet_connect_opts(QemuOpts *opts); 16 | int inet_connect(const char *str, int socktype); 17 | int inet_dgram_opts(QemuOpts *opts); 18 | const char *inet_strfamily(int family); 19 | 20 | int unix_listen_opts(QemuOpts *opts); 21 | int unix_listen(const char *path, char *ostr, int olen); 22 | int unix_connect_opts(QemuOpts *opts); 23 | int unix_connect(const char *path); 24 | 25 | /* Old, ipv4 only bits. Don't use for new code. */ 26 | int parse_host_port(SockAddress* saddr, const char *str); 27 | int parse_host_src_port(SockAddress* haddr, SockAddress* saddr, 28 | const char *str); 29 | 30 | #endif /* QEMU__SOCKET_H */ 31 | -------------------------------------------------------------------------------- /qemu_timers.h: -------------------------------------------------------------------------------- 1 | #ifndef _QEMU_TIMERS_H 2 | #define _QEMU_TIMERS_H 3 | 4 | #include "qemu_file.h" 5 | #include "qemu-timer.h" 6 | 7 | #endif /* _QEMU_TIMERS_H */ 8 | -------------------------------------------------------------------------------- /qfloat.h: -------------------------------------------------------------------------------- 1 | /* 2 | * QFloat Module 3 | * 4 | * Copyright IBM, Corp. 2009 5 | * 6 | * Authors: 7 | * Anthony Liguori 8 | * 9 | * This work is licensed under the terms of the GNU LGPL, version 2.1 or later. 10 | * See the COPYING.LIB file in the top-level directory. 11 | * 12 | */ 13 | 14 | #ifndef QFLOAT_H 15 | #define QFLOAT_H 16 | 17 | #include 18 | #include "qobject.h" 19 | 20 | typedef struct QFloat { 21 | QObject_HEAD; 22 | double value; 23 | } QFloat; 24 | 25 | QFloat *qfloat_from_double(double value); 26 | double qfloat_get_double(const QFloat *qi); 27 | QFloat *qobject_to_qfloat(const QObject *obj); 28 | 29 | #endif /* QFLOAT_H */ 30 | -------------------------------------------------------------------------------- /qint.h: -------------------------------------------------------------------------------- 1 | /* 2 | * QInt Module 3 | * 4 | * Copyright (C) 2009 Red Hat Inc. 5 | * 6 | * Authors: 7 | * Luiz Capitulino 8 | * 9 | * This work is licensed under the terms of the GNU LGPL, version 2.1 or later. 10 | * See the COPYING.LIB file in the top-level directory. 11 | */ 12 | 13 | #ifndef QINT_H 14 | #define QINT_H 15 | 16 | #include 17 | #include "qobject.h" 18 | 19 | typedef struct QInt { 20 | QObject_HEAD; 21 | int64_t value; 22 | } QInt; 23 | 24 | QInt *qint_from_int(int64_t value); 25 | int64_t qint_get_int(const QInt *qi); 26 | QInt *qobject_to_qint(const QObject *obj); 27 | 28 | #endif /* QINT_H */ 29 | -------------------------------------------------------------------------------- /qjson.h: -------------------------------------------------------------------------------- 1 | /* 2 | * QObject JSON integration 3 | * 4 | * Copyright IBM, Corp. 2009 5 | * 6 | * Authors: 7 | * Anthony Liguori 8 | * 9 | * This work is licensed under the terms of the GNU LGPL, version 2.1 or later. 10 | * See the COPYING.LIB file in the top-level directory. 11 | * 12 | */ 13 | 14 | #ifndef QJSON_H 15 | #define QJSON_H 16 | 17 | #include 18 | #include "qobject.h" 19 | #include "qstring.h" 20 | 21 | QObject *qobject_from_json(const char *string) GCC_FMT_ATTR(1, 0); 22 | QObject *qobject_from_jsonf(const char *string, ...) GCC_FMT_ATTR(1, 2); 23 | QObject *qobject_from_jsonv(const char *string, va_list *ap) GCC_FMT_ATTR(1, 0); 24 | 25 | QString *qobject_to_json(const QObject *obj); 26 | QString *qobject_to_json_pretty(const QObject *obj); 27 | 28 | #endif /* QJSON_H */ 29 | -------------------------------------------------------------------------------- /qstring.h: -------------------------------------------------------------------------------- 1 | /* 2 | * QString Module 3 | * 4 | * Copyright (C) 2009 Red Hat Inc. 5 | * 6 | * Authors: 7 | * Luiz Capitulino 8 | * 9 | * This work is licensed under the terms of the GNU LGPL, version 2.1 or later. 10 | * See the COPYING.LIB file in the top-level directory. 11 | */ 12 | 13 | #ifndef QSTRING_H 14 | #define QSTRING_H 15 | 16 | #include 17 | #include "qobject.h" 18 | 19 | typedef struct QString { 20 | QObject_HEAD; 21 | char *string; 22 | size_t length; 23 | size_t capacity; 24 | } QString; 25 | 26 | QString *qstring_new(void); 27 | QString *qstring_from_str(const char *str); 28 | QString *qstring_from_substr(const char *str, int start, int end); 29 | const char *qstring_get_str(const QString *qstring); 30 | void qstring_append_int(QString *qstring, int64_t value); 31 | void qstring_append(QString *qstring, const char *str); 32 | void qstring_append_chr(QString *qstring, int c); 33 | QString *qobject_to_qstring(const QObject *obj); 34 | 35 | #endif /* QSTRING_H */ 36 | -------------------------------------------------------------------------------- /slirp-android/ctl.h: -------------------------------------------------------------------------------- 1 | #define CTL_CMD 0 2 | #define CTL_EXEC 1 3 | #define CTL_ALIAS 2 4 | #define CTL_DNS 3 5 | /* NOTE: DNS_ADDR_MAX addresses, starting from CTL_DNS, are reserved */ 6 | 7 | #define CTL_IS_DNS(x) ((unsigned)((x)-CTL_DNS) < (unsigned)dns_addr_count) 8 | 9 | #define CTL_SPECIAL "10.0.2.0" 10 | #define CTL_LOCAL "10.0.2.15" 11 | -------------------------------------------------------------------------------- /slirp-android/debug.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 1995 Danny Gasparovski. 3 | * 4 | * Please read the file COPYRIGHT for the 5 | * terms and conditions of the copyright. 6 | */ 7 | 8 | #define PRN_STDERR 1 9 | #define PRN_SPRINTF 2 10 | 11 | extern FILE *dfd; 12 | extern FILE *lfd; 13 | extern int dostats; 14 | extern int slirp_debug; 15 | 16 | #define DBG_CALL 0x1 17 | #define DBG_MISC 0x2 18 | #define DBG_ERROR 0x4 19 | #define DEBUG_DEFAULT DBG_CALL|DBG_MISC|DBG_ERROR 20 | 21 | #ifdef DEBUG 22 | #define DEBUG_CALL(x) if (slirp_debug & DBG_CALL) { fprintf(dfd, "%s...\n", x); fflush(dfd); } 23 | #define DEBUG_ARG(x, y) if (slirp_debug & DBG_CALL) { fputc(' ', dfd); fprintf(dfd, x, y); fputc('\n', dfd); fflush(dfd); } 24 | #define DEBUG_ARGS(x) if (slirp_debug & DBG_CALL) { fprintf x ; fflush(dfd); } 25 | #define DEBUG_MISC(x) if (slirp_debug & DBG_MISC) { fprintf x ; fflush(dfd); } 26 | #define DEBUG_ERROR(x) if (slirp_debug & DBG_ERROR) {fprintf x ; fflush(dfd); } 27 | 28 | 29 | #else 30 | 31 | #define DEBUG_CALL(x) 32 | #define DEBUG_ARG(x, y) 33 | #define DEBUG_ARGS(x) 34 | #define DEBUG_MISC(x) 35 | #define DEBUG_ERROR(x) 36 | 37 | #endif 38 | 39 | void debug_init _P((char *, int)); 40 | -------------------------------------------------------------------------------- /slirp-android/sbuf.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 1995 Danny Gasparovski. 3 | * 4 | * Please read the file COPYRIGHT for the 5 | * terms and conditions of the copyright. 6 | */ 7 | 8 | #ifndef _SBUF_H_ 9 | #define _SBUF_H_ 10 | 11 | #define sbflush(sb) sbdrop((sb),(sb)->sb_cc) 12 | #define sbspace(sb) ((sb)->sb_datalen - (sb)->sb_cc) 13 | 14 | struct sbuf { 15 | u_int sb_cc; /* actual chars in buffer */ 16 | u_int sb_datalen; /* Length of data */ 17 | char *sb_wptr; /* write pointer. points to where the next 18 | * bytes should be written in the sbuf */ 19 | char *sb_rptr; /* read pointer. points to where the next 20 | * byte should be read from the sbuf */ 21 | char *sb_data; /* Actual data */ 22 | }; 23 | 24 | void sbfree _P((struct sbuf *)); 25 | void sbdrop _P((struct sbuf *, int)); 26 | void sbreserve _P((struct sbuf *, int)); 27 | void sbappend _P((struct socket *, struct mbuf *)); 28 | void sbcopy _P((struct sbuf *, int, int, char *)); 29 | 30 | #endif 31 | -------------------------------------------------------------------------------- /slirp-android/tftp.h: -------------------------------------------------------------------------------- 1 | /* tftp defines */ 2 | 3 | #define TFTP_SESSIONS_MAX 3 4 | 5 | #define TFTP_SERVER 69 6 | 7 | #define TFTP_RRQ 1 8 | #define TFTP_WRQ 2 9 | #define TFTP_DATA 3 10 | #define TFTP_ACK 4 11 | #define TFTP_ERROR 5 12 | #define TFTP_OACK 6 13 | 14 | #define TFTP_FILENAME_MAX 512 15 | 16 | struct tftp_t { 17 | struct ip ip; 18 | struct udphdr udp; 19 | u_int16_t tp_op; 20 | union { 21 | struct { 22 | u_int16_t tp_block_nr; 23 | u_int8_t tp_buf[512]; 24 | } tp_data; 25 | struct { 26 | u_int16_t tp_error_code; 27 | u_int8_t tp_msg[512]; 28 | } tp_error; 29 | u_int8_t tp_buf[512 + 2]; 30 | } x; 31 | }; 32 | 33 | void tftp_input(struct mbuf *m); 34 | -------------------------------------------------------------------------------- /slirp/ctl.h: -------------------------------------------------------------------------------- 1 | #define CTL_CMD 0 2 | #define CTL_EXEC 1 3 | #define CTL_ALIAS 2 4 | #define CTL_DNS 3 5 | 6 | #define CTL_SPECIAL "10.0.2.0" 7 | #define CTL_LOCAL "10.0.2.15" 8 | -------------------------------------------------------------------------------- /slirp/debug.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 1995 Danny Gasparovski. 3 | * 4 | * Please read the file COPYRIGHT for the 5 | * terms and conditions of the copyright. 6 | */ 7 | 8 | #define PRN_STDERR 1 9 | #define PRN_SPRINTF 2 10 | 11 | extern FILE *dfd; 12 | extern FILE *lfd; 13 | extern int dostats; 14 | extern int slirp_debug; 15 | 16 | #define DBG_CALL 0x1 17 | #define DBG_MISC 0x2 18 | #define DBG_ERROR 0x4 19 | #define DEBUG_DEFAULT DBG_CALL|DBG_MISC|DBG_ERROR 20 | 21 | #ifdef DEBUG 22 | #define DEBUG_CALL(x) if (slirp_debug & DBG_CALL) { fprintf(dfd, "%s...\n", x); fflush(dfd); } 23 | #define DEBUG_ARG(x, y) if (slirp_debug & DBG_CALL) { fputc(' ', dfd); fprintf(dfd, x, y); fputc('\n', dfd); fflush(dfd); } 24 | #define DEBUG_ARGS(x) if (slirp_debug & DBG_CALL) { fprintf x ; fflush(dfd); } 25 | #define DEBUG_MISC(x) if (slirp_debug & DBG_MISC) { fprintf x ; fflush(dfd); } 26 | #define DEBUG_ERROR(x) if (slirp_debug & DBG_ERROR) {fprintf x ; fflush(dfd); } 27 | 28 | 29 | #else 30 | 31 | #define DEBUG_CALL(x) 32 | #define DEBUG_ARG(x, y) 33 | #define DEBUG_ARGS(x) 34 | #define DEBUG_MISC(x) 35 | #define DEBUG_ERROR(x) 36 | 37 | #endif 38 | 39 | void debug_init _P((char *, int)); 40 | -------------------------------------------------------------------------------- /slirp/sbuf.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 1995 Danny Gasparovski. 3 | * 4 | * Please read the file COPYRIGHT for the 5 | * terms and conditions of the copyright. 6 | */ 7 | 8 | #ifndef _SBUF_H_ 9 | #define _SBUF_H_ 10 | 11 | #define sbflush(sb) sbdrop((sb),(sb)->sb_cc) 12 | #define sbspace(sb) ((sb)->sb_datalen - (sb)->sb_cc) 13 | 14 | struct sbuf { 15 | u_int sb_cc; /* actual chars in buffer */ 16 | u_int sb_datalen; /* Length of data */ 17 | char *sb_wptr; /* write pointer. points to where the next 18 | * bytes should be written in the sbuf */ 19 | char *sb_rptr; /* read pointer. points to where the next 20 | * byte should be read from the sbuf */ 21 | char *sb_data; /* Actual data */ 22 | }; 23 | 24 | void sbfree _P((struct sbuf *)); 25 | void sbdrop _P((struct sbuf *, int)); 26 | void sbreserve _P((struct sbuf *, int)); 27 | void sbappend _P((struct socket *, struct mbuf *)); 28 | void sbcopy _P((struct sbuf *, int, int, char *)); 29 | 30 | #endif 31 | -------------------------------------------------------------------------------- /slirp/tcp_subr.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0-14N/NDroid/4e5dbe69855a7fda8b74e61d9db5aa61e6ba9ee8/slirp/tcp_subr.c -------------------------------------------------------------------------------- /slirp/tftp.h: -------------------------------------------------------------------------------- 1 | /* tftp defines */ 2 | 3 | #define TFTP_SESSIONS_MAX 3 4 | 5 | #define TFTP_SERVER 69 6 | 7 | #define TFTP_RRQ 1 8 | #define TFTP_WRQ 2 9 | #define TFTP_DATA 3 10 | #define TFTP_ACK 4 11 | #define TFTP_ERROR 5 12 | #define TFTP_OACK 6 13 | 14 | #define TFTP_FILENAME_MAX 512 15 | 16 | struct tftp_t { 17 | struct ip ip; 18 | struct udphdr udp; 19 | u_int16_t tp_op; 20 | union { 21 | struct { 22 | u_int16_t tp_block_nr; 23 | u_int8_t tp_buf[512]; 24 | } tp_data; 25 | struct { 26 | u_int16_t tp_error_code; 27 | u_int8_t tp_msg[512]; 28 | } tp_error; 29 | u_int8_t tp_buf[512 + 2]; 30 | } x; 31 | }; 32 | 33 | void tftp_input(struct mbuf *m); 34 | -------------------------------------------------------------------------------- /softmmu_defs.h: -------------------------------------------------------------------------------- 1 | #ifndef SOFTMMU_DEFS_H 2 | #define SOFTMMU_DEFS_H 3 | 4 | uint8_t REGPARM __ldb_mmu(target_ulong addr, int mmu_idx); 5 | void REGPARM __stb_mmu(target_ulong addr, uint8_t val, int mmu_idx); 6 | uint16_t REGPARM __ldw_mmu(target_ulong addr, int mmu_idx); 7 | void REGPARM __stw_mmu(target_ulong addr, uint16_t val, int mmu_idx); 8 | uint32_t REGPARM __ldl_mmu(target_ulong addr, int mmu_idx); 9 | void REGPARM __stl_mmu(target_ulong addr, uint32_t val, int mmu_idx); 10 | uint64_t REGPARM __ldq_mmu(target_ulong addr, int mmu_idx); 11 | void REGPARM __stq_mmu(target_ulong addr, uint64_t val, int mmu_idx); 12 | 13 | uint8_t REGPARM __ldb_cmmu(target_ulong addr, int mmu_idx); 14 | void REGPARM __stb_cmmu(target_ulong addr, uint8_t val, int mmu_idx); 15 | uint16_t REGPARM __ldw_cmmu(target_ulong addr, int mmu_idx); 16 | void REGPARM __stw_cmmu(target_ulong addr, uint16_t val, int mmu_idx); 17 | uint32_t REGPARM __ldl_cmmu(target_ulong addr, int mmu_idx); 18 | void REGPARM __stl_cmmu(target_ulong addr, uint32_t val, int mmu_idx); 19 | uint64_t REGPARM __ldq_cmmu(target_ulong addr, int mmu_idx); 20 | void REGPARM __stq_cmmu(target_ulong addr, uint64_t val, int mmu_idx); 21 | 22 | #endif 23 | -------------------------------------------------------------------------------- /target-arm/helper-android.h: -------------------------------------------------------------------------------- 1 | /* This file must be included from helper.h */ 2 | #ifdef CONFIG_TRACE 3 | DEF_HELPER_1(traceTicks, void, i32) 4 | DEF_HELPER_0(traceInsn, void) 5 | #if HOST_LONG_BITS == 32 6 | DEF_HELPER_2(traceBB32, void, i64, i32) 7 | #endif 8 | #if HOST_LONG_BITS == 64 9 | DEF_HELPER_2(traceBB64, void, i64, i64) 10 | #endif 11 | #endif 12 | 13 | #ifdef CONFIG_MEMCHECK 14 | /* Hooks to translated BL/BLX. This callback is used to build thread's 15 | * calling stack. 16 | * Param: 17 | * First pointer contains guest PC where BL/BLX has been found. 18 | * Second pointer contains guest PC where BL/BLX will return. 19 | */ 20 | DEF_HELPER_2(on_call, void, i32, i32) 21 | /* Hooks to return from translated BL/BLX. This callback is used to build 22 | * thread's calling stack. 23 | * Param: 24 | * Pointer contains guest PC where BL/BLX will return. 25 | */ 26 | DEF_HELPER_1(on_ret, void, i32) 27 | #endif // CONFIG_MEMCHECK 28 | #include "def-helper.h" 29 | -------------------------------------------------------------------------------- /target-i386/TODO: -------------------------------------------------------------------------------- 1 | Correctness issues: 2 | 3 | - some eflags manipulation incorrectly reset the bit 0x2. 4 | - SVM: test, cpu save/restore, SMM save/restore. 5 | - x86_64: lcall/ljmp intel/amd differences ? 6 | - better code fetch (different exception handling + CS.limit support) 7 | - user/kernel PUSHL/POPL in helper.c 8 | - add missing cpuid tests 9 | - return UD exception if LOCK prefix incorrectly used 10 | - test ldt limit < 7 ? 11 | - fix some 16 bit sp push/pop overflow (pusha/popa, lcall lret) 12 | - full support of segment limit/rights 13 | - full x87 exception support 14 | - improve x87 bit exactness (use bochs code ?) 15 | - DRx register support 16 | - CR0.AC emulation 17 | - SSE alignment checks 18 | - fix SSE min/max with nans 19 | 20 | Optimizations/Features: 21 | 22 | - add SVM nested paging support 23 | - add VMX support 24 | - add AVX support 25 | - add SSE5 support 26 | - fxsave/fxrstor AMD extensions 27 | - improve monitor/mwait support 28 | - faster EFLAGS update: consider SZAP, C, O can be updated separately 29 | with a bit field in CC_OP and more state variables. 30 | - evaluate x87 stack pointer statically 31 | - find a way to avoid translating several time the same TB if CR0.TS 32 | is set or not. 33 | - move kqemu support outside target-i386. 34 | -------------------------------------------------------------------------------- /target-i386/kvm-gs-restore.h: -------------------------------------------------------------------------------- 1 | #ifndef _KVM_GS_RESTORE_H 2 | #define _KVM_GS_RESTORE_H 3 | 4 | #ifdef CONFIG_KVM_GS_RESTORE 5 | int no_gs_ioctl(int fd, int type, void *arg); 6 | int gs_base_post_run(void); 7 | int gs_base_pre_run(void); 8 | extern int gs_need_restore; 9 | #define KVM_GS_RESTORE_NO 0x2 10 | #endif 11 | 12 | #endif 13 | -------------------------------------------------------------------------------- /targphys.h: -------------------------------------------------------------------------------- 1 | /* Define target_phys_addr_t if it exists. */ 2 | 3 | #ifndef TARGPHYS_H 4 | #define TARGPHYS_H 5 | 6 | #ifdef TARGET_PHYS_ADDR_BITS 7 | /* target_phys_addr_t is the type of a physical address (its size can 8 | be different from 'target_ulong'). */ 9 | 10 | #if TARGET_PHYS_ADDR_BITS == 32 11 | typedef uint32_t target_phys_addr_t; 12 | #define TARGET_PHYS_ADDR_MAX UINT32_MAX 13 | #define TARGET_FMT_plx "%08x" 14 | #elif TARGET_PHYS_ADDR_BITS == 64 15 | typedef uint64_t target_phys_addr_t; 16 | #define TARGET_PHYS_ADDR_MAX UINT64_MAX 17 | #define TARGET_FMT_plx "%016" PRIx64 18 | #endif 19 | #endif 20 | 21 | #endif 22 | -------------------------------------------------------------------------------- /tcg/LICENSE: -------------------------------------------------------------------------------- 1 | All the files in this directory and subdirectories are released under 2 | a BSD like license (see header in each file). No other license is 3 | accepted. 4 | -------------------------------------------------------------------------------- /tcg/TODO: -------------------------------------------------------------------------------- 1 | - Add new instructions such as: clz, ctz, popcnt. 2 | 3 | - See if it is worth exporting mul2, mulu2, div2, divu2. 4 | 5 | - Support of globals saved in fixed registers between TBs. 6 | 7 | Ideas: 8 | 9 | - Move the slow part of the qemu_ld/st ops after the end of the TB. 10 | 11 | - Change exception syntax to get closer to QOP system (exception 12 | parameters given with a specific instruction). 13 | 14 | - Add float and vector support. 15 | -------------------------------------------------------------------------------- /tcg/tcg-runtime.h: -------------------------------------------------------------------------------- 1 | #ifndef TCG_RUNTIME_H 2 | #define TCG_RUNTIME_H 3 | 4 | /* tcg-runtime.c */ 5 | int32_t tcg_helper_div_i32(int32_t arg1, int32_t arg2); 6 | int32_t tcg_helper_rem_i32(int32_t arg1, int32_t arg2); 7 | uint32_t tcg_helper_divu_i32(uint32_t arg1, uint32_t arg2); 8 | uint32_t tcg_helper_remu_i32(uint32_t arg1, uint32_t arg2); 9 | 10 | int64_t tcg_helper_shl_i64(int64_t arg1, int64_t arg2); 11 | int64_t tcg_helper_shr_i64(int64_t arg1, int64_t arg2); 12 | int64_t tcg_helper_sar_i64(int64_t arg1, int64_t arg2); 13 | int64_t tcg_helper_div_i64(int64_t arg1, int64_t arg2); 14 | int64_t tcg_helper_rem_i64(int64_t arg1, int64_t arg2); 15 | uint64_t tcg_helper_divu_i64(uint64_t arg1, uint64_t arg2); 16 | uint64_t tcg_helper_remu_i64(uint64_t arg1, uint64_t arg2); 17 | 18 | #endif 19 | -------------------------------------------------------------------------------- /telephony/Jamfile: -------------------------------------------------------------------------------- 1 | Main telephony : telephony.c ; 2 | 3 | Library sysdeps : sysdeps_posix.c ; 4 | Library android_modem : android_modem.c sim_card.c ; 5 | 6 | for prog in test1 test2 { 7 | Main $(prog) : $(prog).c ; 8 | LinkLibraries $(prog) : sysdeps ; 9 | } 10 | 11 | Main simulator : simulator.c ; 12 | LinkLibraries simulator : sysdeps android_modem ; 13 | 14 | -------------------------------------------------------------------------------- /telephony/modem_driver.h: -------------------------------------------------------------------------------- 1 | /* Copyright (C) 2007-2008 The Android Open Source Project 2 | ** 3 | ** This software is licensed under the terms of the GNU General Public 4 | ** License version 2, as published by the Free Software Foundation, and 5 | ** may be copied, distributed, and modified under those terms. 6 | ** 7 | ** This program is distributed in the hope that it will be useful, 8 | ** but WITHOUT ANY WARRANTY; without even the implied warranty of 9 | ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 10 | ** GNU General Public License for more details. 11 | */ 12 | #ifndef _modem_driver_h 13 | #define _modem_driver_h 14 | 15 | #include "android_modem.h" 16 | #include "qemu-common.h" 17 | 18 | /** in telephony/modem_driver.c */ 19 | /* this is the internal character driver used to communicate with the 20 | * emulated GSM modem. see qemu_chr_open() in vl.c */ 21 | extern CharDriverState* android_modem_cs; 22 | 23 | /* the emulated GSM modem itself */ 24 | extern AModem android_modem; 25 | 26 | /* must be called before the VM runs if there is a modem to emulate */ 27 | extern void android_modem_init( int base_port ); 28 | 29 | #endif /* _modem_driver_h */ 30 | -------------------------------------------------------------------------------- /trace.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0-14N/NDroid/4e5dbe69855a7fda8b74e61d9db5aa61e6ba9ee8/trace.h -------------------------------------------------------------------------------- /trace_common.h: -------------------------------------------------------------------------------- 1 | /* This file should be removed once we update the Android qtools to 2 | * include 'android-trace_common.h' directly. 3 | */ 4 | #include "android-trace_common.h" 5 | -------------------------------------------------------------------------------- /translate.make: -------------------------------------------------------------------------------- 1 | # this sub-Makefile is included to define a dynamic translating library 2 | # 3 | EMULATOR_OP_LIBRARIES := $(EMULATOR_OP_LIBRARIES) $(LOCAL_MODULE) 4 | 5 | # we need to compile this with GCC-3.3 preferabbly 6 | # 7 | LOCAL_NO_DEFAULT_COMPILER_FLAGS := true 8 | LOCAL_CC := $(MY_CC) 9 | 10 | LOCAL_LDFLAGS += $(my_32bit_ldflags) 11 | LOCAL_CFLAGS += $(my_32bit_cflags) $(OP_CFLAGS) 12 | 13 | INTERMEDIATE := $(call intermediates-dir-for,STATIC_LIBRARIES,$(LOCAL_MODULE),true) 14 | OP_OBJ := $(INTERMEDIATE)/target-arm/op.o 15 | 16 | LOCAL_CFLAGS += -I$(INTERMEDIATE) 17 | 18 | OP_H := $(INTERMEDIATE)/op$(OP_SUFFIX).h 19 | OPC_H := $(INTERMEDIATE)/opc$(OP_SUFFIX).h 20 | GEN_OP_H := $(INTERMEDIATE)/gen-op$(OP_SUFFIX).h 21 | 22 | $(OP_H): $(OP_OBJ) $(DYNGEN) 23 | $(DYNGEN) -o $@ $< 24 | 25 | $(OPC_H): $(OP_OBJ) $(DYNGEN) 26 | $(DYNGEN) -c -o $@ $< 27 | 28 | $(GEN_OP_H): $(OP_OBJ) $(DYNGEN) 29 | $(DYNGEN) -g -o $@ $< 30 | 31 | TRANSLATE_SOURCES := target-arm/translate.c \ 32 | translate-all.c \ 33 | translate-op.c 34 | 35 | LOCAL_SRC_FILES += target-arm/op.c $(TRANSLATE_SOURCES) 36 | 37 | $(TRANSLATE_SOURCES:%.c=$(INTERMEDIATE)/%.o): $(OP_H) $(OPC_H) $(GEN_OP_H) 38 | -------------------------------------------------------------------------------- /varint.h: -------------------------------------------------------------------------------- 1 | /* Copyright (C) 2007-2008 The Android Open Source Project 2 | ** 3 | ** This software is licensed under the terms of the GNU General Public 4 | ** License version 2, as published by the Free Software Foundation, and 5 | ** may be copied, distributed, and modified under those terms. 6 | ** 7 | ** This program is distributed in the hope that it will be useful, 8 | ** but WITHOUT ANY WARRANTY; without even the implied warranty of 9 | ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 10 | ** GNU General Public License for more details. 11 | */ 12 | #include 13 | 14 | extern char *varint_encode(uint64_t value, char *buf); 15 | extern char *varint_encode_signed(int64_t value, char *buf); 16 | --------------------------------------------------------------------------------