100 Commits
Author SHA1 Message Date
Bruno Albuquerque 532b6aa459 HDA: Fix mapping 64-bit PCI addresses.
Some small cleanup.

Change-Id: I07f6cfeedc9f650740e1be7ab998b4fc3e0fd4d2
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2875
Reviewed-by: waddlesplash <[email protected]>
2020-06-03 17:25:30 +00:00
Bruno Albuquerque 8c76ab00c4 freebsd_network: Enable memory mapped io and ioport access.
Cofirmed to fix #15016, #15052.
Potentially fixes #14576, #14546, #14298, #14265, #13840.

Change-Id: I27b0bb6692c23aedbdddc70aff9349c713703dd4
Reviewed-on: https://review.haiku-os.org/c/1497
Reviewed-by: waddlesplash <[email protected]>
2019-05-31 17:02:48 +00:00
Bruno Albuquerque 9888752db1 freebsd_network: Style fixes pointed out by Korli.
- Did not see his comments before pushing my previous change.
- clear owning flag when passed value is NULL.

Change-Id: I493973aff2b107785c3734847c85a52f0f9da360
Reviewed-on: https://review.haiku-os.org/c/1443
Reviewed-by: waddlesplash <[email protected]>
2019-05-13 18:58:04 +00:00
Bruno Albuquerque 7f6254d1e9 Prevent a double softc free.
- Keep track if the softc was allocated externally or not.
- Only try to deallocate it if it was allocated internally.

Do not try to free the softc if we were not the ones allocating it.

- Avoid a double free on consecutive calls to device_set_softc.

Change-Id: Ibb38e54e9dfd2a80dbb53920970bead626da8ba1
Reviewed-on: https://review.haiku-os.org/c/1441
Reviewed-by: Adrien Destugues <[email protected]>
2019-05-08 15:31:31 +00:00
Bruno G. Albuquerque 18fe0231df Add initial vesa modes even if EDID information is present. EDID does not
include all supported video modes. Fixes #4166.

Note that this change will probably show several weird resolution is some
configurations. They are all valid resolutions but are not commom so we need
a way to filter those out.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42600 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-08-08 16:13:56 +00:00
Bruno G. Albuquerque 5eed3d9892 Fix crash in VESA accelerant.
- Keep track of the correct number of initial modes available.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42438 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-07-16 13:59:06 +00:00
Bruno G. Albuquerque 2eb5e77d9b - Fix reference to GCC4 lib FLAC.
Note that the reference to GCC4 Vorbis Tools is also broken but I did not fix
it as there is no GCC4 vorbis Tools package available where all the other
optional packages are.
 


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40043 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-12-30 18:22:20 +00:00
Bruno G. Albuquerque 761eef626c I am pretty sure this is what Scott meant. ;)
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36654 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-05-06 15:20:26 +00:00
Bruno G. Albuquerque 7d39f1f137 - Get the process information of the correct team by using get_team_usage_info
instead of getrusage.
- Thanks François for insisting on this. :)



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34133 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-11-19 12:48:45 +00:00
Bruno G. Albuquerque 4459056dda - Fix tabs. Thatś the price I pay for doing Haiku development outside Haiku.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34099 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-11-17 17:09:08 +00:00
Bruno G. Albuquerque 7d911b2ad9 - Coding style fixes. Thanks Axel for the heads up.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34097 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-11-17 16:13:00 +00:00
Bruno G. Albuquerque 9306738deb - Only try to get usage info if there was no error with waitpid.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34092 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-11-17 16:00:10 +00:00
Bruno G. Albuquerque ada17216f9 - Added wait3() and wait4() to the bsd compatibility library.
- Untested, but should work (will test it when I get home later today).
- This is my first attempt at adding something for compatibility reasons. Let
  me know if something in wrong.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34091 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-11-17 15:53:17 +00:00
