Commit Graph

45384 Commits

Author SHA1 Message Date
Alexander von Gluck IV
7b1ea45c34 FDT: Add dts for Raspberry Pi 2 from upstream FreeBSD
* Next steps are to begin using reg-addresses instead of
  hard coding them at build time.
2015-03-28 08:39:57 -05:00
Michael Lotz
3384ca1a7b rootfs: Fix wrong comparison for buffer reuse on rename.
The comparison to decide whether or not to reuse the name buffer when
renaming a rootfs entry was reversed. For renames where the new name
was longer than the old one this resulted in writing beyond the name
buffer and corrupting random kernel memory.

A likely candidate for this to be triggered was when a audio cd was
renamed due to a CDDB lookup, as the placeholder "Audio CD" is quite
short and the actual CD name is usually longer.

Fixes: #10259. Possibly fixes the related #9528 and #9858.
2015-03-28 12:18:29 +01:00
Jérôme Duval
c5b66b40ab use macro instead of attributes for weak aliases. 2015-03-28 09:41:40 +01:00
Jérôme Duval
d789b5e208 ice1712: fix debug build 2015-03-28 09:41:39 +01:00
Augustin Cavalier
1f35b0186b pkgman: fix build. 2015-03-27 16:59:18 -04:00
Augustin Cavalier
74de74358a pkgman: fix problems pointed out by Jerome & Axel. 2015-03-27 16:47:54 -04:00
Jérôme Duval
8ee7375aa0 don't redefine __weak_reference. 2015-03-27 21:40:47 +01:00
Augustin Cavalier
c771066bd2 pkgman: cleanup output.
This makes the progressbars disappear after the download is complete,
as well as reducing the number of lines for most actions to 1 instead
of 3-4.
2015-03-27 16:16:13 -04:00
Jessica Hamilton
8667d6c758 pkgman: replace install/uninstall pairs with upgrade text.
Signed-off-by: Augustin Cavalier <waddlesplash@gmail.com>
I fixed some bugs and removed some code duplication.
2015-03-27 16:16:11 -04:00
Augustin Cavalier
e22040efac pkgman: make progressbar work properly when the width is < 70. 2015-03-27 16:16:09 -04:00
Jérôme Duval
9f543f8044 Fix unittests build. 2015-03-27 20:37:23 +01:00
Axel Dörfler
49b69c86d3 ifconfig/Network: gcc4 build fix. 2015-03-27 15:26:51 +01:00
Axel Dörfler
386b6f15e6 Network: disabling/enabling devices is now working.
* Disabled the "renegotiate" button for now -- this will move to the
  interface add-ons, at least some day.
2015-03-27 13:25:31 +01:00
Axel Dörfler
81ba2a0474 Network: fixed DNS server label. 2015-03-27 13:25:31 +01:00
Axel Dörfler
8b8bd796f4 Network: give static IP focus.
* InterfaceAddressView now gives the address control focus when
  "static" mode is selected.
2015-03-27 13:25:30 +01:00
Axel Dörfler
0a6b562313 net_server: fixed configuring disabled interfaces.
* BNetworkSettings now set unspecified addresses to their empty family
  specific addresses, instead of using AF_UNSPEC.
* This allows the net_server to set those addresses on the address
  specific stack interface.
2015-03-27 13:25:30 +01:00
Axel Dörfler
4621cda5bf Style fix. 2015-03-27 13:25:29 +01:00
Axel Dörfler
d044457531 BNetworkAddress::IsEmpty() now detects empty ipv4/6.
* Until now, only AF_UNSPEC addresses could be empty.
* Now, the unspecified IPV4/IPv6 address is considered empty, too.
* This corresponds to how the kernel modules handles this.
2015-03-27 13:25:29 +01:00
Axel Dörfler
687d0bc272 DriverSettingsMessageAdapter: fixed converter signature.
* The ConvertFromDriverSettings() method missed the current value
  index.
* Completed unit tests, and enabled them all.
2015-03-27 13:25:28 +01:00
Axel Dörfler
9f218b4e2d DriverSettingsMessageAdapter: fixed various issues.
* _AddParameter() would ignore all BMessage::Add*() errors.
* _ConvertFromDriverParameter() would ignore most intermediate error,
  but would fail badly over some incorrect settings file.
