Commit Graph

47778 Commits

Author SHA1 Message Date
John Scipione
6e3445098a BNode: Set fCStatus in SetTo() explicitly
instead of setting it in _SetTo() and then again in SetTo()

fCStatus could be set even fewer times but this is a good compromise
(logically, performance wise it is not an issue).

Update copyright, add myself to Authors
2016-12-09 15:13:23 -08:00
John Scipione
89c0b71c9a BNode: Style fixes, see below for details
Remove superfluous parens
Rename result variable to bytesWritten
Sync() Unwrap ternary style fix (for consistency)
* Shouldn't this return fCStatus instead of B_FILE ERROR?
* BeBook says "returning B_OK on success and an appropriate error message otherwise."
* Has returned B_FILE_ERROR since "it is accomplished ..."
Rename result variable to bytesWritten (again)
Remove superfluous space
explictly cast status_t to ssize_t
Remove superfluous parens, remove space, add newline
Explicitly cast status_t to ssize_t (again)
WriteAttrString() cleanup
* rename error to result
* rename sizeWritten to bytesWritten (consistency and clarity)
* check if error cede from WriteAttr and cast to status_t
* > not entirely style but functionaly same
* if length is different then written return B_FILE_ERROR
* > not a style change but a very minor functional change
* add some comments
Tiny documentation fix precede vars with \a
More style fixes
* Rename error to result
* Put parens around conditional of ternary instead of whole thing
* Compare against NULL explicitly
* Don't set fCStatus here, we're going to set it in the calling function instead
* > note that Unset() sets fCStatus to B_NO_INIT but that's ok
80 char limit style fix
More style fixes and don't set fCStatus
* remove superfluous parens
* compare ref to NULL explicitly
* > Also don't set fCStatus here since we will do that in calling function
    Unset() sets fCStatus to B_NO_INIT but that's ok
Unwrap ternary style fix (consistency)
Rename error to result (again)
2016-12-09 15:13:23 -08:00
John Scipione
4e23cc438e SoftwareUpdater: Swap cancel and default buttons so default is rightmost
... and add default horizontal space between text and buttons
2016-12-09 13:52:03 -08:00
John Scipione
6ff8fbf568 SoftwareUpdater: Replace %d with B_PRIu32 for uint32
(gcc2h build gave me a stern warning)
2016-12-09 13:50:13 -08:00
John Scipione
7d82a586b0 SoftwareUpdater: Replace 4 spaces with 1 hard tab 2016-12-09 13:48:37 -08:00
Alexander von Gluck IV
b4ad45f630 SoftwareUpdater: Align to our style guidelines 2016-12-09 00:35:30 +00:00
Alexander von Gluck IV
8789541f9c SoftwareUpdater: Add some glue to buttons to slide them over 2016-12-09 00:26:09 +00:00
Alexander von Gluck IV
8ee9900d37 SoftwareUpdater: Change text based on number of updates avail 2016-12-09 00:13:36 +00:00
Alexander von Gluck IV
2f5a0addde SoftwareUpdater: Add some details on what's available
* Just example text for now to be filled in with
  data from our package kit.
2016-12-08 23:38:27 +00:00
Alexander von Gluck IV
c5867c77cc SoftwareUpdater: Add a fancy looking stripe view 2016-12-08 23:22:39 +00:00
Alexander von Gluck IV
f7d9c0110d SoftwareUpdater: Initial work on a GUI software updater
* Planning on having a notification box when updates
  available.
* Clicking the notification box will pop up the
  SoftwareUpdater with a simple "Apply Updates" button
* Currently users need to know to 'pkgman update'
2016-12-08 18:43:39 +00:00
Dario Casalinuovo
b8d4709eb9 MediaEventLooper: Remove soft real time lateness bounding
* The media_kit isn't an hard real time beast. Bounding lateness
looked like the perfect way to enable reasonable soft real time
performance and thus limiting port writes and reads between producers
and consumers. It seems to don't work very well so I just remove it.
* The result of the recent code simplification makes it equal to my
first version, before any discussion on it happened.
* Thanks to AlienSoldier for testing such issues.
* Fixes #13069.
2016-12-08 17:13:49 +01:00
Alexander von Gluck IV
a2b2f4d642 repo rework: Re-add compatibility url field
* We saw 3rd party repos break as well oddly.
* Reintroduces the url field in a little bit cleaner
  way.
* Should solve "Failed to open repository file" errors
* Once everyone updates beyond hrev50723 this is
  no longer needed.
2016-12-08 07:57:47 -06:00
Rene Gollent
67e0301477 Debugger: Adjustments to report generator.
DebugReportGenerator:
- Due to the changes made with respect to correctly handling switching to
  disassembly explicitly, the report generator needs to request loading
  source files as it walks the stack trace in order to get source-based
  line number information. Fixes crash reports having -1 as the line number
  in cases where debug information was available, but the user hadn't yet
  looked at the source file in question.