Bruno G. Albuquerque c93b59197b - Fix hdb build.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33612 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-17 11:58:42 +00:00
Bruno G. Albuquerque 891a50b2ae - Fix typo that broke the GCC4 build but not the GCC2 build.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33529 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-11 17:31:00 +00:00
Bruno G. Albuquerque b69dfc85c8 BnetEndPoint::Send() should use BytesRemaining() as the amount of data to be sent, not
Size(). This fixes #4724.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33437 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-05 10:31:47 +00:00
Bruno G. Albuquerque 95ed6b3c0b Patch by ArCePi.
- Implements STARTTLS support to the SMTP add-on.
- Untested, but implementation matches RFC.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33012 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-09-08 23:00:36 +00:00
Bruno G. Albuquerque 0c19bd4a85 - Update our entry_ref when the underlying file is moved.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32964 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-09-06 14:08:41 +00:00
Bruno G. Albuquerque 1d175bb86a - Fix break statements indentation.
- Remove debug left-over.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32962 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-09-06 13:01:20 +00:00
Bruno G. Albuquerque ccc2cf7f03 - When the associated people file is deleted, close the window instead of
reseting it.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32928 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-09-03 22:59:57 +00:00
Bruno G. Albuquerque 86e78dfaad - Classes with virtual methods should have virtual destructors.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32926 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-09-03 22:48:54 +00:00
Bruno G. Albuquerque a7291500f1 People was always more of a tech-demo than a real app, so I just decided to
make it more interesting in this respect.

- Uses node monitors to react to external changes. Updates the window
  contents accordingly.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32912 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-09-03 00:58:12 +00:00
Bruno G. Albuquerque a6996bf541 - Fix an issue with using update-install to a partition that has spaces in its
name.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32911 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-09-02 23:14:21 +00:00
Bruno G. Albuquerque 83a23fd38b - Fix build.
- Remove unused file.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32831 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-30 13:57:58 +00:00
Bruno G. Albuquerque c2e9bbc888 - Revert excessive debugging.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32447 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-16 22:13:28 +00:00
Bruno G. Albuquerque cd75ca52e7 - Yet more debug. This should allow me to test locally.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32446 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-16 18:35:01 +00:00
Bruno G. Albuquerque e46d0e7d91 - Even more debugging. This is temporary while #4103 is fixed.
- Added some missing \n.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32437 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-16 12:56:10 +00:00
Bruno G. Albuquerque 25a638d411 - Implemented handling of partial matches. This must be improved
eventually as, right now, we just handle it as normal multiple matches.
- Improved error reporting for CDDB query commands.

This should fix #4103.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32423 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-15 21:04:00 +00:00
Bruno G. Albuquerque 6ca5e0f9fa - Fix small typo.
Is it intentional that Horizontal Frequency is reported as being KHz while
Vertical Frequency is reported as being Hz?



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32104 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-03 21:54:14 +00:00
Bruno G. Albuquerque 08eedf6c5b - Remove error reporting when we can not open the inbox directory to read the
manifest from it. This is a common condition on the first run.
- Added a comment about this.

This fixes ticket #2133.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31650 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-07-20 11:30:39 +00:00
Bruno G. Albuquerque 808cb201de - Small clean-up. Change relevant function names to more appropriate and
non-ambiguous names (as pointed out by Ingo).
- This file has a lot of code that is Haiku only and is not in the original
  ntfs-3g code. maybe we should try to clean this up and merge the changes
  upstream.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31592 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-07-15 16:52:08 +00:00