* Also, it checked for the parent value for each parameter, which
  doesn't make any sense, but would add as often as there are
  parameters -- which also may be none, in which case the value
  got ignored.
2015-03-27 13:25:28 +01:00
Axel Dörfler
6a29020593 Network: made the revert button (somewhat) work.
* DNS add-on does not yet support it, the rest does.
* However, there seems to be some problems with the net_server when
  changing interfaces -- not just with revert.
2015-03-27 13:25:27 +01:00
Axel Dörfler
3d7aaa308c Network: added notify settings updated method.
* And call it from the DNS client -- this is the only add-on that does
  not trigger a configuration or settings update, so we have to notify
  the changes manually.
2015-03-27 13:25:27 +01:00
Axel Dörfler
235571538b Network: added ability to sort ServiceListItems correctly.
* Added ServiceListItem::Label() method.
2015-03-27 13:25:26 +01:00
Axel Dörfler
3d3eb8da69 Network: telnet and ftp are now using ServiceListItem, too. 2015-03-27 13:25:26 +01:00
Axel Dörfler
ee834bb870 Network: moved commonly used classes into app.
* This way all add-ons share the same code, and also the same
  translations.
2015-03-27 13:25:25 +01:00
Axel Dörfler
1a47b15dfa Network: interface list item now used BControlLook spacing.
* Instead of hard-coded values.
2015-03-27 13:25:25 +01:00
Axel Dörfler
d0b107f311 Network: added IPAddressControl.
* Based on Adrien's previous work in the DNS settings view.
* The IPv* and DNS add-ons are now using it.
2015-03-27 13:25:18 +01:00
Axel Dörfler
06cdb6558f _BTextInput_: Only invalidate parent when in a window.
* Otherwise there is nothing to it.
* Removed comment and commented out invalidation. Seems to work
  just fine without it, and I cannot think of a reason why it should
  be there.
2015-03-27 13:24:10 +01:00
Axel Dörfler
ccc3ced21c _BTextInput_: style cleanup. 2015-03-27 13:24:10 +01:00
Axel Dörfler
8bc3ecb054 Added BTextControl::TextLength() method. 2015-03-27 13:24:09 +01:00
Axel Dörfler
d95c5011bd Network: SSH list item now indicates a running server.
* This will be moved into the network preferences, so that it can be
  used from other add-ons, as well.
2015-03-27 13:24:09 +01:00
Axel Dörfler
30811f5d73 Network: display title items in bold. 2015-03-27 13:24:08 +01:00
Axel Dörfler
d45b018021 Network: service enable now waits a bit, revertable.
* When you press the enable/disable button, it now stays disabled
  for half a second before it is updated, and reenabled again.
* This is done so that the net_server has time to update its internal
  state, so that it should look correct right from the start, even if
  the server does not immediately react to the changes.
* Now uses the BNetworkServiceSettings::IsRunning() method.
* Added IsRevertable(), and Revert(), methods.
2015-03-27 13:24:08 +01:00
Axel Dörfler
d26777c4e4 Network: added BNetworkSettingsListener.
* Same as the configuration listener, just for SettingsUpdated().
* This is now broadcasted to all list items, too.
2015-03-27 13:24:07 +01:00
Axel Dörfler
f7ccc9af85 BNetworkSettings: added const, server IsRunning() method.
* Get{Interface|Network|Service}() methods are now const.
* Added variants of Interface(), and Service() that are const.
* Added new BNetworkServiceSettings::IsRunning() convenience method that
  reflects the status quo rather than the settings.
2015-03-27 13:24:07 +01:00
Axel Dörfler
07b0531d9c Network: removed now superfluous services add-on. 2015-03-27 13:24:06 +01:00
Axel Dörfler
b4ec589bb3 Network/DNS settings: apply button, improved layout.
* The buttons now all end up with the same width.
* Put the grid into a BBox.
* The new "apply" button will actually apply the changes.
2015-03-27 13:24:06 +01:00
Axel Dörfler
9a7e231edb Network: DNSSettingsView style cleanup. 2015-03-27 13:24:05 +01:00
Axel Dörfler
a4a34e4235 Network: beginnings of the DNS settings. 2015-03-27 13:24:02 +01:00
Axel Dörfler
55820aedc1 net_server: Print message on fork() error.
* Also removed an extra check for the name in _Update(); _ToService()
  will already return an error in that case.