LoadSourceCodeJob:
- Cleanup.
2016-12-07 23:58:36 -05:00
Automatic Committer
83345e6b0b Update usb.ids from www.linux-usb.org 2016-12-08 05:20:16 +01:00
Alexander von Gluck IV
602076ef82 repo rework: Remove stubs; Breaks repo compat.
* These stubbs satisfied older Haiku releases that
  required the URL
* Users running nightly images will need to upgrade
  to hrev50723 - hrev50744 before upgrading further
* Getting this out of the way now before the beta
  comes out.
* New installations shouldn't suffer any problems.
2016-12-07 21:27:56 -06:00
Rene Gollent
7cfc043e00 libdebugger: Fix a regression with ELF loading in some cases.
ElfFile:
- The refactoring in commit 2c50fbb8e1
  inadvertently introduced a failure case if a section in the ELF file
  is skipped, since it was explicitly passing in the insertion index
  to BObjectList::AddItem(). Since in the skipped case, this would be
  out of bounds for the list's current size, this would cause the whole
  operation to fail with an out of memory error, and consequently halt
  all further loading of debug information for that particular file.
  This manifested itself with libroot on at least gcc5, where no symbols
  could be seen.
2016-12-07 22:17:34 -05:00
Dario Casalinuovo
f1f0956504 MediaClient: Just some interface review 2016-12-06 21:16:36 +01:00
Rene Gollent
e218ec0288 Debugger: Hide connection controls.
TeamsWindow:
- As the functionality isn't yet actually ready, hide the controls in the
  teams window for now.
2016-12-05 18:18:14 -05:00
Rene Gollent
7e6e3c1be2 Debugger: Implement use of connection config roster.
Debugger:
- Initialize/Deinitialize roster as appropriate.

ConnectionConfigWindow:
- Implement config view listener interface, and use roster
  to retrieve and add appropriate config view when switching
  between interface types.
2016-12-05 18:18:11 -05:00
Rene Gollent
eede6646dd Debugger: Add connection config handler framework.
ConnectionConfigHandler:
- Abstract base class for the different types of connection that allows one to
  retrieve an appropriate configuration view based on the target host interface
  type. This will allow the configuration window to switch dynamically between
  network, USB, etc. without having to know the details of any of those.
  Initially only a network subclass has been implemented though.

ConnectionConfigHandlerRoster:
- Keeps track of the list of available config handlers, and handles mapping a
  request for a given interface info to the appropriate type of handler.

ConnectionConfigView:
- Abstract base class for the actual configuration views returned by the config
  handlers. This exposes a listener interface via which the view can notify
  an interested party that the configuration has been changed. Correspondingly,
  the configuration window will use this to determine if the configuration is
  complete enough to allow a connection attempt.
2016-12-05 18:18:09 -05:00
Rene Gollent
445f00371c Debugger: Implement spawning connection window.
TeamsWindow:
- Create new connection button now sends a message to the main app,
  which manages the connection window as a singleton.

Debugger:
- Handle creating/showing connection configuration window as requested.
2016-12-05 18:18:06 -05:00
Rene Gollent
c4b2191889 Debugger: Fix incorrect indentation. 2016-12-05 18:18:04 -05:00
Rene Gollent
c521fed0da Debugger: Add connection configuration window.
ConnectionConfigWindow:
- Utility window that is spawned in response to requests to create a new
  remote host connection. Allows setting up and attempting to make a
  connection.
2016-12-05 18:18:01 -05:00
Rene Gollent
10ba334855 Debugger: Cleanup.
- Split MessageCodes.h into a second file that separates out the
  application-specific message codes from those used by the core.
  Adjust includes accordingly. No functional change.
2016-12-05 18:17:58 -05:00
Rene Gollent
918f4a0733 Debugger: StartTeamWindow Style fix. 2016-12-05 18:17:56 -05:00
Rene Gollent
365840af1c Debugger: Adjust TeamsWindow for connection selection.
TeamsWindow:
- Add Listener interface for selected target host interface changes.
- Add menu field to display/choose between active host connections.
- Add button to create a new connection (not yet functional).

TeamsListView:
- Implement TeamsWindow Listener interface to decide when to update
  the displayed team list.
- Remove unused current team ID.
2016-12-05 18:17:53 -05:00
Rene Gollent
692fe55503 libdebugger: Add initial version of network interface.
NetworkTargetHostInterface{Info}:
- Barebones classes for implementing a target host interface over TCP.
2016-12-05 18:17:50 -05:00
Rene Gollent
25ec63dbf5 libdebugger: Add string setting type.
- Needed in order to properly implement a settings description for
  a remote interface.
