Commit Graph

54215 Commits

Author SHA1 Message Date
Adrien Destugues
0e17424c6f PVS 112: check result of memcmp against 0. 2015-07-26 16:57:07 +02:00
Adrien Destugues
3ec6800839 PVS 109: useless check
error was already checked one line above.
2015-07-26 16:57:06 +02:00
Adrien Destugues
2f8639483a PVS 170: use boolean for if comparison
Direct use of strcmp result in if is against our coding style.
2015-07-26 16:57:05 +02:00
Adrien Destugues
67d9a9cb16 PVS 104: duplicate if check. 2015-07-26 16:57:03 +02:00
Adrien Destugues
c13e346a48 PVS 95-103: useless error checks
These conditions were always true, remove them.
2015-07-26 16:57:02 +02:00
Adrien Destugues
69ee6a6d62 PVS 78-85: useless checks
* These were always true, so remove them.
2015-07-26 16:57:01 +02:00
Adrien Destugues
32a6b04592 PVS76: useless check of null pointer
Refactor BResources::WriteResource to return early in case of errors,
instead of checking permanently if (error == B_OK). Makes the code more
readable and removes some useless checks.
2015-07-26 16:56:59 +02:00
Alexander von Gluck IV
89de782660 test/kits/net: Fix build of cookie_test 2015-07-26 09:55:45 -05:00
Alexander von Gluck IV
eef1c442a3 test/kits/net: Fix build of NetEndpointTest 2015-07-26 09:47:50 -05:00
Jérôme Duval
2a868d7645 glibc: replace extern __inline with __extern_inline.
* this helps to comply with C99. As a reminder, some of these headers
are also used by x86_gcc2 src/libs/stdc++.
2015-07-26 10:09:22 +02:00
Jérôme Duval
189156a069 Boot stdio.h: define a bunch of functions required by c++ headers. 2015-07-26 10:07:21 +02:00
Jérôme Duval
4fb4b32043 Force use of std::isnan() in agg_conv_curve.h.
cmath could be included before inclusion of this header, thus undefining isnan.
2015-07-25 23:42:14 +02:00
Jérôme Duval
9cd62a24e5 Fixed C++11 warnings.
invalid suffix on literal; C++11 requires a space between literal and string macro
[-Werror=literal-suffix]
2015-07-25 23:42:13 +02:00
Jérôme Duval
66fdfe3270 setmime: hash() conflicts with std::hash.
* found with GCC6
2015-07-25 23:42:13 +02:00
Jérôme Duval
d0017f3766 libtracker.so: fixed parenthesis warning on not operator...
* "logical not is only applied to the left hand side of comparison"
* found with GCC6
2015-07-25 23:42:13 +02:00
Jérôme Duval
b2a0b6323e screenshot: fixed parenthesis warning on not operator...
* "logical not is only applied to the left hand side of comparison"
* found with GCC6
2015-07-25 23:42:12 +02:00
Markus Himmel
5dab45be76 Screenshot: Fix aspect ratio.
The aspect ratio of the preview was wrong for two reasons:
 * The height of the preview was always assumed to be 150 while it actually
   depends on the layout.
 * The size was then only set using SetExplicitMinSize(), which is not
   sufficient to actually change the size to the desired value.

Fixes #11644.

Signed-off-by: Augustin Cavalier <waddlesplash@gmail.com>
2015-07-25 17:26:55 -04:00
Augustin Cavalier
d6f83df4bb servers/net: DHCPClient: Hard-code the message IDs.
Even though C++ should increment the enum for us, since these IDs
are set and used by things outside of this file, we should hard-code
the numbers.