Bruno G. Albuquerque 137ded7516 - Use ntfschar instead of wchar_t where applicable. libntfs assumed that the
size of wchar was 16 bits, which was not true anymore after recent changes.
- Considering the changes were inside libntfs, which is 3rd party code, I am
  not sure this is the correct way to apply this fix (if you have a better
  idea, let me know.
- This fixes bug #4075.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31589 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-07-15 15:39:09 +00:00
Bruno G. Albuquerque 9bed204d78 - Remove left-over debug output.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30838 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-05-24 14:02:06 +00:00
Bruno G. Albuquerque 5850567a72 - Fix renaming a FAT volume.
Note that this does not fix the fact that the volume name can be in the bpb or
in a diri. The dosfs_identify_partition() only returns the label in the bpb so
more usually than not it will show one name in Tracker's mount menu and a
different name when mounted.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30837 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-05-24 13:56:16 +00:00
Bruno G. Albuquerque 68c8eecd08 - Clean up server output. Added more relevant information.
- Added the server to Bootscript.

This closes ticket #3446.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30781 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-05-17 14:15:00 +00:00
Bruno G. Albuquerque bcfb0a3331 - For audio-related stuff, when going from bits per second to kilobits per
second we should use 1000 as a factor and not 1024. Thanks Fredrik Ekdahl
  for the heads up.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30780 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-05-17 12:44:59 +00:00
Bruno G. Albuquerque 1bf034d2f5 - Check if we had any changes in status before sending a notification for a new
inserted media. This fixes ticket #3921.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30774 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-05-16 21:41:33 +00:00
Bruno G. Albuquerque 51d94f48fe - Set the CD:do_lookup attribute correctly.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30769 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-05-16 16:23:16 +00:00
Bruno G. Albuquerque 0bd0e0af2a Marco Nelissen: The bitrate of an audio CD is 44100*4*8 (well, the bitrate of
the "files" is, the actual bitrate of the CD is higher because of error
correction).



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30749 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-05-13 14:54:06 +00:00
Bruno G. Albuquerque d95493aa4f - Ops... Fix compilation.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30738 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-05-13 00:10:06 +00:00
Bruno G. Albuquerque a7fe1dbb69 - Added bitrate attribute to audio files.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30737 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-05-13 00:08:57 +00:00
Bruno G. Albuquerque 4a35a822d5 - Finished up cddb_daemon. Still some cleanup needed here and there but it works.
- Added it to the image.
- Anyone wants to come up with an icon for it? :)



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30736 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-05-13 00:05:53 +00:00
Bruno G. Albuquerque 44f7948892 - If the name of a CD was changed, return this name instead of the generic
"Audio CD" or CD Text obtained one.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30732 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-05-12 22:47:22 +00:00
Bruno G. Albuquerque 2a2eb31535 Work in progress. Just commiting so I don't lose this code due to OpenBFS bugs
for the third time. :P

- Implement CDDBServer class.
- Include relevant CDDB commands.
- Initial processing of CDDB data. Change device name.

This is close to be complete but I hit some cdda-fs bugs that need to be fixed
before I will finish this.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30703 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-05-11 00:55:42 +00:00
Bruno G. Albuquerque 2b829b045f - Fix DHCP client when multiple interfaces are present in the system.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30656 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-05-07 13:00:08 +00:00
Bruno G. Albuquerque 28b6c8138b - Revert to calling Minimize() on the window constructor as this works as
expected now.
- Yeah, yeah... Style guidelines. I just followed what is used throughout
  this file. :)



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30630 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-05-05 01:31:01 +00:00
Bruno G. Albuquerque 8562115dd7 - Fix fetching new emails with IMAP. This closes ticket #3512.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30479 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-29 00:58:30 +00:00
Bruno G. Albuquerque 8adb85f8b7 Update names to include spaces. This is relevant because this is user visible.
Not included in the image yet but I think it may be a good idea to include it.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30447 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-26 22:36:51 +00:00
Bruno G. Albuquerque 380ed9afdd Add Gmail info to the build.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30442 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-26 20:49:18 +00:00
Bruno G. Albuquerque 2236433088 Added GMail information.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30441 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-26 20:45:56 +00:00
Bruno G. Albuquerque b15e2008a6 Removed some left over debug output.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30439 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-26 19:22:10 +00:00
Bruno G. Albuquerque f3c32c1b8a If a preferred app was manually set but it is not found anymore (say, it was
deleted) try to handle it as if there was no preferred app set and if a
handler for its type exists, use it to open the file.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30438 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-26 19:11:47 +00:00
Bruno G. Albuquerque 107d2b333b Only try to add the preferred app if it can be found, otherwise the Open With
menu would be completelly empty.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30430 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-26 15:52:01 +00:00
Bruno G. Albuquerque 2144797f02 This fixes retrieval of email from IMAP servers. It seems there is a difference between the behaviour of BPath in R5 and Haiku (as this used to work in R5). More specifically:
BPath blah("blah");
printf("%s\n", blah.Path());