2015-03-27 13:23:42 +01:00
Axel Dörfler
a7f408b41c Fixed BNetworkServiceSettings::IsEnabled(), GetMessage()
* GetMessage() now checks if the only existing address is the default
  wildcard address, and then omits it in the message (as it will be
  created by default, anyway).
2015-03-27 13:23:41 +01:00
Axel Dörfler
a6f0a92032 Network: added telnet and ftp service add-ons.
* They're old, but we still have them on our image.
2015-03-27 13:23:37 +01:00
Axel Dörfler
33ee23acbe Tracker C++ source template: fixed coding style.
* Two blank lines between header and include.
2015-03-27 13:23:03 +01:00
Axel Dörfler
3c8ac782d5 Network/SSHService: Moved base ServiceView into its own file.
* SSHServiceView now subclasses it for SSH specific functionality.
2015-03-27 13:23:02 +01:00
Axel Dörfler
aaca49df8d Network: removed now superfluous interface add-on.
* IPv4/IPv6 add-ons completely replace its functionality.
2015-03-27 13:23:02 +01:00
Axel Dörfler
8af390cab2 Network: SSH service add-on now creates sshd user.
* If it does not exist yet, the sshd user is created upon enabling
  the service.
* Also, it now uses kMsgIsServiceRunning to determine the current
  label/function of the enable/disable button.
2015-03-27 13:23:01 +01:00
Axel Dörfler
c3ef93915b net_server: Clients can now check if a service is running.
* Using the new kMsgIsServiceRunning command.
2015-03-27 13:23:01 +01:00
Axel Dörfler
1f94cdcdff BNetworkServiceSettings: Added missing functions/constructor. 2015-03-27 13:23:00 +01:00
Axel Dörfler
83941255ad net_server: cleaned up Services.h, no functional change. 2015-03-27 13:23:00 +01:00
Axel Dörfler
bafce3df67 Network: first steps to an SSH service add-on. 2015-03-27 13:22:56 +01:00
Axel Dörfler
7ca40f60bc BNetworkSettings: made service stuff writable.
* And added the ability to disable a service without losing its
  configuration.
2015-03-27 13:22:30 +01:00
Axel Dörfler
03681592f2 Network: IPv[46] add-on Jamfile cleanup. 2015-03-27 13:22:29 +01:00
Axel Dörfler
d1f0b8db1d Network: fixed top item creation, sort entries.
* Need a way to access the NetworkWindow object from a static
  method in order to sort all entries correctly, though.
2015-03-27 13:22:29 +01:00
Axel Dörfler
25ed074fd1 Network: made InterfaceListItem::Name() const. 2015-03-27 13:22:28 +01:00
Axel Dörfler
5274e9b004 Network: added interface list item.
* Added BNetworkInterfaceListItem that can be used by interface protocol
  add-ons to represent their functionality in the list view.
* It will automatically update itself on changes, and will show the
  specified label, and address, if any, as well as indicate whether or
  not the family has been disabled (which doesn't work perfectly yet,
  as IFF_AUTO_CONFIGURED is on the interface level).
* Therefore, the interface list item will no longer show the address,
  but the type of the device instead.
* Introduced the BNetworkConfigurationListener interface that is used
  to broadcast network updates to.
2015-03-27 13:22:28 +01:00
Axel Dörfler
b00dcbcad2 BNetworkSettings: added some convenience methods.
* From InterfaceAddressView: FindFirstAddress(), and IsAutoConfigure().
* Removed some debug leftovers in InterfaceAddressView, too.
2015-03-27 13:22:27 +01:00
Axel Dörfler
20ead9a883 ifconfig: improved empty address display.
* Now shows as "--" instead of just the empty string.
2015-03-27 13:22:27 +01:00
Axel Dörfler
563f3c118d Network: Added IPv6Interface.
* Pretty much the same as the IPv4 one.
2015-03-27 13:22:21 +01:00
Axel Dörfler
59f911ab03 Network/IPv4Interface: settings are now applied instantly.
* Via the BNetworkSettings class.
* The static IP mode still requires an extra apply button.
* IP input is not validated at all yet, we could also automatically
  fill in the network mask once the IP has been entered.
