Commit Graph

1183 Commits

Author SHA1 Message Date
ejakowatz
02043d35db Added calc_padding() convenience function for calculating how much padding to add to a buffer in order for it to fall on a specified byte boundary.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8889 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-07 23:06:32 +00:00
ejakowatz
e4265bfbfe Modified BDataBuffer's copy constructor to let the user specify whether to create a copy of the buffer or just a reference. Also changed all void* params to be const.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8888 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-07 23:00:30 +00:00
Axel Dörfler
cbe8d2b0fe Applied some parts of our style guide.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8864 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-06 17:33:33 +00:00
Axel Dörfler
4bccccda2e Fixed two wrong cast types which broke the build over here.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8863 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-06 17:28:42 +00:00
DarkWyrm
3713534518 Tweak to FindClosestColor
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8853 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-05 00:46:37 +00:00
Michael Pfeiffer
ad867a27fb Implemented quick sort. Refactored source code.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8839 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-04 09:39:05 +00:00
Michael Pfeiffer
38ded28eee Fixed bugs.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8803 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-02 20:29:30 +00:00
Stefano Ceccherini
4826cc5f6a Added a (mostly not tested) _PointerList_ class. Please (Michael Pfeiffer or Ingo, whoever comes here first ) have a look at it :)
Note that I needed to write my own BSearch() because the compare functions used by _PointerList_ wants items as arguments, while the C bsearch() wants pointers to items as arguments.
The same applies to qsort(), though it's not been written yet.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8744 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-08-31 10:10:23 +00:00
Philippe Houdoin
d72d2ff161 Rename get_stack_driver_path() into stack_driver_path() to follow BeOS naming policy
about functions directly returning the value.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8739 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-08-31 08:56:18 +00:00
Stefano Ceccherini
f6cd639a4b Sheesh! No wonder the styling code wasn't fully working, as we were using different constants for font attributes than the ones used by BeOS R5. Now we use those constants directly. Still not ok, but we are on the right track now (I hope :))
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8738 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-08-31 07:08:49 +00:00
Philippe Houdoin
1886cac8e3 Include /etc files in the package. Their installation at final location is
not yet there, work in progress.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8729 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-08-30 21:55:29 +00:00
Stefano Ceccherini
74dca7b4f4 - Fixed crash during unarchiving, caused by the use of the wrong variable (thanks to Bill Hayden for reporting), and added a check which would have avoided the crash.
- Style changes to StyleBuffer.cpp plus a small fix in ContinuousGetStyle().


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8723 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-08-30 09:02:31 +00:00
DarkWyrm
64bc6cc549 Checkin for Michael Lotz - implementation of unarchiving constructor
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8721 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-08-29 21:59:58 +00:00
Jérôme Duval
0c40e5db5b Fixed returned values
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8715 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-08-29 16:38:05 +00:00
Ingo Weinhold
044be4e258 Introduced a new build flag and macro RUN_WITHOUT_APP_SERVER, to allow
several things to work without a running app server (the Storage Kit to
begin with).


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8695 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-08-28 20:18:31 +00:00
Ingo Weinhold
db10640de9 Got rid of the Storage Kit's kernel abstraction layer, which was
unfortunately quite slow and made some things more complicated than they
needed to be.
Implemented a few missing things (e.g. BSymLink and node locking).


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8694 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-08-28 20:14:46 +00:00
Ingo Weinhold
233e6dadef The whole Storage Kit now uses syscalls directly. No further need of this abstraction layer.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8693 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-08-28 20:08:05 +00:00
haydentech
2b7da86751 Resolved some compiler warnings
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8678 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-08-27 15:23:39 +00:00
Jérôme Duval
d5f2a1f371 added our input server signature in comment
added #ifndef COMPILE_FOR_R5 to avoid BPortLink linkage when needed


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8676 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-08-27 14:32:13 +00:00
Philippe Houdoin
7ada78200d NetworkingKit package's libs where misplaced, installed into
Desktop/openbeos-networkingkit-cvs, when bin tools where, them, installed into Desktop/haiku-networkingkit-cvs !
This should not have help earlier tester(s) ;-)


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8675 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-08-27 13:45:46 +00:00
Stefano Ceccherini
6276c26824 - Some more error checking in some functions
- Fixed SetMaxBytes(), and made it delete the text if it's longer than the indicated bytes
- Fixed Delete(int32, int32) as it was doing bad things if you deleted the final part of the text
- Fixed PageDown handling (at least, it looks like so)


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8673 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-08-27 08:35:15 +00:00
Stefano Ceccherini
758fe00be9 Started adding input methods "clauses" support.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8672 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-08-27 06:50:41 +00:00
Stefano Ceccherini
7fd612e59f And here's the blue highlight when an input method addon like the Japanese one is used (the red one isn't yet there)
Some minor changes.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8657 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-08-26 06:30:43 +00:00
Stefano Ceccherini
939b1a9c4c PageDown and PageUp now behave a bit better. Still not completely ok, plus the code is a mess.
Needs to cleanup


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8640 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-08-25 07:50:35 +00:00
Stefano Ceccherini
2a346d67a6 - Fixed a nasty regression which made the control unusable
- Fixed the "caret looks like a point" bug
- More work on the Styling code


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8638 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-08-25 06:49:43 +00:00
ejakowatz
b9c2cb3cd1 BMessage now sends B_NO_REPLY on destruction if no reply has been sent.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8637 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-08-25 04:14:30 +00:00
ejakowatz
68247322bf Squished another possible memory leak.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8636 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-08-24 23:59:33 +00:00
ejakowatz
72a804515c Fixed a couple of memory leaks and an incorrect index bounds check.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8635 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-08-24 23:54:02 +00:00
DarkWyrm
bceb8166d4 Added a function to the BPortLink debugging code
Made a couple of style tweaks to BApplication::connect_to_app_server


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8620 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-08-22 00:22:51 +00:00
DarkWyrm
f9ed3ba7d5 Fixed a stupid mistake in the message to create a window
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8619 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-08-22 00:10:44 +00:00
Jérôme Duval
7bc84645a1 Added private input headers, for input server communication in Input.cpp and InterfaceDefs.cpp
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8602 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-08-18 15:41:33 +00:00
Jérôme Duval
4d8f736888 Change to shared command constants
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8601 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-08-18 15:40:08 +00:00
Stefano Ceccherini
9705d07a5d I tought I already committed this:
Some small fixes and error checks


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8597 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-08-17 13:52:18 +00:00
beveloper
e4d07a3e71 Added some new functions which seem to be required for Xentronics SampleStudio Pro.
Added missing license to implementation files.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8590 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-08-16 12:44:00 +00:00
beveloper
146e92861a This is now the Haiku Media Kit
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8588 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-08-15 21:53:41 +00:00
beveloper
98eb4f65ae shutdown and restarting of media_server is handled by libbe.so, not by libmedia.so
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8583 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-08-15 16:25:54 +00:00
beveloper
a861a01ea4 switch to Be Inc media server signature, to allow libbe.so sending messages to the server
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8573 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-08-15 12:06:27 +00:00
beveloper
51599367a2 made error messages a little more informative
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8572 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-08-15 12:00:03 +00:00
beveloper
7562d5508a Two additional functions to support gain selection for media files (sound events).
Allows better compatibility with Zeta's preference application.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8571 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-08-15 11:54:17 +00:00
Ingo Weinhold
f28fc0257e Removed superfluous GetStat() in the setter methods.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8570 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-08-14 10:13:20 +00:00
Philippe Houdoin
200ec0269e Remove const that breaks binary compatibility (const are mangled too).
Thanks axeld to point at them.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8569 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-08-14 01:24:57 +00:00
Philippe Houdoin
2c42f7bcf1 Complete BNetEdnpoint implementation, based on Alexandre Bique contribution.
Fix sendto() and recvfrom() sockaddr length argument to int, not size_t.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8564 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-08-14 00:12:28 +00:00
Ingo Weinhold
b1a1ca6c03 Fixed entry_ref_to_path() and optimized dir_to_path(). The basic
Storage Kit unit test are passed again.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8563 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-08-13 23:44:43 +00:00
Philippe Houdoin
3bf35a18e8 Now, Dump() output hex and ascii side by side.
Renamed g_IsEnabled global into a more meaningfull name.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8554 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-08-13 09:19:13 +00:00
DarkWyrm
38e110b124 Client-server messaging fixes
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8543 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-08-08 22:35:25 +00:00
haydentech
208b62ed86 gcc3 fix
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8533 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-08-02 21:09:22 +00:00
haydentech
f073f5d156 Fix 2 instances of mismatched locking
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8532 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-08-02 21:07:55 +00:00
DarkWyrm
3ceb31b96a Pahtz's changes from PortLink/BSession/PortMessage/PortQueue to BPortLink
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8519 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-07-30 15:15:27 +00:00
Jérôme Duval
c7ee25fdca Splitted Globals.cpp in GraphicsDefs.cpp and InterfaceDefs.cpp to match headers
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8500 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-07-29 10:24:31 +00:00
Stefano Ceccherini
5dccfc1921 Some small changes (mostly suggested by Axel). Added more ToDO items, changed some comments, added some more (unhandled yet) message codes.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8496 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-07-29 06:49:17 +00:00