It seems that in R5 it would print "blah" (untested as I don't have R5 anymore, but this code definitelly used to work). And in Haiku it prints "/currrent/path/blah".

This fixed bug #3187.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29326 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-26 22:38:24 +00:00
Bruno G. Albuquerque 3539f6ec6a Added a TODO related to the runtime loader + OpenSSL problem.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29321 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-25 10:41:12 +00:00
Bruno G. Albuquerque bec8576238 Works around problem with runtime loader described here:
http://www.freelists.org/post/haiku-development/Runtime-loader-problem

The problem seems to be related to loading/unloading add-ons linked against the
recent OpenSSL. Linking the E-mail preferences against the SSL libraries (when
USE_SSL is enable) fixes this as the SSL libraries are not unloaded then.

I am still investigating this but will have no more time this week so I am commiting this workaround until I look at it again.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29320 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-25 10:37:42 +00:00
Bruno G. Albuquerque a440ab6ef1 - Small update.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29294 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-23 18:05:36 +00:00
Bruno G. Albuquerque cac9c31e53 - Removed debug output.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29286 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-22 14:31:45 +00:00
Bruno G. Albuquerque 7323980943 - Fix displaying of the From: popup menu when composing a new message.
This actually show a bug in BPopUpMenu. It seesm to think that its size
includes the arrow at its right size and so it draws the menu item
string over it. Stippi?



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29285 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-22 14:31:03 +00:00
Bruno G. Albuquerque ae2bf46029 The Spam DBM may not have the best interface in the world but it is one of the best anti-spam tool I saw so I am adding it to the image (in fact the interface with changes by darkwyrm looks worse than the original one, IMHO).
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29284 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-22 13:45:40 +00:00
Bruno G. Albuquerque ef93221da6 - Now NetBuffer and DynamicBuffer agree and the smallest buffer size posible.
- This means that buffers with a initial size of 0 work now.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29006 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-01-24 23:42:43 +00:00
Bruno G. Albuquerque b100149cb4 - Small style change.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28936 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-01-18 16:05:46 +00:00
Bruno G. Albuquerque 35336d367e - Updated copyright header.
- Fixed some styles violations.
- Changed signature to include the executable name.

Preparation for the new code coming.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28935 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-01-18 15:26:11 +00:00
Bruno G. Albuquerque 4650eca258 - Implemented some suggestions by stippi.
- Corrected some bugs also pointed by him.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28933 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-01-18 12:39:44 +00:00
Bruno G. Albuquerque d254c83c84 - Changed BNetBuffer to a simpler (and R5 compatible) implementation.
- This has the side effect that now it actually works.
- This also indirectly fix BNetEndpoint usage of BNetBuffer.
- Added DynamicBuffer (the underlying buffer implementation) to the Jamfile.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28928 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-01-17 21:28:10 +00:00
Bruno G. Albuquerque a12096e5c7 - Got it to actually compile.
- Default buffer size is now set to 1 instead of 0, which would cause the
  construction without a given size to fail.
- Added copy constructor.
- Changed _GrowToFit() to have a boolean parameter to indicate if we want
  to resize the buffer to an exact size. Used by the copy constructor. 



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28924 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-01-17 15:56:40 +00:00
Bruno G. Albuquerque b93465f1e0 - Ops... Missed some.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28920 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-01-17 14:03:22 +00:00
Bruno G. Albuquerque c98ce75f21 - Fixed style violations pointed by stippi.
- Use std:nothrow for new calls.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28919 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-01-17 14:01:22 +00:00
Bruno G. Albuquerque 550d24175f - Simple dynamic buffer class implementation.
- Will be used by the new (R5 compatible) NetBuffer class.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28918 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-01-17 13:30:21 +00:00
Bruno G. Albuquerque 9141571856 - Traverse links when adding well known directories.
This change will make directories like the downloads folder get its correct
special icon even if it is a link to a another directory. The destination
directory also gets the icon which makes it easy to identify special
directories even in other partitions.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28730 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-25 23:38:08 +00:00
Bruno G. Albuquerque 641305c237 - Find panel now also includes supertype attributes.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28729 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-25 22:50:02 +00:00
Bruno G. Albuquerque 2cb8652f55 - The Trash context menu was using a checkmark to keep track of the last
selected item which does not make much sense. Disabled the checkmark.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28201 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-10-17 00:33:38 +00:00
Bruno G. Albuquerque 837057611d - Better be safe than sorry. Check MIME type and super type after
constructiuon. Thanks Rene for reminding me that BMimeType actually has a
  InitCheck() method. :)