2015-03-27 13:21:52 +01:00
Axel Dörfler
e4f4658a1b BNetworkSettings: made interface settings writable.
* It also makes use of the new driver settings converter mechanism.
2015-03-27 13:21:51 +01:00
Axel Dörfler
18811c71ae DriverSettingsMessageAdapter: hide empty message.
* Empty messages no longer end up as empty section - instead, they are
  just empty.
2015-03-27 13:21:51 +01:00
Axel Dörfler
3211cbcd15 DriverSettingsMessageAdapter: optional field converter.
* You can now optionally specify a converter that does the actual
  message to settings conversion, and vice versa.
* This allows for more sophisticated and custom conversions.
2015-03-27 13:21:50 +01:00
Axel Dörfler
9461249c5a Network: also notify interface list items
* When the network configuration changes.
2015-03-27 13:21:50 +01:00
Axel Dörfler
07addd7ef5 Network: broadcast updates, remove apply button.
* Network now monitors all network, and network settings changes, and
  will notify all add-ons about those changes.
* Removed the global apply button. Instead, the static IP configuration
  now got that button. All other changes will be instant.
2015-03-27 13:21:49 +01:00
Axel Dörfler
f16f9ee4ee Moved more functionality from net_server to NetworkSettings.
* Added (still incomplete) helper classes for the settings messages.
* The net_server now uses these classes for its interfaces, and services.
* Renamed service_address to service_connection, as that better matches
  what it is used for.
2015-03-27 13:21:49 +01:00
Axel Dörfler
2864e4da5e Network: added global settings.
* NetworkWindow now manages a single BNetworkSettings object
  that is shared with all add-ons.
2015-03-27 13:21:48 +01:00
Axel Dörfler
e267a9eb47 Network: show interface addresses in list item.
* No family prefix yet.
2015-03-27 13:21:47 +01:00
Axel Dörfler
d880e2d91f BNetworkSettings: added Get*() by name methods. 2015-03-27 13:21:46 +01:00
Axel Dörfler
fd55fb6615 Moved net_server's settings to libbnetapi.
* As experimental API class BNetworkSettings.
* Added add/remove methods for interfaces, and services, too.
* Moved the conversion of the wireless networks into the settings class,
  too, so that it only gives out converted ones (but accepts both
  variants).
2015-03-27 13:21:46 +01:00
Axel Dörfler
14f5b52b21 Network: removed dummy add-ons. 2015-03-27 13:21:45 +01:00
Axel Dörfler
85fb1470bf Added IPv4Interface add-on for Network preferences.
* Took over most code from the former InterfacesAddOn, and
  moved it to where it should be.
* However, it doesn't work yet at all.
2015-03-27 13:21:41 +01:00
Axel Dörfler
03242441a6 Network: fixed broken item frame retrieval.
* Completely superfluous and expensive for BListView items, and just
  wrong for BOutlineListView items.
* Also increased the width of the item, as we must take the tree offset
  into account ourselves (really, great API).
2015-03-27 13:08:45 +01:00
Axel Dörfler
aae1e071aa Network: fixed mixed up AddUnder() arguments.
* BOutlineListView is the worst of the interface kit.
2015-03-27 13:08:45 +01:00
Axel Dörfler
3401ff7c2f BNetworkSettingsAddOn: added missing destructor. 2015-03-27 13:08:44 +01:00
Axel Dörfler
f6c7cf44b5 Network: integrated former hardware view from add-on.
* The interfaces logic is within the main application, so is the
  new interface view.
* Disabling/renegotiating does not work yet.
* Reveals a bug in some interface code; when you click on an ethernet
  device first, there is no place for the wireless menu. When you then
  press on a wireless device, it crashes in BMenuField code.
  In the other direction, there is then an empty space.