No functional change (or if there is, it means there's a compiler bug
somewhere.)
2015-07-25 11:11:03 -04:00
Augustin Cavalier
971f8f5041 partitioning_systems/gpt: Make _IsHeaderValid and _ValidateHeaderCRC static.
Thanks to Pawel for reviewing!
2015-07-25 11:04:59 -04:00
Augustin Cavalier
ca8ed5ea66 index_server: Fix the build.
Partially based on a patch from Paradoxianer. Thanks!
2015-07-25 10:33:45 -04:00
Andrew Lindesay
3860139319 hvif2png: Fix build on Mac OS X.
* Add support for macports lib and headers dirs.
 * Link libs change for Mac OS X for tool build.

Signed-off-by: Augustin Cavalier <waddlesplash@gmail.com>
2015-07-25 10:23:24 -04:00
Josef Gajdusek
4a839f2daa partitioning_systems/gpt: Fix _IsHeaderValid().
Signed-off-by: Augustin Cavalier <waddlesplash@gmail.com>
2015-07-25 10:15:24 -04:00
Augustin Cavalier
e4b8ed4a85 images/regular: Delete DVB stuff.
Thanks to Axel for reviewing!
2015-07-25 10:05:00 -04:00
autonielx
5d8a237146 Update translations from Pootle 2015-07-25 06:38:39 +02:00
Rene Gollent
3bb17aa98a Debugger: Minor refactoring.
VariablesView:
- Factor out setting up a variable edit request into a helper function.
Adjust table node invocation accordingly.
- Add Edit variable context menu item if appropriate.
2015-07-24 23:38:04 -04:00
Rene Gollent
af92957fd9 Debugger: Minor tweak to enumeration editor.
- Don't return result of SelectOptionFor(). It's possible to attempt
to edit an enum value that hasn't yet been initialized, in which case
its current value might not map to any of the defined enumerations, and
the resulting error would prevent editing from being allowed.
2015-07-24 23:37:50 -04:00
Rene Gollent
410b38b5c5 libroot: Fix strto{i,u}max.
- According to POSIX, these functions should map to whatever's appropriate
  for the platform's intmax_t size, which in our case is a 64-bit integer.
  Our (2004) implementation, however, was calling the 32-bit variations of
  strto*(), leading to truncation for larger values.
2015-07-24 21:57:11 -04:00
Rene Gollent
f5d564a1d3 Debugger: Implement float value editor.
FloatValueFormatter:
- Implement parsing/validation hooks.

FloatValueHandler:
- Implement GetTableCellValueEditor() to accordingly return a
  (newly implemented) TableCellFloatEditor. This allows variable
  value editing for float/double variables.
2015-07-24 19:22:08 -04:00
Rene Gollent
5c5c25163d Debugger: Tweaks for float values.
FloatValue:
- Store value as variant rather than double so as to be able to
  later differentiate between float vs double.

PrimitiveValueNode:
- Construct float nodes with variant value.
2015-07-24 19:20:52 -04:00
Rene Gollent
d88d941c90 Debugger: Finish variable edit support.
VariablesView:
- Intercept table node invocations. If the invocation corresponds to
  a writable variable, request a corresponding editor and bring up a
  an edit window for it.
- Handle requests from the edit window to write the final updated value
  of the variable.

This implements the last missing piece for ticket #9708, except for an
editor for floats.
2015-07-24 17:09:08 -04:00
Rene Gollent
473b2c6ac9 Debugger: Add VariablesView listener hook.
VariablesView::Listener:
- Add hook for requesting value node value updates.

TeamWindow:
- Implement VariablesView listener hook and forward accordingly to
  TeamDebugger.
2015-07-24 17:08:53 -04:00
Rene Gollent
7d25ab995d Debugger: Add hook for variable value writing.
WriteValueNodeJob:
- Implement async job that creates a ValueWriter to update a variable
  value on request.

UserInterfaceListener:
- Add hook for requesting that a node be updated with a new value.
  Implement in TeamDebugger by scheduling a WriteValueNodeJob.
2015-07-24 17:08:53 -04:00
Rene Gollent
9b0d97576d Debugger: Add variable editing utility window.
VariableEditWindow:
- Implement container window for variable value editors. While
  not as ideal as initially intended, this will handle presenting value
  editing to the user until more work is done on the table cell editing
  aspect of things.
