Commit Graph

47337 Commits

Author SHA1 Message Date
Dario Casalinuovo
40dca224fc http_streamer: Style fixes and cleanup 2016-06-23 00:38:50 +02:00
Dario Casalinuovo
f1c771f8d1 HTTPMediaIO: Implement SetSize and GetSize
* SetSize requests are denied where GetSize return the request
lengths. Note that flags are changed accordingly.
2016-06-23 00:38:33 +02:00
Dario Casalinuovo
bcab157e9d AdapterIO: Size could be 0
* Also avoid seeking completely when we are sure
we have to block.
2016-06-23 00:38:33 +02:00
Dario Casalinuovo
6b697577fe AdapterIO: Add debug 2016-06-23 00:38:33 +02:00
Dario Casalinuovo
b13f52bf20 RTSPMediaIO: Improve thread control
* Instead to exit the thred we will wait until the live555
eventLoop quits peacefully.
* Better error handling.
* Implement SetSize as a not supported operation.
2016-06-23 00:38:33 +02:00
Dario Casalinuovo
6903cf9bda AdapterIO: Increase consistency
* Moved data locking in the internal buffer class, includes handling
of backend writes.
* Takes advantage of inheritance for getting the size. The choice is
made depending on the flags. This allow the implementer to easily
return a custom size by reimplementing GetSize. At the same time
a plain BAdapterIO can still have it's total size set, but the behavior
will change depending it's mutable or not.
* Some decisions are now made by considering everything in absolute
values.
* Other minor fixes.
2016-06-23 00:38:33 +02:00
Dario Casalinuovo
ad89985e7e PluginManager: Assign the BBufferIO pointer 2016-06-23 00:38:33 +02:00
Dario Casalinuovo
d56f636bf4 ape_reader: Refuse to work on streaming data
* The MACLib try to find the APE_DESCRIPTOR in the whole file, this
will not work for streams with a finite size.
2016-06-23 00:38:33 +02:00
Dario Casalinuovo
59ff587d70 Style fixes 2016-06-23 00:38:33 +02:00
Mark Hellegers
e1c98ceaf7 Add support for TLS SNI
Signed-off-by: Augustin Cavalier <waddlesplash@gmail.com>
2016-06-20 19:42:24 -04:00
Augustin Cavalier
82f44f2db1 libbe_build: Fix the new "network" Jamfile.
Was introduced in fa2dd9c45f, but was
causing weird problems (leaving stray '.o's around the tree.) The problem
was that it didn't have a space before the semicolon on the "SubDir" line,
which also ate the following UseHeaders directive, which also meant
that running "jam" inside a subdirectory was broken between that commit
and this one.
2016-06-19 19:11:50 -04:00
looncraz
311c913251 WebPositive: Fix icon background.
Due to a minor change in the handling of default colors with layouts, the
colors were adopting the system/parent colors due to no colors being
specified by the class.

The icon now adopts the document background color and synchronizes with the
url input background.

Signed-off-by: Augustin Cavalier <waddlesplash@gmail.com>
Fixes #12672. I've had this patch in my inbox for a long time, and totally
forgot about committing it...
2016-06-19 18:51:46 -04:00
Murai Takashi
9ff9025759 XHCI: Increase fScratchpadCount size
* To fix clang's '-Wtautological-constant-out-of-range-compare' warnings in xhci.cpp.
* by korli: adjust trace print macro.
Signed-off-by: Jérôme Duval <jerome.duval@gmail.com>
2016-06-19 11:52:18 +02:00
Jeroen Oortwijn
ef9b129675 bfs_fuse: Allow non-root to mount BFS partitions.
* Most FUSE options are only allowed for root, so don't add these options
  when user is not root.
* Fixes ticket #8254.

Signed-off-by: Augustin Cavalier <waddlesplash@gmail.com>
Coding style looks OK to me and there are multiple comments that
it works, so just merging it.
2016-06-18 22:11:21 -04:00
Augustin Cavalier
73e180c9b9 Revert "cppunit: Enable elf symbol patching for Haiku."
This reverts commit 56430ad800.