git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27224 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-08-28 17:38:52 +00:00
Bruno G. Albuquerque ec44f528d8 - Added handling for the table of contents (toc) attribute. Now it is ready to
retrieve CDDB information. This is coming as soon as I have real time (as
  opposed to some minutes during lunch) to work on it.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27200 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-08-25 17:43:10 +00:00
Bruno G. Albuquerque dcf3842b09 - Changed the well-known "Downloads" dir to be named "downloads" for
consistency.

All well-known directories in the home dir ("mail", "people", "config") are all
lowercase. The only exception was the "Downloads" one.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27199 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-08-25 16:58:47 +00:00
Bruno G. Albuquerque e1d9b81384 - AttributeIterator::Update() now take into account differences between its
view of the small data section and the outside view.

Long version:

AttributeIterator is a higher level class designed to make it easy to iterate
through attributes in the small data section. The first attribute in the small
data section is the special "name" attribute that is used to reconstruct the
node path when you only have a node handy. As this attribute is not user
visible nor user modifiable (except by changing a node name of course), it is
considered a special attribute so the AttributeIterator class ignores it and
starts iterating from the second attribute on.

As opposed to this, internally the Inode class accesses the small data section
directly without using the AttributeIterator class so whenever it indexes items
in the small data section, it takes into account the special "name" attribute.

This creates a off-by-one relationship between those 2 representations and this
was a problem because whenever the small data section changed, all iterators
had to be updated (through a call to AttributeIterator::Update() having an
index parameter that represented the outside view and not the AttributeIterator
view, so iterators would not be adjusted correctly and the end result is that
every other attribute was not removed from the index. This would cause all
types of havoc with indexes, the simplest one being that entries in indexes
would point to non-existing nodes.

Ingo, pleased now? ;)



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27196 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-08-25 12:25:15 +00:00
Bruno G. Albuquerque fb3edfeb27 - TAB is a valid character in a file name (although weird) and it also needs to
be escaped.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27184 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-08-24 13:14:25 +00:00
Bruno G. Albuquerque e07a4b3be0 - Correct the index number when calling _RemoveSmallDat() with an index.
This may be masking out a different bug.
- This fixes part of bug #2614. It may even fix all of it but I have to 
  test.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27180 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-08-23 22:16:12 +00:00
Bruno G. Albuquerque a0e3096f6a - Fixed Backgrounds Tracker add-on. I have no idea how some people seem to not
be able toreproduce it before.
- Don't try to access methods in a NULL object. :)
- This fixex bug #1128.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27153 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-08-22 15:05:44 +00:00
Bruno G. Albuquerque e645c32e77 - Further updated supertypes.
- Could not find a suitable icon for multipart files. Ideas?
- Added missing descriptions and fixed the image descriptions.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27147 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-08-22 12:33:07 +00:00
Bruno G. Albuquerque e51479d912 - Creates the supertype menu when only supertype attributes are present.
- *NOW* it works.
 


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27126 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-08-22 04:10:30 +00:00
Bruno G. Albuquerque be8c87abf6 - Added a new CreateMimeMenu() method that creates the menu with attributes
for a specific MIME type. 
- Attribute menus now display a hierarchy with type and supertype attributes.

This looks a bit ugly but mostly because not all types and supertypes have icons and descriptions. Anyone up to do a MIME database cleanup? :)



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27125 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-08-22 03:57:57 +00:00
Bruno G. Albuquerque 31ee3b53f5 - Export the SCSI TOC in the CD:toc attribute (required by the CDDB protocol).
- Do not save or load attributes in the protected namespace.

Now cddb_server has everything it needs.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27120 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-08-21 23:46:00 +00:00
Bruno G. Albuquerque b29b6eb84a - Added a version of _RestoreAttributes() that accepts a fd as a parameter.
Usefull when, for some reason, you already have an fd around.
- Changed the non-parameter version to set the fd and call the parametrized
  version.
- CD-Text reasing is expensive (takes up to 4 seconds on my machine) so now it
  is only done if this is the first time the CD is inserted (technically, if it
  errors out when trying to open the attributes file for the CD). With this, the
  first time I mount a CD still takes 4 seconds, but consecutive mounts happen
  almost instantaneously.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27109 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-08-21 14:36:25 +00:00
