summaryrefslogtreecommitdiff
path: root/native
Commit message (Collapse)AuthorAgeFilesLines
* 2008-02-27 Andrew John Hughes <gnu_andrew@member.fsf.org>Andrew John Hughes2008-02-281-0/+5
| | | | | | | * configure.ac: Check for sys/loadavg.h. * native/jni/java-lang/gnu_java_lang_management_VMOperatingSystemMXBeanImpl.c: Include sys/loadavg.h if found.
* 2008-02-26 Andrew John Hughes <gnu_andrew@member.fsf.org>Andrew John Hughes2008-02-261-104/+36
| | | | | | | | | | * gnu/java/util/prefs/EventDispatcher.java: Removed again. * gnu/java/util/prefs/GConfBasedPreferences.java, * gnu/java/util/prefs/gconf/GConfNativePeer.java, * java/util/prefs/AbstractPreferences.java, * native/jni/gconf-peer/GConfNativePeer.c: Revert to pre-release versions.
* 2008-02-22 Andrew John Hughes <gnu_andrew@member.fsf.org>Andrew John Hughes2008-02-221-8/+2
| | | | | | | | | | | | PR classpath/33751: * configure.ac: Don't check for readdir_r. * native/jni/native-lib/cpio.c: (cpio_readDir): Remove use of readdir_r, zero errno before starting and always leave a \0 at the end after strncpy. * vm/reference/java/io/VMFile.java: (list(String)): Make synchronized.
* 2008-02-21 Andrew John Hughes <gnu_andrew@member.fsf.org>Andrew John Hughes2008-02-221-22/+90
| | | | | | | | | | * gnu/java/util/prefs/EventDispatcher.java: Re-added. * gnu/java/util/prefs/GConfBasedPreferences.java, * gnu/java/util/prefs/gconf/GConfNativePeer.java, * java/util/prefs/AbstractPreferences.java, * native/jni/gconf-peer/GConfNativePeer.c: Regress to 0.96 versions.
* 2008-02-09 Dalibor Topic <robilad@kaffe.org>Dalibor Topic2008-02-091-1/+1
| | | | | | | | | | | | | | | | | | | | * native/jni/Makefile.am (all-local): Call check_jni_methods.sh directly. * scripts/Makefile.am (EXTRA_DIST): Removed check_jni_methods.sh. * include/Makefile.am (SOUND_H_FILES, GST_PEER_H_FILES) (XMLJ_H_FILES, GTKPEER_H_FILES, QTPEER_H_FILES) (GCONF_PREFS_FILES, H_FILES): Don't generate header files in the source directory, as it may not be writeable. (DISTCLEANFILES) Added H_FILES. * configure.ac (AC_CONFIG_FILES): Added scripts/check_jni_methods.sh. * scripts/check_jni_methods.sh: Removed. Moved over to .. * scripts/check_jni_methods.sh.in: New file. Added top_srcdir and top_builddir where necessary.
* 2008-02-09 Mario Torre <neugens@limasoftware.net>Mario Torre2008-02-091-16/+16
| | | | | | * include/java_util_VMTimeZone.h: Removed. * native/jni/gconf-peer/GConfNativePeer.c: all native methods, replaced GConfEngine with GConfClient and use GConfClient API instead.
* 2008-02-08 Dalibor Topic <robilad@kaffe.org>Dalibor Topic2008-02-081-22/+0
| | | | | | | | | | | | | * vm/reference/java/lang/VMFloat.java (floatToIntBits): Removed unused method. * native/jni/java-lang/java_lang_VMFloat.c (Java_java_lang_VMFloat_floatToIntBits): Removed unused function. * include/java_lang_VMDouble.h: Regenerated. * doc/cp-vmintegration.texinfo (java.lang.VMFloat): Removed unused method floatToIntBits. (java.lang.VMDouble): Use similar text to text used for floatToRawIntBits for doubleToLongBits.
* 2008-02-08 Dalibor Topic <robilad@kaffe.org>Dalibor Topic2008-02-081-30/+2
| | | | | | | | | | | | | | | | | * m4/acinclude.m4 (CLASSPATH_CHECK_JAVAH) [USER_JAVAH]: Check for gjavah-4.2 and gjavah-4.1. 2008-02-08 Dalibor Topic <robilad@kaffe.org> * vm/reference/java/lang/VMDouble.java (doubleToLongBits): Removed unused method. * native/jni/java-lang/java_lang_VMDouble.c (Java_java_lang_VMDouble_doubleToLongBits): Removed unused function. * include/java_lang_VMDouble.h: Regenerated. * doc/cp-vmintegration.texinfo (java.lang.VMDouble): Removed unused method doubleToLongBits.
* patch for avr32 supportDalibor Topic2008-01-131-0/+4
| | | | | | 2008-01-13 2007-12-18 Leen Toelen <toelen@gmail.com> * native/fdlibm/ieeefp.h: Added avr32 support.
* 2008-01-09 Stefan Huehner <stefan@huehner.org>Andrew John Hughes2008-01-113-3/+3
| | | | | | | | * native/jni/java-io/java_io_VMObjectStreamClass.c, * native/jni/java-lang/java_lang_VMDouble.c, * native/jni/java-net/java_net_VMInetAddress.c: Don't discard const by casting (const char *) to (char *) when it's not needed.
* build fixes for arm-winceDalibor Topic2007-12-287-4/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2007-12-28 Dalibor Topic <robilad@kaffe.org> * configure.ac (AC_CHECK_HEADERS): Check for netinet/in_systm.h, netinet/ip.h and net/if.h for Windows CE. * native/jni/java-net/gnu_java_net_VMPlainSocketImpl.c: Guard net/if.h include statement. Use unsigned int instead of u_int. * native/jni/java-nio/gnu_java_nio_VMChannel.c: Guard sys/mman.h include statement. * native/jni/java-nio/gnu_java_nio_VMSelector.c: Guard sys/select.h include statement. * native/jni/java-nio/javanio.c: Guard sys/select.h include statement. * native/jni/java-nio/javanio.h: Include sys/time.h. * native/jni/native-lib/cpio.c: Guard chmod call by S_IWRITE, since it's not defined in the arm-wince toolchain. * native/jni/native-lib/cpnet.h: Guard netinet/in_systm.h and netinet/ip.h include statements.
* 2007-12-10 Robert Schuster <robertschuster@fsfe.org>Robert Schuster2007-12-101-1/+2
| | | | | * native/jni/native-lib/cpio.c: (cpio_df): Mark arguments as possibly unused.
* 2007-11-27 Thomas Fitzsimmons <fitzsim@redhat.com>Thomas Fitzsimmons2007-11-272-11/+155
| | | | | | | | | | | | | | | | | | | | | * gnu/java/awt/peer/gtk/GdkGraphicsEnvironment.java, native/jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphicsEnvironment.c (isWindowUnderMouse): New method. * include/gnu_java_awt_peer_gtk_GdkGraphicsEnvironment.h: Regenerate. * gnu/java/awt/peer/gtk/GtkComponentPeer.java (getLocationOnScreen): Move WindowPeer section to... * gnu/java/awt/peer/gtk/GtkWindowPeer.java (getLocationOnScreen): New method. * gnu/java/awt/peer/gtk/GtkMouseInfoPeer.java (isWindowUnderMouse): Implement. * java/awt/Component.java (getMousePosition): New method. (getMousePositionHelper): Likewise. (mouseOverComponent): Likewise. * java/awt/Container.java (getMousePosition): New method. (mouseOverComponent): Likewise. * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c: Revert 2007-09-11 changes.
* 2007-11-23 Mario Torre <neugens@limasoftware.net>Mario Torre2007-11-231-104/+36
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * gnu/java/util/prefs/EventDispatcher.java: class removed. * gnu/classpath/toolkit/DefaultDaemonThreadFactory.java: new file. * java/util/prefs/AbstractPreferences.java: (fire(PreferenceChangeEvent)): Use DefaultDaemonThreadFactory and Executors.newSingleThreadExecutor instead of EventDispatcher. Import statement refactored accordingly. Also refactored to use 1.5 enhanced for loop and generics. (fire(NodeChangeEvent, boolean)): likewise. * gnu/java/util/prefs/GConfBasedPreferences.java (childSpi): removed startWatchingNode call. * gnu/java/util/prefs/gconf/GConfNativePeer.java: (GConfNativePeer): removed use of semaphore. (gconf_all_nodes): method name shortened, renamed from gconf_client_all_nodes (removed client_ from method signature) and declared synchronized. (gconf_suggest_sync): likewise. (gconf_get_string): likewise. (gconf_unescape_key): likewise. (gconf_set_string): likewise. (gconf_escape_key): likewise. (gconf_all_keys): likewise. (gconf_dir_exists): likewise. (getKeys): refactored to use new native method name. (getKey): likewise. (setString): likewise. (getChildrenNodes): likewise. (unset): likewise. (suggestSync): likewise. (finalize): likewise. (nodeExist): likewise. (gconf_client_add_dir): removed, not needed anymore. (gconf_client_remove_dir): likewise. (startWatchingNode): likewise. (stopWatchingNode): likewise. * native/jni/conf-peer/GConfNativePeer.c: All native methods renamed to match changes in GConfNativePeer.java Now use GConfEngine instead of GConfClient. Removed gdk_thread_enter/leave locking from all methods. (Java_gnu_java_util_prefs_gconf_GConfNativePeer_gconf_1client_1add_1dir): removed. (Java_gnu_java_util_prefs_gconf_GConfNativePeer_gconf_1client_1dir_1exists): likewise. * include/gnu_java_util_prefs_gconf_GConfNativePeer.h: regenerated.
* Make pointerClass a global JNI reference when pointers are 4 bytes wide and ↵Ian Rogers2007-11-231-5/+7
| | | | not just 8 bytes wide.
* 2007-11-06 Mario Torre <neugens@limasoftware.net>Mario Torre2007-11-063-1/+138
| | | | | | | | | | | | | | | | | | | * vm/reference/java/io/VMFile.java: (getTotalSpace): new method. (getUsableSpace): likewise. (getFreeSpace): likewise. * java/io/File.java: (getTotalSpace): new method. (getUsableSpace): likewise. (getFreeSpace): likewise. * native/jni/java-io/java_io_VMFile.c: (Java_java_io_VMFile_getTotalSpace): new function. (Java_java_io_VMFile_getFreeSpace): likewise. (Java_java_io_VMFile_getUsableSpace): likewise. * native/jni/native-lib/cpio.h: (cpio_df): new function. (CPFILE_DF_TYPE): enum type for cpio_df. * native/jni/native-lib/cpio.c: (cpio_df): new function. * include/java_io_VMFile.h: regenerated. * configure.ac: added check for statvfs.
* 2007-10-22 Dalibor Topic <robilad@kaffe.org>Dalibor Topic2007-10-221-0/+2
| | | | | * native/jni/java-nio/gnu_java_nio_EpollSelectorImpl.c: Include config-int.h for uint32_t.
* 2007-10-12 Ian Rogers <ian.rogers@manchester.ac.uk>Andrew John Hughes2007-10-121-4/+0
| | | | | | PR classpath/33746: * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkToolkit.c: Remove atexit call that makes JikesRVM deadlock.
* 2007-09-27 Mario Torre <neugens@limasoftware.net>Mario Torre2007-09-275-33/+305
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * gnu/javax/sound/sampled/gstreamer/io/GstAudioFileReaderNativePeer.java: (gstreamer_get_audio_format_stream): Removed parameter from javadoc. (gstreamer_get_audio_format_file): likewise. * gnu/javax/sound/sampled/gstreamer/lines/GstPipeline.java: Added class javadoc and implementation notes. (READ): new constant. (WRITE): likewise. (QUEUED): likewise. (CAPACITY_KEY): likewise. (lock): likewise. (prefs): new variable. (GstPipeline constructor): added OS independent rutines to detect filesystem pipes size plus save and restores this information via preferences. Now closes open pipe on user abort at VM exit. (open_native_pipe): new native method. (close_native_pipe): likewise. (detect_pipe_size): likewise. (createForWrite): update to use new native methods. (setState): removed hack to synchronize reading and writing of the filesystme named pipe. (available): implemented. (drain): new implementation, now correctly waits for data to be consumed in the pipeline. (prepareWrite): removed hack to synchronize reading and writing of the filesystme named pipe. (CleanPipeline): new inner class, used for cleaning of native pipelines still opened at VM exit. * gnu/javax/sound/sampled/gstreamer/lines/GstSourceDataLine: (getFramePosition): method still stubbed, now output "implement me" note when called (used for testing). (getLongFramePosition): likewise. (getMicrosecondPosition): likewise. * include/gnu_javax_sound_sampled_gstreamer_lines_GstPipeline.h: regenerated. * native/jni/gstreamer-peer/gst_native_data_line.c: (setup_pipeline): Changed signature, now uses a file descriptor instead of char with the name of the native pipeline. Also changed to use "fdsrc" when creating the GStreamer pipeline. (Java_gnu_javax_sound_sampled_gstreamer_lines_GstNativeDataLine_setup_1sink_1pipeline): now uses gst_native_pipeline_get_pipeline_fd to get the file descriptor of the native pipeline, instead of gst_native_pipeline_get_pipeline_name. Chaged to use "autoaudiosink" as GStreamer audio sink. (gst_newpad): fix indentation. * native/jni/gstreamer-peer/gst_native_pipeline.c: include new headers for compilation. (capacityFID): new filed for caching. (GST_DETECTED_PIPE_CAPACITY): new field. (enum): maps READ and WRITE in GstPipeline class. (_GstNativePipelinePrivate.fd): new field. (create_name): new function. (init_pointer_IDs): likewise. (get_free_space): likewise. (Java_gnu_javax_sound_sampled_gstreamer_lines_GstPipeline_init_1id_1cache): cache capacityFID. (Java_gnu_javax_sound_sampled_gstreamer_lines_GstPipeline_init_1instance): get value for GST_DETECTED_PIPE_CAPACITY from mapped class. (Java_gnu_javax_sound_sampled_gstreamer_lines_GstPipeline_set_1state): removed "unused" attribute from parameters, clean pipeline name on exit. (Java_gnu_javax_sound_sampled_gstreamer_lines_GstPipeline_open_1native_1pipe): new function. (Java_gnu_javax_sound_sampled_gstreamer_lines_GstPipeline_close_1native_1pipe): likewise. (Java_gnu_javax_sound_sampled_gstreamer_lines_GstPipeline_create_1named_1pipe): pipe name created with a dedicated function. (Java_gnu_javax_sound_sampled_gstreamer_lines_GstPipeline_available): new function. * native/jni/gstreamer-peer/gst_native_pipeline.h: (gst_native_pipeline_clean): removed. (gst_native_pipeline_get_pipeline_fd): new function. * native/jni/gstreamer-peer/gst_peer.h: new defines used by the peer. * native/jni/gstreamer-peer/gstreamer_io_peer.c: (_GST_MALLOC_SIZE_): moved in gst_peer.h.
* 2007-09-27 Dalibor Topic <robilad@kaffe.org>Dalibor Topic2007-09-272-1/+3
| | | | | | * native/fdlibm/dtoa.c: Include mprec.h after system includes. * native/fdlibm/mprec.h [_EXFUN]: Only define _EXFUN if it is not already defined.
* 2007-09-19 Dalibor Topic <robilad@kaffe.org>Dalibor Topic2007-09-191-1/+1
| | | | | * native/jni/native-lib/Makefile.am (AM_LDFLAGS) Use CLASSPATH_CONVENIENCE flags, as it is a convenience library.
* 2007-09-19 Dalibor Topic <robilad@kaffe.org>Dalibor Topic2007-09-191-0/+1
| | | | * native/fdlibm/dtoa.c: Include stdlib.h to have a declaration for free.
* 2007-09-13 David P Grove <groved@us.ibm.com>Dalibor Topic2007-09-131-2/+5
| | | | | | PR 30275 * native/fdlibm/fdlibm.h [_AIX]: Define _ALL_SOURCE rather than _XOPEN_SOURCE to fix build on AIX 5.
* 2007-09-12 Robert Schuster <robertschuster@fsfe.org>Robert Schuster2007-09-121-1/+2
| | | | | * native/jni/java-net/gnu_java_net_local_LocalSocketImpl.c: Add #ifndef guard around definition of _GNU_SOURCE.
* 2007-09-11 Roman Kennke <roman@kennke.org>Roman Kennke2007-09-119-180/+116
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * native/jni/gtk-peer/gnu_java_awt_peer_gtk_CairoGraphics2D.c Removed unused includes. * native/jni/gtk-peer/gnu_java_awt_peer_gtk_CairoSurface.c Removed unused includes. * native/jni/gtk-peer/gnu_java_awt_peer_gtk_ComponentGraphics.c Removed unusued excludes. Put Xrender includes in HAVE_XRENDER conditional. (flush): Use gdk_display_flush() instead of XFlush(). (initState): Use GDK/Cairo functions to get cairo_t object. (initFromVolatile): Likewise. * native/jni/gtk-peer/gnu_java_awt_peer_gtk_ComponentGraphicsCopy.c Removed unused includes. * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GdkRobotPeer.c Use HAVE_XTEST conditionals for code that uses XTest. * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkImage.c Removed unused includes. * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkToolkit.c Removed unused includes. * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkVolatileImage.c Removed unused includes. * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c Removed unused includes. Rewrote frame-extents code to use gdk_window_get_frame_extents() rather than the X window properties directly. * include/gnu_java_awt_peer_gtk_ComponentGraphics.h (initFromVolatile): Removed width and height parameters. * gnu/java/awt/peer/gtk/ComponentGraphics.java (initFromVolatile): Remove width and height parameters. * gnu/java/awt/peer/gtk/VolatileImageGraphics.java (VolatileImageGraphics): Use initFromVolatile without width and height. * configure.ac: Check for presence of XTest, and define HAVE_XTEST accordingly.
* 2007-09-08 Michael Koch <konqueror@gmx.de>Michael Koch2007-09-081-2/+2
| | | | | * native/jni/midi-alsa/Makefile.am (AM_CFLAGS): Removed @ERROR_CFLAGS@ to not fail build with GCC 4.2.
* 2007-08-23 Francis Kung <fkung@redhat.com>Francis Kung2007-08-231-8/+24
| | | | | | | | | | | | | | | | * gnu/java/awt/peer/gtk/GtkComponentPeer.java: (getLocationOnScreen): Check for GTK main thread. (gtkWidgetGetLocationOnScreenUnlocked): New native method. (gtkWindowGetLocationOnScreenUnlocked): New native method. * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c: (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_gtkWindowGetLocationOnScreen): Delegate to unlocked function. (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_gtkWindowGetLocationOnScreenUnlocked): New function. (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_gtkWidgetGetLocationOnScreen): Delegate to unlocked function. (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_gtkWidgetGetLocationOnScreenUnlocked): New function.
* 2007-08-19 Mario Torre <neugens@limasoftware.net>Mario Torre2007-08-191-2/+2
| | | | | * native/jni/gstreamer-peer/gst_native_pipeline.c: (init_pointer_IDs): fix typo that prevents compilation on 64 bit systems.
* 2007-08-18 Mario Torre <neugens@limasoftware.net>Mario Torre2007-08-1812-822/+1435
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * examples/gnu/classpath/examples/sound/AudioPlayerSample.java: new file. * gnu/javax/sound/sampled/gstreamer/GStreamerMixer.java: removed unused import. * gnu/javax/sound/sampled/gstreamer/io/GstAudioFileWriter.java: likewise. * gnu/javax/sound/sampled/gstreamer/io/GstAudioFileReaderNativePeer.java: (gstreamer_get_audio_format_stream): changed signature tu accept a Pointer object instead of a BufferedInputStream. (GstHeader): (getAudioFormat(InputStream, GstHeader)): new private method. (getAudioFormat(public)): refactored to use the private getAudioFormat with shared functionality. (getAudioFormat(GstHeader header)): removed a redundant check. (init_id_cache): new native method. * gnu/javax/sound/sampled/gstreamer/io/GstInputStream.java: new file. * gnu/javax/sound/sampled/gstreamer/lines/GstDataLine.java: (GstDataLine.State): removed enum. (state): removed local variable. (isRunning): removed method. (open): likewise. (setFormat): new methods. (setOpen): likewise. (setBufferSize): likewise. * gnu/javax/sound/sampled/gstreamer/lines/GstNativeDataLine.java: (createSourcePipeline): new method. (setup_sink_pipeline): likewise. (init_id_cache): likewise. Added to the static initializer. * gnu/javax/sound/sampled/gstreamer/lines/GstPipeline.java: (GstPipeline.State): new enum. (state): new local variable. (name): likewise. (output): likewise. (source): likewise. (ready): likewise. (getState): new method. (closePipe): likewise. (create_named_pipe): likewise. (set_state): likewise. (available): likewise. (drain): likewise. (GstPipeline): likewise. (close): likewise. (prepareWrite): likewise. (flush): likewise. (write): likewise. (init_instance): likewise. (read): likewise. (createForWrite): likewise. (setState): likewise. (getNativeClass): likewise. (init_id_cache): likewise. * gnu/javax/sound/sampled/gstreamer/lines/GstSourceDataLine.java: (pipeline): new local variable. (opne): likewise. (isActive): method implemented. (stop): likewise. (open): likewise. (flush): likewise. (isRunning): likewise. (start): likewise. (write): likewise. (available): likewise. (drain): likewise. (close): likewise. * include/Makefile.am: added entry to generate new header file. * include/gnu_javax_sound_sampled_gstreamer_io_GstAudioFileReaderNativePeer.h: regenerated. * include/gnu_javax_sound_sampled_gstreamer_io_GstInputStream.h: likewise. * include/gnu_javax_sound_sampled_gstreamer_lines_GstNativeDataLine.h: likewise. * include/gnu_javax_sound_sampled_gstreamer_lines_GstPipeline.h: likewise. * native/jni/gstreamer-peer/gstclasspathsrc.c: removed. * native/jni/gstreamer-peer/gstinputstream.c: likewise. * native/jni/gstreamer-peer/GStreamerIOPeer.c: likewise. * native/jni/gstreamer-peer/gstinputstream.h: likewise. * native/jni/gstreamer-peer/gstclasspathsrc.h: likewise. * native/jni/gstreamer-peer/Makefile.am: new file added for compilation. code reformat to keep the 80 columns constraint. * native/jni/gstreamer-peer/gst_native_pipeline.h: new file. * native/jni/gstreamer-peer/gst_input_stream.c: likewise. * native/jni/gstreamer-peer/gst_input_stream.h: likewise. * native/jni/gstreamer-peer/gst_classpath_src.c: likewise. * native/jni/gstreamer-peer/gst_native_pipeline.c: likewise. * native/jni/gstreamer-peer/gst_native_data_line.c: likewise. * native/jni/gstreamer-peer/gst_classpath_src.h: likewise. * native/jni/gstreamer-peer/gstreamer_io_peer.c: likewise. * native/jni/gstreamer-peer/gst_peer.c: likewise. * native/jni/gstreamer-peer/gst_peer.h: likewise.
* 2007-07-10 Roman Kennke <roman@kennke.org>Roman Kennke2007-07-101-2/+2
| | | | | | PR 32645 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_ComponentGraphicsCopy.c (copyPixbuf): Swap asserts.
* 2007-07-08 Mario Torre <neugens@limasoftware.net>Mario Torre2007-07-098-3/+1821
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * gnu/javax/sound/sampled/gstreamer: new package hierarchy. * gnu/javax/sound/sampled/gstreamer/io/GstAudioFileReader.java: new file. * gnu/javax/sound/sampled/gstreamer/io/GstAudioFileReaderNativePeer.java: likewise. * gnu/javax/sound/sampled/gstreamer/lines/GstDataLine.java: likewise. * gnu/javax/sound/sampled/gstreamer/GStreamerMixer.java: likewise. * gnu/javax/sound/sampled/gstreamer/GStreamerMixerProvider.java: likewise. * gnu/javax/sound/AudioSecurityManager.java: likewise. * gnu/javax/sound/sampled/gstreamer/lines/GstNativeDataLine.java: likewise. * gnu/javax/sound/sampled/gstreamer/lines/GstSourceDataLine.java: likewise. * gnu/javax/sound/sampled/gstreamer/lines/GstPipeline.java: likewise. * gnu/javax/sound/sampled/gstreamer/io/GstAudioFileWriter.java: likewise. * resource/META-INF/services/javax.sound.sampled.spi.AudioFileReader.in: likewise. * resource/META-INF/services/javax.sound.sampled.spi.MixerProvider.in: likewise. * resource/META-INF/services/javax.sound.sampled.spi.MixerProvider: likewise. * native/jni/gstreamer-peer/gstclasspathsrc.c: likewise. * native/jni/gstreamer-peer/gstclasspathsrc.h: likewise. * native/jni/gstreamer-peer/gstinputstream.c: likewise. * native/jni/gstreamer-peer/gstinputstream.h: likewise. * native/jni/gstreamer-peer/GStreamerIOPeer.c: likewise. * native/jni/gstreamer-peer/Makefile.am: likewise. * native/jni/gstreamer-peer/.cvsignore: likewise. * include/gnu_javax_sound_sampled_gstreamer_io_GstAudioFileReaderNativePeer.h: likewise. * include/Makefile.am: add gstreamer generated headers. * configure.ac: add gstreamer sound backend configuration. The backend is currently disabled by default. * native/jni/Makefile.am: code to allow compilation of the gstreamer sound backend. * javax/sound/sampled/spi/MixerProvider.java (isMixerSupported): indentation fixes. * javax/sound/sampled/AudioFormat.java (toString): fix method to display informations only when available. * javax/sound/sampled/DataLine.java: (Info.isFormatSupported): indentation fixes. (Info): indentation fixes. (Info.toString): indentation fixes. (Info.matches): indentation fixes.
* 2007-06-25 Roman Kennke <roman@kennke.org>Roman Kennke2007-06-251-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * gnu/java/awt/peer/ClasspathFontPeer.java (canDisplay): Take character as integer codepoint. * gnu/java/awt/peer/gtk/GdkFontPeer.java (canDisplay): Take character as integer codepoint. * gnu/java/awt/peer/gtk/GtkComponentPeer.java (postMouseEvent): Use MouseEvent constructor with absolute coordinates to avoid deadlock (over getLocationOnScreen()). * gnu/java/awt/peer/gtk/VolatileImageGraphics.java (getDeviceConfiguration): Fall back to the default configuration if the component is not set. * gnu/java/awt/peer/qt/QtFontMetrics.java (canDisplay): Take character as integer codepoint. * gnu/java/awt/peer/qt/QtFontPeer.java (canDisplay): Take character as integer codepoint. * gnu/java/awt/peer/x/XFontPeer2.java (canDisplay): Take character as integer codepoint. * include/gnu_java_awt_peer_qt_QtFontMetrics.h (canDisplay): Take character as integer codepoint. * java/awt/Font.java (DIALOG): New constant. (DIALOG_INPUT): New constant. (MONOSPACED): New constant. (SANS_SERIF): New constant. (SERIF): New constant. (Font(Font)): New constructor. (canDisplay(char)): Use new canDisplay(int) method. (canDisplay(int)): New method. (hasLayoutAttributes): New method. * java/awt/event/MouseEvent.java (absX,absY): New fields. (MouseEvent): New constructor with absolute coordinates. (getLocationOnScreen): New method. (getXOnScreen): New method. (getYOnScreen): New method. * native/jni/qt-peer/qtfontmetrics.cpp (canDisplay): Take character as integer codepoint.
* * native/jni/native-lib/cpnet.cMark Wielaard2007-06-251-2/+4
| | | | | (cpnet_aton) Moved variable declaration of inet6_addr so it is actually in the scope of its use.
* 2007-06-25 Dalibor Topic <robilad@kaffe.org>Dalibor Topic2007-06-255-27/+43
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * native/jni/java-net/gnu_java_net_VMPlainSocketImpl.c (THROW_NO_IPV6): New macro. (Java_gnu_java_net_VMPlainSocketImpl_bind6) Conditionally build code if IPv6 facilities are available, otherwise throw an error. (Java_gnu_java_net_VMPlainSocketImpl_setMulticastInterface6, Java_gnu_java_net_VMPlainSocketImpl_join6, Java_gnu_java_net_VMPlainSocketImpl_leave6, Java_gnu_java_net_VMPlainSocketImpl_joinGroup6, Java_gnu_java_net_VMPlainSocketImpl_leaveGroup6) Use THROW_NO_IPV6. * native/jni/java-net/java_net_VMInetAddress.c (Java_java_net_VMInetAddress_getHostByAddr, Java_java_net_VMInetAddress_getHostByName, Java_java_net_VMInetAddress_aton) Build IPv6 dependant code conditionally on IPv6 facilities being available. Switched if-else blocks where necessary to allow that. * native/jni/java-net/javanet.c (_javanet_get_ip_netaddr) Build IPv6 dependant code conditionally on IPv6 facilities being available. * native/jni/native-lib/cpnet.c (cpnet_getHostByName, cpnet_getHostByAddr) Build IPv6 dependant code conditionally on IPv6 facilities being available. (cpnet_aton) Moved variable declaration of inet6_addr to the scope of its use. Build IPv6 dependant code conditionally on IPv6 facilities being available. * native/jni/native-lib/cpnet.h (cpnet_newIPV6Address, cpnet_isIPV6Address, cpnet_IPV6AddressToBytes, cpnet_bytesToIPV6Address): Make IPv6 dependant utility functions available conditionally on IPv6 facilities being available.
* 2007-06-25 Dalibor Topic <robilad@kaffe.org>Dalibor Topic2007-06-241-0/+4
| | | | | | | | | * configure.ac: Check for MSG_WAITALL, since it does not exist on Cygwin. * native/jni/java-nio/gnu_java_nio_VMChannel.c (Java_gnu_java_nio_VMChannel_receive): Define MSG_WAITALL as 0 if it does not exist.
* 2007-06-24 Ito Kazumitsu <kaz@maczuka.gcd.org>Ito Kazumitsu2007-06-241-1/+22
| | | | | | | Fixes bug #30377 * native/jni/java-nio/gnu_java_nio_VMChannel.c (Java_gnu_java_nio_VMChannel_available): Retry using fstat if ioctl fails with ENOTTY.
* 2007-06-21 Roman Kennke <roman@kennke.org>Roman Kennke2007-06-214-9/+6
| | | | | | | | | * native/jni/gtk-peer/gnu_java_awt_peer_gtk_CairoGraphics2D.c, * native/jni/gtk-peer/gnu_java_awt_peer_gtk_ComponentGraphicsCopy.c, * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkFileDialogPeer.c: Fix some type signatures. * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphicsEnvironment.c: Fix intendation.
* 2007-05-30 Mark Wielaard <mark@klomp.org>Mark Wielaard2007-05-301-1/+1
| | | | | | | Fixes bug #32030 reported by Steve.Blackburn@anu.edu.au * native/jni/java-nio/gnu_java_nio_VMChannel.c (Java_gnu_java_nio_VMChannel_open): Only set O_TRUNC on CPNIO_APPEND and O_WRONLY.
* 2007-05-24 Ito Kazumitsu <kaz@maczuka.gcd.org>Ito Kazumitsu2007-05-242-3/+52
| | | | | | | * native/jni/java-nio/gnu_java_nio_VMChannel.c (Java_gnu_java_nio_VMChannel_available): Use fstat or select as an alternative to ioctl. * native/jni/native-lib/cpio.c(cpio_availableBytes): Corrected typo.
* 2007-05-08 Andrew John Hughes <gnu_andrew@member.fsf.org>Andrew John Hughes2007-05-081-3/+100
| | | | | * native/jni/gtk-peer/gtkpeer.c: Added support for 64-bit architectures.
* 2007-04-25 Roman Kennke <roman@kennke.org>Roman Kennke2007-04-2545-829/+1001
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * gnu/java/awt/peer/gtk/GdkFontPeer.java, * gnu/java/awt/peer/gtk/GdkGraphicsEnvironment.java, * gnu/java/awt/peer/gtk/GdkPixbufDecoder.java, * gnu/java/awt/peer/gtk/GdkScreenGraphicsDevice.java, * gnu/java/awt/peer/gtk/GtkGenericPeer.java, * gnu/java/awt/peer/gtk/GtkToolkit.java: Added fields to hold the native state. Added class initialization things to fetch the JNI field IDs. * include/gnu_java_awt_peer_gtk_GdkGraphicsEnvironment.h, * include/gnu_java_awt_peer_gtk_GdkScreenGraphicsDevice.h, * include/gnu_java_awt_peer_gtk_GtkGenericPeer.h, * include/gnu_java_awt_peer_gtk_GtkToolkit.h: Added / changed class init methods for field ID initialization. * native/jni/classpath/Makefile.am: Removed native_state stuff. * native/jni/classpath/native_state.c, * native/jni/classpath/native_state.h: Removed. * native/jni/gconf-peer/Makefile.am: Removed native_state stuff. * native/jni/gtk-peer/Makefile.am: Removed native_state stuff. * native/jni/gtk-peer/cairographics2d.h, * native/jni/gtk-peer/gdkdisplay.h, * native/jni/gtk-peer/gdkfont.h, * native/jni/gtk-peer/GtkDragSourceContextPeer.c, * native/jni/gtk-peer/gnu_java_awt_peer_gtk_CairoGraphics2D.c, * native/jni/gtk-peer/gnu_java_awt_peer_gtk_ComponentGraphics.c, * native/jni/gtk-peer/gnu_java_awt_peer_gtk_ComponentGraphicsCopy.c, * native/jni/gtk-peer/gnu_java_awt_peer_gtk_FreetypeGlyphVector.c, * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GdkFontPeer.c, * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphicsEnvironment.c, * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GdkPixbufDecoder.c, * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GdkScreenGraphicsDevice.c, * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkButtonPeer.c, * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCanvasPeer.c, * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxMenuItemPeer.c, * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxPeer.c, * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkChoicePeer.c, * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c, * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEmbeddedWindowPeer.c, * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkFileDialogPeer.c, * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkFramePeer.c, * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkGenericPeer.c, * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkLabelPeer.c, * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkListPeer.c, * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuBarPeer.c, * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuComponentPeer.c, * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuItemPeer.c, * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuPeer.c, * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPanelPeer.c, * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPopupMenuPeer.c, * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkScrollPanePeer.c, * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkScrollbarPeer.c, * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextAreaPeer.c, * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextFieldPeer.c, * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkToolkit.c, * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkVolatileImage.c, * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c, * native/jni/gtk-peer/gtk_jawt.c: Removed native state stuff and replaced that with an approach to store the native state of an object directly in that object. * native/jni/gtk-peer/gtkpeer.c: New file. Implements the new native state management. * native/jni/gtk-peer/gtkpeer.h: Remove NSA stuff and added prototypes for new native state handling.
* 2007-04-18 Dalibor Topic <robilad@kaffe.org>Dalibor Topic2007-04-181-1/+1
| | | | | | | | | | | | | | | | | | * include/GtkDragSourceContextPeer.h: Removed, renamed to .. * include/gnu_java_awt_dnd_peer_gtk_GtkDragSourceContextPeer.h: New file. * native/jni/gtk-peer/GtkDragSourceContextPeer.c: Include gnu_java_awt_dnd_peer_gtk_GtkDragSourceContextPeer.h. * include/Makefile.am (GTKPEER_H_FILES): Renamed GtkDragSourceContextPeer.h to gnu_java_awt_dnd_peer_gtk_GtkDragSourceContextPeer.h per current convention. Use portable construct to create gtk and libxmlj peer headers. Depend on the java source code, rather then the class files in order to avoid spurious regeneration.
* 2007-04-18 Dalibor Topic <robilad@kaffe.org>Dalibor Topic2007-04-181-1/+0
| | | | | | | | | | | * native/jni/xmlj/xmlj_xpath.c: Don't include gnu_xml_libxmlj_dom_GnomeXPathNSResolver.h. * include/gnu_xml_libxmlj_dom_GnomeXPathNSResolver.h: Removed empty header file. * include/Makefile.am (XMLJ_H_FILES): Removed gnu_xml_libxmlj_dom_GnomeXPathNSResolver.h.
* 2007-04-17 Andrew John Hughes <gnu_andrew@member.fsf.org>Andrew John Hughes2007-04-173-3/+24
| | | | | | | | * native/jni/java-net/local.c: Fix import of FIONREAD. * native/jni/java-nio/gnu_java_nio_VMChannel.c, * native/jni/native-lib/cpnet.c: Likewise.
* 2007-04-16 Dalibor Topic <robilad@kaffe.org>Dalibor Topic2007-04-161-1/+1
| | | | | * native/plugin/Makefile.am (libgcjwebplugin_la_LDFLAGS): Added AM_LDFLAGS for automake 1.10.
* 2007-04-15 Dalibor Topic <robilad@kaffe.org>Dalibor Topic2007-04-151-1/+1
| | | | | * native/jni/java-lang/Makefile.am (libjavalang_la_LIBADD): Fix portability warnings from automake 1.10.
* 2007-04-15 Dalibor Topic <robilad@kaffe.org>Dalibor Topic2007-04-151-2/+0
| | | | * native/target/.cvsignore: Removed.
* 2007-04-15 Roman Kennke <roman@kennke.org>Roman Kennke2007-04-152-4/+0
| | | | | * native/target/Linux/.cvsignore, * native/target/generic/.cvsignore: Removed.
* 2007-04-12 Francis Kung <fkung@redhat.com>Francis Kung2007-04-121-3/+3
| | | | | | | | PR 31539 * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GdkFontPeer.c (ft2_map): New static variable. (Java_gnu_java_awt_peer_gtk_GdkFontPeer_initStaticState): Set up ft2_map. (Java_gnu_java_awt_peer_gtk_GdkFontPeer_setFont): Use cached ft2_map.
* 2007-04-12 Christian Thalinger <twisti@complang.tuwien.ac.at>gbenson-calendar-branchpointChristian Thalinger2007-04-122-1/+14
| | | | | | | | * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkClipboard.c (clipboard_get_func): Call DeleteLocalRef. * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkSelection.c (clipboard_targets_received): Likewise. (clipboard_uris_received): Likewise.