It builds on my machine, but apparently the buildbots choke on it...
2016-06-18 18:57:48 -04:00
Andrew Lindesay
fa2dd9c45f BPackageInfo::Parser: Validate URL strings.
Fixes #12710.

Signed-off-by: Augustin Cavalier <waddlesplash@gmail.com>
I fixed the modifications to the Jamfiles in src/bin, they were all wrong
in the patch.
2016-06-18 18:40:07 -04:00
Mark Hellegers
56430ad800 cppunit: Enable elf symbol patching for Haiku.
Fixes #12799.

Signed-off-by: Augustin Cavalier <waddlesplash@gmail.com>
2016-06-18 18:11:47 -04:00
Mark Hellegers
ac315db012 locale: Fix 24 hour format for DateTimeFormats.
Signed-off-by: Augustin Cavalier <waddlesplash@gmail.com>
Fixes #12575. I checked with PulkoMandy on IRC before merging this,
and fixed some whitespace violations of the coding style.
2016-06-18 18:09:56 -04:00
Augustin Cavalier
8981510671 Mandelbrot: Work around #12821. 2016-06-18 17:56:37 -04:00
Augustin Cavalier
ee9b10153d Mandelbrot: Implement trivial multithreading.
Does not do "incremental render" (displays progress as it's rendering.)
2016-06-18 17:56:37 -04:00
Augustin Cavalier
b92f800862 Mandelbrot: More coding style fixes. 2016-06-18 17:56:37 -04:00
Augustin Cavalier
5322a6dbc7 Mandelbrot: Add about window. 2016-06-18 17:56:37 -04:00
Augustin Cavalier
e8f108e18d Mandelbrot: Implement mouse wheel zooming. 2016-06-18 17:56:37 -04:00
Augustin Cavalier
d4bca23f9b Mandelbrot: Reset position when changing sets. 2016-06-18 17:56:37 -04:00
Augustin Cavalier
fb292a367a Mandelbrot: Add 'box-select-to-zoom' support. 2016-06-18 17:56:37 -04:00
Augustin Cavalier
c80973eb36 Mandelbrot: Add 'Iterations' menu. 2016-06-18 17:56:37 -04:00
Augustin Cavalier
84b9e76650 Mandelbrot: Rename the last global constants and remove some unused ones. 2016-06-18 17:56:37 -04:00
Augustin Cavalier
3cf08d8f27 Mandelbrot: Fix the last warnings, enable -Werror. 2016-06-18 17:56:37 -04:00
Augustin Cavalier
366c1832ca Mandelbrot: Style fixes. 2016-06-18 17:56:37 -04:00
Augustin Cavalier
54e2ef8417 Mandelbrot: Get rid of RenderPixelSmooth. 2016-06-18 17:56:37 -04:00
Augustin Cavalier
29781d2641 Mandelbrot: Implement changing sets. 2016-06-18 17:56:37 -04:00
Augustin Cavalier
d25186e7a0 Mandelbrot: Implement palette switching. 2016-06-18 17:56:37 -04:00
Augustin Cavalier
7c0a95d255 Mandelbrot: Fix resizing. 2016-06-18 17:56:37 -04:00
Augustin Cavalier
35e590e3d1 Mandelbrot: Set the pixels in the Render functions. 2016-06-18 17:56:37 -04:00
Augustin Cavalier
9daf130b6d Move the FractalEngine to its own thread. 2016-06-18 17:56:37 -04:00
Augustin Cavalier
bdf389fde5 Mandelbrot: Add zoom out, correct initial render. 2016-06-18 17:56:37 -04:00
Augustin Cavalier
86370d7b02 Mandelbrot: Scrap the old app, initial workings of a new one.
Based upon a HTML5 fractal engine by @kerwizzy (relicensed as MIT and copyright
assigned to Haiku, Inc. with permission from the author). Hacky and a mess,
but it works, and has the potentiality to be much nicer than the previous
Mandelbrot app.

Already supports rendering & zooming in, but has hacks all over the place.
2016-06-18 17:56:37 -04:00
Alexander von Gluck IV
c8cfaef631 intel_extreme: Fix PLL calculation on g4x and later 2016-06-18 16:44:31 -05:00
Alexander von Gluck IV
699b2cbcf9 intel_extreme: Introduce PLL simulation mode
* Intel extreme PLL calculations are insane at times
* This code allows us to simulate PLL calculations on
  cards without the real hardware.
2016-06-18 11:49:42 -05:00
Automatic Committer
6da8e4508a Update pci.ids from pciids.sourceforge.net 2016-06-09 05:20:19 +02:00
Dario Casalinuovo
3faf39eb5d BAdapterIO: Add initial seeking support
* This is by default provided using a relative buffer. When the
client request a seek over the range we currently have, we will
ask the backend with a SeekRequested. When the backend operation
ended successfully, the client is required to call SeekCompleted
before to return. This will cause the offset to change and the
buffer is cleaned as result. Next data received will be considered
to be at a position equal to the offset plus the relative position.
2016-06-07 16:12:39 +02:00
Rene Gollent
0b20cac7c3 libdebugger: Remove unnecessary header dependency.
- The library does not depend on libedit/ncurses, these were contained
  entirely within the application level code.
2016-06-05 18:25:33 -04:00
Rene Gollent
9968f34302 Debugger: Adjust header order.
- Ensure that the debugger lib's headers are included before those of libshared
  to minimize conflicts between the respective Thread classes. Fixes gcc2 build.

Thanks to Jerome for reporting.
2016-06-05 18:25:32 -04:00
Rene Gollent
3ef3dbceda Debugger: Fix Jamfile typo. 2016-06-04 18:42:20 -04:00
Rene Gollent
1fd3e0783b Debugger: Fix build.
- Accidentally removed necessary header dependencies during refactoring.
2016-06-04 14:17:18 -04:00
Rene Gollent
fce4895d18 Debugger: Split into core library and application.
- Add subfolder src/kits/debugger which contains the debugger's core
  functionality and lower layers. Correspondingly add headers/private/debugger
  for shared headers to be used by clients such as the Debugger application
  and eventual remote_debug_server. Adjust various files to account for
  differences as a result of the split and moves.
- Add libdebugger.so to minimal Jamfile.
2016-06-04 13:18:39 -04:00
Rene Gollent
e6687e8f3d Debugger: Add dedicated functions for global {un}init.
- Add new source file DebuggerGlobals, which contains the relevant
  functions for initializing/destroying the various singleton rosters
  that the core subsystems rely upon. It is the app's responsibility
  to ensure these are called before anything else, and as final cleanup
  at exit.
- The GUI/CLI app objects now take care of initializing the settings factory
  and ValueHandlerRoster, as those are entirely app-specific.
- Refactor calls to init functions appropriately.
2016-06-04 13:18:37 -04:00
Rene Gollent
5c8ba745e5 Debugger: Refactor SettingsManager.
- SettingsManager is now a pure virtual interface. The debugger core provides
  a no-op implementation of it which is used by default if no explicit manager
  is provided by the client requesting a new TeamDebugger. This allows consumers
  of the debugger core that have no need for settings persistence such as the
  report generator to not have to care about that particular detail at all.
- Add subclass DebuggerSettingsManager which is essentially the previous
  existing implementation. This one will go with the application portion
  of the Debugger once the separation of app and lib has been completed.
  Adjust callers accordingly.
2016-06-04 13:18:35 -04:00
Dario Casalinuovo
0957c8215e rtsp_streamer run loop in a separate thread
* Other general improvements.
* Clarify the exit policy.
* Call NotifyError in shutdownStream.
2016-06-04 15:51:50 +02:00
Dario Casalinuovo
d004f81304 Style fixes 2016-06-04 15:51:50 +02:00
Alexander von Gluck IV
f76e95bde1 h2debug: Drop reserved debug define 2016-06-03 22:47:11 -05:00
Alexander von Gluck IV
7017be48e8 Revert "h2generic: don't mess with DEBUG."
This reverts commit 63806897ef.
As discussed on the ML. Doesn't align to our normal debug practices
2016-06-03 21:55:01 -05:00
Jérôme Duval
63806897ef h2generic: don't mess with DEBUG. 2016-06-03 12:08:17 +02:00
Dario Casalinuovo
be67b1022b AdapterIO: Fix problem with RWLocker
* Originally this code didn't use an AutoLocker, when I changed it
I didn't realize I created an anonymous temporary inadvertently.
* Thanks to hamishm for catching this.
2016-06-02 22:57:57 +02:00
Dario Casalinuovo
4c7eafb74b Include testing version rtsp_streamer
* Rewritten from scratch to use live555 and BAdapterIO.
2016-06-02 19:11:38 +02:00
Dario Casalinuovo
228b5c174e Implement SetSize in AdapterIO
* Give this choice to inherited classes.
2016-06-02 19:06:10 +02:00
Automatic Committer
6b3fe8b8b2 Update pci.ids from pciids.sourceforge.net 2016-06-02 05:20:17 +02:00
Dario Casalinuovo
53058b8afc Fix x86_64 build 2016-05-31 03:26:36 +02:00
Dario Casalinuovo
fbabc74ddf http_streamer: General refactor making use of new API
* Use BUrlProtocolRoster instead of BFileRequest.
* Removed HTTPMediaIO custom code that now inherits
BAdapterIO and make the whole thing more simple.
* It work with some formats (flv, mp3, mkv) but ffmpeg fail
on others (mp4, 3gp).
* GetSize needs improvements.
2016-05-31 01:15:09 +02:00
Dario Casalinuovo
2a8ae5e815 ape_reader: Use the BPositionIO GetSize
* Avoid to seek to the end to know the total size.
2016-05-31 01:15:09 +02:00
Dario Casalinuovo
888469408c APEReader: Check initialization error 2016-05-31 01:15:09 +02:00
Dario Casalinuovo
2838795413 streamer_sniff_test: Little improvements
* Print tracks detected count.
* Delete media file before to exit.
2016-05-31 01:15:09 +02:00
Dario Casalinuovo
0a2584e464 PluginManager: Refactor to make use of new API
* General refactor, moved BDataIO emulation in a
BAdapterIO derived class, BDataIOAdapter.
* This allowed to simplify the wrapper that is now
considering everything to be seekable or pseudo-seekable.
2016-05-31 01:15:09 +02:00
Dario Casalinuovo
b660d95f88 Introduce BAdapterIO
* This class is provided as a safe multithreaded communication channel
between a BMediaIO-like interface and a Read/Write backend.
* Includes internal buffering and can be used to provide multithreaded
edit of the data.
* Current limitations include missing BOutputAdapter and
correct timeout handling.
* Future plans provide a BRemoteAdapterIO that using ports
and areas allow to easily send big data between processes.
2016-05-31 01:15:09 +02:00
Dario Casalinuovo
ec24d0c9cc http_streamer enable building 2016-05-31 01:15:09 +02:00
Dario Casalinuovo
617b62c9d9 http_streamer: Add basic draft version 2016-05-31 01:15:09 +02:00
Automatic Committer
a9469b09d8 Update pci.ids from pciids.sourceforge.net 2016-05-26 05:20:19 +02:00
Ingo Weinhold
6c06458f8a Debugger: CoreFileDebuggerInterface: Finish symbol support
If available, symbols are read from the respectice core file symbols
note. Otherwise, if available read symbols from ELF file. Finally fall
back to the dynamic symbol table from the core file image. Reusable
functionality is implemented in DebuggerInterface (GetElfSymbols()).
2016-05-22 22:10:49 +02:00
Ingo Weinhold
e07597abd9 Debugger: CoreFile: Load (commpage) symbols 2016-05-22 22:10:48 +02:00
Ingo Weinhold
c60453fd79 Core dump: Add symbols for commpage to core file 2016-05-22 22:10:48 +02:00
Ingo Weinhold
90f571868e kernel: Add elf_read_kernel_image_symbols()
Refactor new function out of _user_read_kernel_image_symbols(). Can be
used to get a kernel image's symbols from within the kernel as well.
2016-05-22 22:10:47 +02:00
Ingo Weinhold
2c50fbb8e1 Debugger: ElfFile: Provide access to symbol sections
* Add some helper methods for section access.
* Add method CreateSymbolLookup() that creates a ElfSymbolLookup for
  accessing the file's symbols.
2016-05-22 22:10:47 +02:00
Ingo Weinhold
22224d83ad Debugger: ElfSymbolLookup: Support specifying the symbol count
Getting the symbol count from the hash table is still an option.
2016-05-22 22:10:46 +02:00
Ingo Weinhold
a689b8f22e kernel: team_create_thread_start_internal(): Set text_delta
The commpage's symbol table entries are commpage start relative.
2016-05-22 22:09:53 +02:00
Rene Gollent
20df96b029 Debugger: Relocate value_handlers.
- As they are currently only used by the VariablesView, move ValueHandler
  and related code into user_interface/gui.
2016-05-22 15:57:13 -04:00
Rene Gollent
ec60909a20 Debugger: Reorganize settings classes.
- Refactor TeamUiSettingsFactory into an abstract base class with implementing
  subclass DebuggerUiSettingsFactory.
- Adjust SettingsManager to expect the UiSettingsFactory to be passed in as an
  initialization parameter, and refactor accordingly.
- Move GuiTeamUiSettings.* into a user_interface/gui subfolder.

No functional change, simply reorganization towards splitting the debugger's
core functionality into a separate library from the application to aid in
sharing with remote_debug_server.
2016-05-22 15:57:12 -04:00
Rene Gollent
880a646413 Debugger: Cleanup.
TargetHostInterface:
- Adjust _StartTeamDebugger to always require a user interface object to
  be passed in rather than implicitly falling back to GUI if unspecified.

Debugger:
- Refactor to be in compliance with the above.
2016-05-22 15:57:10 -04:00
Dario Casalinuovo
2ceb090f2f media_kit: Follow up fix to use only portable codes
* My previous commit fixed x86_64 but broke all other archs.
2016-05-20 04:25:31 +02:00
Dario Casalinuovo
f4ba347b33 media_kit: Fix debug printf werrors
* When debugging was enabled in the media_kit those were
causing the build to fail complaining about werrors.
2016-05-20 03:36:50 +02:00
Automatic Committer
0b682c58db Update pci.ids from pciids.sourceforge.net 2016-05-19 05:20:17 +02:00
Dario Casalinuovo
9d6d0aea63 PluginManager: Missing return in printf 2016-05-19 02:11:02 +02:00
Dario Casalinuovo
e7a7cd4eda Add streamer_sniff_test
* This is a simple test that open an url for streaming using
BMediaFile, the purpose is to test if streamers sniffing work
well.
2016-05-19 02:08:39 +02:00
Dario Casalinuovo
51c8ec34d0 MediaKit and MediaPlayer Style Fixes
* Suggested by korli, thanks!
2016-05-17 02:02:37 +02:00
Dario Casalinuovo
6646363eba MediaExtractor: The source is always owned by BMediaFile
* While originally I think it was a good idea to make it own the source,
then I decided to uniform the code by making the BMediaFile to be the
only responsible of that.
2016-05-17 01:45:13 +02:00
Dario Casalinuovo
21cf69c709 AddOnManager::GetStreamers: Consider maxCount and outCount
* Fix a little issue when getting the plugin.
2016-05-16 19:57:07 +02:00
Dario Casalinuovo
dc94132564 BMediaFile: Set for deletion a source obtained from url
* Added some TODOs and comments for future things that
are not priority now.
2016-05-16 19:57:07 +02:00
Rene Gollent
b8a716965a BSocketMessenger: Further improvements.
- Messages that expect a reply are now tagged with a unique ID field to
  indicate that expectation to the receiving socket messenger.
- The messenger now maintains a map of received reply IDs and their
  corresponding messages, along with a message queue of other unsolicited
  replies.
- After successfully connecting, the messenger now spawns a thread
  whose sole responsibility is receiving and parsing all incoming messages,
  and consequently sorting them into the aforementioned data structures based
  on the presence of the reply ID. Callers who are awaiting either replies or
  other messages are signalled appropriately via a semaphore. This allows
  multiplexing of both types of messages on the same socket.
2016-05-14 21:31:24 -04:00
Augustin Cavalier
9c7d0c3157 FileTypes: Remove hardcoded message what from generic class.
As noted on the commits list.
2016-05-14 15:53:13 -04:00
Mark Hellegers
213ddbf656 ResourceFile: Handle version info in resource in other endianness than host.
Fixes #12779.

Signed-off-by: Augustin Cavalier <waddlesplash@gmail.com>
Includes some minor whitespace fixes by me.
2016-05-14 14:52:47 -04:00
Mark Hellegers
49448867f5 FileTypes: Enable save menu item when changing version information of a resource.
Fixes #12780.

Signed-off-by: Augustin Cavalier <waddlesplash@gmail.com>
Some minor whitespace nits were fixed by me.
2016-05-14 13:44:04 -04:00
Augustin Cavalier
d455c57ea2 Tracker: Change QueryPoseView over to using a BRefFilter.
Fixes #12640 (was broken by hrev44493).
2016-05-14 13:22:14 -04:00
Augustin Cavalier
62f555d640 HaikuDepot: Don't use operator= on BLocker. 2016-05-13 23:38:42 -04:00
Augustin Cavalier
44d19f4d32 GameSoundDevice: Don't use operator= on BLocker. 2016-05-13 23:16:40 -04:00
Augustin Cavalier
f0a5e33a55 HttpAuthentication: Add explicit copy & assignment constructors.
So that we don't copy the BLocker. Fixes part of the build.
2016-05-13 16:49:52 -04:00
Augustin Cavalier
9b5957aae8 SMTP: Fix coding style violations. 2016-05-13 16:09:19 -04:00
Murai Takashi
b87aa6b612 BluetoothServer.cpp: fix gcc6 build
Signed-off-by: Augustin Cavalier <waddlesplash@gmail.com>
2016-05-13 15:40:51 -04:00
Murai Takashi
43e52704ce fs_cache.c: gcc6 build fix
* Reindent source code, to fix gcc6
  '-Werror=misleading-indentation' warning.

Signed-off-by: Augustin Cavalier <waddlesplash@gmail.com>
2016-05-13 15:40:26 -04:00
Murai Takashi
1991604444 FireWireDVNode.cpp: fix gcc6 build
* fix gcc6 '-Werror=literal-suffix' warning.

Signed-off-by: Augustin Cavalier <waddlesplash@gmail.com>
2016-05-13 15:39:43 -04:00
Murai Takashi
f543eb4147 config.h: fix gcc6 build
* fix gcc6 '-Werror=literal-suffix' warnings.

Signed-off-by: Augustin Cavalier <waddlesplash@gmail.com>
2016-05-13 15:38:20 -04:00
Murai Takashi
e5cb76befd accelerants/radeon: fix gcc6 build
* Reindent source code, to fix gcc6
  '-Werror=misleading-indentation' warnings.

Signed-off-by: Augustin Cavalier <waddlesplash@gmail.com>
2016-05-13 15:38:02 -04:00