Bruno G. Albuquerque 233871e4d4 - Yet another style fix. This is getting old. :) Thanks Axel (again).
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27108 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-08-21 14:28:20 +00:00
Bruno G. Albuquerque 5ec5b4f201 - As expected, style fixes. Thanks Axel.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27105 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-08-21 12:37:31 +00:00
Bruno G. Albuquerque 82427071c1 - Added skeleton for new cddb_server.
- Includes all relevant handling of CDDA exported attributes so you guys can
  see where I am going with this.
 
CDDB handling (including server connection, request and response parsing)
will come up next. In the future we will also have a configuration panel
and a Deskbar replicant for controlling it.

Do we really have to edit the Jamfile in the parent dir to get something
building with our build system?



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27096 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-08-21 02:33:19 +00:00
Bruno G. Albuquerque df8aa69a76 - Created a static version of Attribute::IsProtectedNamespace() that takes an
attribute name as input. Handy for whyen we do not have an Attribute object
  around.
- Made the non-static version fall back to the static version.
- Also check for the protected namespace when creating attributes. For
  consistency, we should also not be able to create attributes in this
  namespace.
- Added some new style violations. ;)



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27082 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-08-20 15:48:37 +00:00
Bruno G. Albuquerque bb6b4c5076 - More style updates. Thanks Axel.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27081 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-08-20 14:37:43 +00:00
Bruno G. Albuquerque b2807ad696 - Added the concept of a restricted attribute namespace. The attribute class
now has a IsProtectedNamespace() member.
- All CD:* attributes can not be directly edited by the user as they are
  internally maintened by the add-on itself.
- Style updates (thanks Stefano!)



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27080 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-08-20 13:41:31 +00:00
Bruno G. Albuquerque 84719cae24 - Add a new CD:do_lookup attribute. It will be used by userland programs (like
cddblinkd) to know if they should lookup the CD or not. It will be true
  unless:

  1 - The CD has CD-Text information.
  2 - The user (or a userland program) changed the Volume name.
  3 - The user (or a userland program) changed any track names.

- Moved (again) attribute creation to before the stored attributes are read. As
  attribute operations happen in memory in cdda, we don't need to care about
  the IO cost and this way it is more in line with all the other attributes
  created.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27079 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-08-20 13:10:18 +00:00
Bruno G. Albuquerque d4969c919a - Moved creation of the CD:cddbid attribute to after the saved attributes are restored.
- Only adds it if it does not exist yet.

This does not change anything but makes more sense anyway.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27073 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-08-20 01:51:23 +00:00
Bruno G. Albuquerque 7c1b58f2bb - The wrong version of Inode::Attribute(0 was being called. Now setting the
attribute type works.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27072 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-08-20 01:34:43 +00:00
Bruno G. Albuquerque 128bb4926c - Added a crashing case (with a stack corruption, no less) to the ParseDateTest.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27003 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-08-17 13:21:49 +00:00
Bruno G. Albuquerque dd76369ea7 - Also fix references to the spa, server in Mail.
- Now marking emails as spam through the Mail app also works.

Still need to fix the Match Header filter as it seems not to be working.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@26991 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-08-16 12:48:27 +00:00
Bruno G. Albuquerque 9e5d812407 - We do not have the AGMS Spam Server in our tree, so fixed signature and names to load the third-party server if
provided.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@26985 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-08-15 23:52:23 +00:00
Bruno G. Albuquerque 2bf20e253b - Add the TLA back. I still think it is useless but I guess even in R5 the files
included the extension.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@26979 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-08-15 14:06:15 +00:00
Bruno G. Albuquerque c4cbe945fe - Exported CDDB id trough the CD:cddbid attribute.
- Tracks are now called "Track XX" instead of "XX".
- We need no stinking TLAs! :)

Next step, porting CDDBLinkD to Haiku.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@26974 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-08-14 17:39:33 +00:00
Bruno G. Albuquerque b407c416eb Force multi-device mode for JMicron controllers supporting SATA/PATA
interfaces. This fixes bug #2227.

Note that when the SATA interface is in AHCI mode it is still failing 
due to what seems to be a device manager problem. I will open a separate 
bug for it.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@26902 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-08-09 20:32:18 +00:00
Bruno G. Albuquerque 7c7dc861e8 Work in progress while trying to fix ticket #2227:
- Ooops. Copy and paste bug.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@26863 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-08-07 17:05:12 +00:00