2015-07-24 17:08:52 -04:00
Rene Gollent
55d4f9ff18 Debugger: Implement value editor hook for more handlers.
{Bool,Enumeration}ValueHandler:
- Implement GetTableCellValueEditor() hook.
2015-07-24 17:08:52 -04:00
Rene Gollent
1f3db0d0d6 Debugger: Flesh out option-based value editors.
TableCellOptionPopUpEditor:
- Add virtual hook for retrieving the final selected value. Implement
  accordingly in Bool and Enumeration editor subclasses.
- Implement calling the edit completion hook upon value changes.
2015-07-24 17:08:51 -04:00
Rene Gollent
1f8d1f68ce Debugger: Slight tweak to text control editor.
- Trigger a caller update on modification as well.
2015-07-24 17:08:50 -04:00
Dario Casalinuovo
2303600a81 TimedEventQueuePrivate: Remove debugger call 2015-07-24 20:44:24 +02:00
Dario Casalinuovo
6d2f2ec177 Rework nodes to call Run() only after registration
* While it should not be a big problem the
  bebook specify to do it after custom operations,
  most nodes also follow this way, this commit restore
  consistency.
2015-07-24 20:09:15 +02:00
Dario Casalinuovo
d009f28613 media_kit: Fix style as suggested in ml 2015-07-24 20:09:08 +02:00
Axel Dörfler
3108062744 Added PostInstallScript to the image.
* Somehow it didn't make it.
* This fixes the last part of #12227.
2015-07-24 19:45:38 +02:00
Axel Dörfler
5e541a6042 launch_daemon: Added /system/data/user_launch directory.
* This directory is for services that are launched per user (in a user
  context), but installed globally.
* This is now used for the default "user" configuration; before this was
  put into ~/config/non-packaged/data/launch, which didn't really fit,
  and has the huge disadvantage that it cannot be updated.
* Fixes part of #12227.
2015-07-24 17:25:13 +02:00
Dario Casalinuovo
4a99aae9e4 media_server: Check BMessenger validity
* Check BMessenger::IsValid on the instance
  used to query the nodes so that crashed
  teams are identified as soon as possible.
2015-07-24 12:19:35 +02:00
Dario Casalinuovo
61a59e87d8 MediaPlayer: add new media services notification service 2015-07-24 12:19:34 +02:00
Dario Casalinuovo
733709121a media_server: watch for media services status
* It's now calling CleanupDormantInfos when
  media_addon_server die.
2015-07-24 12:19:34 +02:00
Dario Casalinuovo
b43b20d38f Media: Add support for media services notifications 2015-07-24 12:19:34 +02:00
Dario Casalinuovo
92ab0a8c3a VolumeControl: Add support for media services notifications 2015-07-24 12:19:33 +02:00
Dario Casalinuovo
32afe10ab2 BMediaRoster: Add B_MEDIA_SERVER_STARTED and B_MEDIA_SERVER_QUIT
* This is done by watching to registrar notifications
  and providing a minimal service to contact the
  media roster in private API. The roster use this
  service to automatically reconnect to the media_server.
2015-07-24 12:19:33 +02:00
Dario Casalinuovo
e57acc3a99 BMediaRoster: Fix initialization and destruction
* Improve consistency by adding a BMediaRosterEx destructor
  and using it for the specular functionality of ctor instead
  to use the father's class destructor.
* Avoid double initialization of MediaInitializer that
  becomes MediaRosterUndertaker.
* Remove superfluos call to BMediaRoster::Quit()
  in media_addon_server.
2015-07-24 12:19:32 +02:00
Dario Casalinuovo
6cd18b575c BMediaRosterEx: cleanup and fix style in the header 2015-07-24 12:19:32 +02:00
Dario Casalinuovo
41f5b3fc35 launch_media_server: correctly handle media services start
* Handle when the media_addon_server is not
  running.
* Fix #5621.
2015-07-24 12:19:31 +02:00