* Fixed list item width reporting.
2015-03-27 13:08:44 +01:00
Axel Dörfler
d5dd8637bb BNetworkDevice.GetHardwareAddress() was broken.
* Copy&paste error, apparently.
2015-03-27 13:08:43 +01:00
Axel Dörfler
54c34be74b ifconfig: moved media type stuff into its own file.
* This can now be easily shared.
2015-03-27 13:08:43 +01:00
Axel Dörfler
021ff1ca46 Network: no need for public constants. 2015-03-27 13:08:42 +01:00
Axel Dörfler
5493c30fed Network: Removed unused includes. 2015-03-27 13:08:42 +01:00
Axel Dörfler
6dcbe4bf44 Network: made list view B_FULL_UPDATE_ON_RESIZE.
* To account for its right aligned contents.
2015-03-27 13:08:41 +01:00
Axel Dörfler
77db25ddc7 Network: moved add-on headers to the correct position.
* Ie. they've moved to headers/os/add-ons/network_settings now.
2015-03-27 13:08:41 +01:00
Axel Dörfler
a7cb9f5f55 Network: WIP of redesign.
* Fletched out new add-on API.
* Moved InterfaceListItem from the interfaces add-on into the
  application.
* Renamed NetworkSetup* to Network* respectively NetworkSettings*.
2015-03-27 13:08:29 +01:00
Axel Dörfler
0690387cd2 BServer/BApplication: added constructor for looper name.
* Added an extra looperName argument to the private BApplication
  constructor that BServer is using.
* This is now used to fix the ugliness that gave the registrar
  a different looper name, and even saves a string comparison.
2015-03-26 21:47:24 +00:00
Axel Dörfler
b7a87fd137 find_paths_etc(): added user/system only flags.
* B_FIND_PATHS_(USER|SYSTEM)_ONLY cause only the specified paths
  to be included in the result list.
2015-03-26 21:47:22 +00:00
Axel Dörfler
2bdffa6131 BPathFinder::FindPaths() fixed passing flags.
* One variant of FindPaths() replaced the flags with '0'.
2015-03-26 21:47:19 +00:00
Automatic Committer
d3f28e597b Update usb.ids from www.linux-usb.org 2015-03-26 05:20:29 +01:00
Automatic Committer
b9e1ca3b39 Update pci.ids from pciids.sourceforge.net 2015-03-26 05:20:27 +01:00
Janus
68ec13b405 Media: make ListViewItem scale correctly with big fonts.
Fixes #11918.

Signed-off-by: Augustin Cavalier <waddlesplash@gmail.com>
2015-03-25 12:12:04 -04:00
Janus
ffafcc16d7 Printers: avoid redraw glitches in the listview.
Fixes #11917.

Signed-off-by: Augustin Cavalier <waddlesplash@gmail.com>
2015-03-25 12:05:14 -04:00
Janus
4e71cef8fd Preferences: Make "Antialiasing" Revert button work as expected.
Fixes #11787.

Signed-off-by: Augustin Cavalier <waddlesplash@gmail.com>
2015-03-25 12:03:24 -04:00
Jérôme Duval
e3bd84493e ahci: fix build with warnings. 2015-03-19 23:34:40 +01:00
Augustin Cavalier
9782bd3280 Tracker: Fix FilePanel menu bar initialization.
It appears I was a bit too hasty in hrev48850, as if I had looked more
closely I would have noticied that this code depended on the menu bar
being initialized to function correctly.

Fixes #11914.
2015-03-19 14:36:47 -04:00
Jérôme Duval
673f931b62 ahci: correctly display version
* merge traces a bit.
2015-03-19 17:55:03 +01:00
Automatic Committer
699bf1d9fe Update usb.ids from www.linux-usb.org 2015-03-19 05:20:25 +01:00
Automatic Committer
f47e26a194 Update pci.ids from pciids.sourceforge.net 2015-03-19 05:20:23 +01:00
Dario Casalinuovo
faa2d10c3d TimeSource: Rework SlaveNodes management using TMap.
Signed-off-by: Jérôme Duval <jerome.duval@gmail.com>
2015-03-17 21:50:25 +01:00
Dario Casalinuovo
7f01171f92 BTimeSource: Cleanup code.
Signed-off-by: Jérôme Duval <jerome.duval@gmail.com>
2015-03-17 21:50:10 +01:00
JackBurton
959051f813 Midi preflet: remove check for big_synth.sy, since we don't create it
anymore.
Fixed comment.
2015-03-17 21:11:52 +01:00
JackBurton
437386ee10 Don't check for big_synth.sy, since it shouldn't exist anymore 2015-03-17 21:10:34 +01:00
John Scipione
8359b407ff CheckBox: Center the check mark again
See 46b39e83 Changed rounding behavior for StrokeLine.

This effectively undoes the change in rounding behavior from that commit.
2015-03-16 20:19:54 -04:00