2016-12-05 18:17:48 -05:00
Rene Gollent
9e4d0fd483 libdebugger: Implement remaining remote request/response pairs. 2016-12-05 18:03:14 -05:00
Rene Gollent
bcca096ae5 libdebugger: Fix header order in RemoteDebugRequest. 2016-12-05 18:03:13 -05:00
Janus
18497f036d DiskUsage: minor clean up
* remove unused code.
* make fPreviousSnapshot local.
* change app_flags to B_SINGLE_LAUNCH
  when it is invoked by add-on reuses an already scanned volume
2016-12-05 12:17:19 +01:00
Janus
1fad3c98b6 DiskUsage: avoid different crashes on rescan
* Fixes #9380, #11442.
2016-12-02 18:49:33 +01:00
Alexander von Gluck IV
5ffaf72c8a repo rework: Remove need for repos to be self-aware
* See #12917 for details.
* Squashed to one commit to make revert easy if we
  run into any issues.
* pkgman is now pre-attached to the 'current' repo
  version within nightly images so they can be updated
  by default.
* This shouldn't impact us keeping older sets of package
  versions by commit hash for building older hrevs.
* There are XXX stubs with "Kill me". These will need
  to be dropped after users are given sufficent time to
  upgrade. We're dropping a previously required field (url)
  so making this a slowish roll out.
* Makes the repos a lot less restrictive which should
  help PM package building automation be a bit easier.
* Once this stuff smooths out, we'll add UUID's to the
  repo definitions for duplicate repo detection.
2016-12-02 00:41:06 -06:00
François Revol
28fb504bb8 Style fix, also fixes an indentation warning 2016-12-02 05:33:18 +01:00
Axel Dörfler
bf4c2f93e3 launch_roster: Added restart, start/stop works on targets.
* If the launch_daemon returns B_NAME_NOT_FOUND for a job, it'll
  retry the same name as target.
2016-11-29 23:15:52 +01:00
Axel Dörfler
852e09d61f launch_daemon: Added stop target ability.
* Before, you had to stop each job by itself.
2016-11-29 23:14:36 +01:00
Axel Dörfler
4d99bf9af7 launch_daemon: Added missing reply for launch target.
* Caused BLaunchRoster::Target() to return B_NO_REPLY instead of B_OK.
2016-11-29 23:11:58 +01:00
Janus
04a05cf1f6 Diskusage: avoid glitch in "open with..." menu
* Fixes #13097.
2016-11-29 21:46:19 +01:00
Dario Casalinuovo
ecb395852e Introduce BSimpleMediaClient
* The idea is to move the callback based mechanism into a derived
class. The objects can be composed to create working systems.
* The BMediaClient class supply RegisterInput/RegisterOutput
and BeginInput/BeginOutput is moved to BSimpleMediaClient.
* Various minor fixes.
2016-11-29 01:22:35 +01:00
Humdinger
945566ff43 Switch from DejaVu to Noto font
As discussed, Noto renders much better with freetype 2.7 [1].
The DejaVu package is still in the HaikuPorts repo and can be installed
manually just like all the other available fonts.

[1] http://www.freelists.org/post/haiku-development/freetype-update-from-265-to-27
2016-11-27 19:04:26 +01:00
Dario Casalinuovo
209b520fa0 MediaClient: Add some padding and reserved functions 2016-11-26 17:30:49 +01:00
Dario Casalinuovo
05e29ea1ad MediaConnection: Remove Reset() 2016-11-26 17:24:10 +01:00
Dario Casalinuovo
9ee6577e2d MediaClient: Distribute callbacks across derived classes 2016-11-26 17:13:02 +01:00
Dario Casalinuovo
9e9655ed55 MediaClient: Use CurrentTime for both offline and performance time 2016-11-25 17:38:44 +01:00
Dario Casalinuovo
6d0255216e MediaClient: Introduce BMediaInput and BMediaOutput 2016-11-25 17:38:44 +01:00
Dario Casalinuovo
eebedf8f1a MediaClient: Use unique id for both inputs and outputs 2016-11-25 17:38:44 +01:00
Humdinger
dd3732bb93 Media prefs: fix crash in empty MIDI soundfont list
Check if soundfont list is empty or we crash when double-clicking
into the list.

Fixes #13091.
2016-11-25 07:26:09 +01:00
Alexander von Gluck IV
d676701752 Merge branch 'master' of ssh://git.haiku-os.org/haiku
Merge split commit between two repos. tcp stack comments
2016-11-24 19:32:38 -06:00
Alexander von Gluck IV
7dffccc308 tcp: Update comment to reflect we support window scaling
* No functional change
2016-11-24 19:31:05 -06:00