#
5ce80a78 |
|
21-Apr-2015 |
Axel Dörfler <axeld@pinc-software.de> |
BMessage: implemented KMessage reply. * When you receive a message from a KMessage, and reply to it, it will automatically reply as KMessage, too. * This allows to communicate with BLoopers from within the kernel or libroot.so.
|
#
4d50aa32 |
|
29-Apr-2015 |
Axel Dörfler <axeld@pinc-software.de> |
MessageAdapter: cleanup, no functional change.
|
#
998b880a |
|
28-Jul-2013 |
Rene Gollent <anevilyak@gmail.com> |
libbe: Fix MessageAdapter on x86-64. When unflattening an R5 formatted message, explicitly use int32 rather than ssize_t, since the latter's size differs by architecture.
|
#
b1784a9d |
|
22-May-2010 |
Stephan Aßmus <superstippi@gmx.de> |
Reworded commented out code with regards to not knowing the data size yet, to decide whether to apply the mini data flag. Helps compilation with clang according to ticket #5892. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36908 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
41975f20 |
|
25-Nov-2009 |
Ingo Weinhold <ingo_weinhold@gmx.de> |
Fixed gcc 4 32 and 64 bit warnings in the libbe_build code. This time ported them back to the Haiku versions. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34262 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
e6604f48 |
|
25-Nov-2009 |
Ingo Weinhold <ingo_weinhold@gmx.de> |
Don't use ssize_t in structs describing persistent structures. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34258 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
35d1ffa9 |
|
27-Aug-2009 |
Michael Lotz <mmlr@mlotz.ch> |
That debug output was of course accidentally commited. +alphabranch git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32773 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
fa1b1031 |
|
27-Aug-2009 |
Michael Lotz <mmlr@mlotz.ch> |
Not that I'd understand the problem GCC4 has with that while GCC2 doesn't care, but this fixes the GCC4 build again, without breaking the function. +alphabranch git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32772 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
77093be1 |
|
27-Aug-2009 |
Michael Lotz <mmlr@mlotz.ch> |
Whatever r32042 was supposed to fix in that file, it really broke R5 message unflattening if they included any target or reply info. Changing the reader usage like this makes the first argument a pointer to a buffer. It would therefore write to random locations, because it would use the literal value of those header fields as pointers, crashing the using application. Will check for GCC4 compliance next. +alphabranch git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32771 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
a0bfe3ab |
|
31-Jul-2009 |
Rene Gollent <anevilyak@gmail.com> |
gcc4 build fix. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32042 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
d7a16b23 |
|
31-Jul-2009 |
Michael Lotz <mmlr@mlotz.ch> |
* Fully switch to the Haiku message format so that it is also used for on-disk storage. * Remove reduntant information from the header (field_count vs. fields_size). * Remove checksums previously used to validate the message passing by area mechanism. * Move variables that are purely used by the instance out of the header and into the BMessage object. * Use more sensible types for the different message fields. * Reduce some field sizes to realistic values. * Make size_t values into uint32 values so the message format will not change when later moving to 64 bits. * Pack the structures used for flat message storage so it doesn't change because of padding. * Fix message passing by area. It never worked because the created area was never actually filled with any data! * Some more allocation checks with graceful fallbacks (should be all now). * Some more checks for negative index values (should also be all now). * Make printing more inline with how the rest of the class works and make some of the output more consistent. * Also add the new unsigned types to PrintToStream() output. * Fix printing of unknown types and invalid BMessages, it would always have printed only the first entry respectively the same error. * Added some clarifying comments. * Cleanup. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32039 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
48a7b12a |
|
29-Jul-2009 |
Michael Lotz <mmlr@mlotz.ch> |
Clear the padding to 0 when flattening to the R5 message format. Besides being cleaner it allows for binary comparison of flattened messages. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31908 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
18cd67c7 |
|
22-Jan-2009 |
Michael Lotz <mmlr@mlotz.ch> |
Add missing headers (malloc/free, string functions, memcpy, etc. undeclared). git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28982 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
c66c6997 |
|
13-Sep-2008 |
Michael Lotz <mmlr@mlotz.ch> |
CID 225: If the field size was <= 0 the field buffer wasn't allocated but still used in the switch statement. Change that to continue early when a filed size of <= 0 is encountered. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27488 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
d3ce129e |
|
12-Aug-2007 |
Michael Lotz <mmlr@mlotz.ch> |
Use swap_data() when unflattening a swapped message. It fits this purpose perfectly as it does conversion based on the type code. Now known type like B_INT32_TYPE will get swapped automatically. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21913 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
0127fb77 |
|
12-Aug-2007 |
Michael Lotz <mmlr@mlotz.ch> |
* Respect endiannes for item lengths inside swapped BMessages * Also swap the flattened size when creating the read buffer * Define specialized byte_swap()s for unsigned types too so that type_code and the like get swapped correctly This should fix bug #1371. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21901 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
5dc45eb4 |
|
27-Jun-2007 |
Michael Lotz <mmlr@mlotz.ch> |
* Unified handling of different BMessage formats into MessageAdapter.cpp * Removed r5_message.cpp and dano_message.cpp accordingly * Also moved out KMessage handling from Message.cpp to MessageAdapter.cpp * Fixed some minor style issues in Message.cpp git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21514 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
5ce80a78c976c96d3afe4e9bd9eb473cb54c362c |
|
21-Apr-2015 |
Axel Dörfler <axeld@pinc-software.de> |
BMessage: implemented KMessage reply. * When you receive a message from a KMessage, and reply to it, it will automatically reply as KMessage, too. * This allows to communicate with BLoopers from within the kernel or libroot.so.
|
#
4d50aa327c8ec9d6adfcb2a2a8447674df28332b |
|
29-Apr-2015 |
Axel Dörfler <axeld@pinc-software.de> |
MessageAdapter: cleanup, no functional change.
|
#
998b880a6137204f53f1c7f9a57db77960d9670f |
|
28-Jul-2013 |
Rene Gollent <anevilyak@gmail.com> |
libbe: Fix MessageAdapter on x86-64. When unflattening an R5 formatted message, explicitly use int32 rather than ssize_t, since the latter's size differs by architecture.
|
#
b1784a9dbdacae2247d927c39b4e239013e448d4 |
|
22-May-2010 |
Stephan Aßmus <superstippi@gmx.de> |
Reworded commented out code with regards to not knowing the data size yet, to decide whether to apply the mini data flag. Helps compilation with clang according to ticket #5892. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36908 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
41975f20f06aba8438a5fe5679cfbe7d85b12dd5 |
|
25-Nov-2009 |
Ingo Weinhold <ingo_weinhold@gmx.de> |
Fixed gcc 4 32 and 64 bit warnings in the libbe_build code. This time ported them back to the Haiku versions. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34262 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
e6604f4804b971990a1db3e0e5b7626d5ee622be |
|
25-Nov-2009 |
Ingo Weinhold <ingo_weinhold@gmx.de> |
Don't use ssize_t in structs describing persistent structures. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34258 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
35d1ffa9c458edf093dc53be6aa0ced174d222b9 |
|
27-Aug-2009 |
Michael Lotz <mmlr@mlotz.ch> |
That debug output was of course accidentally commited. +alphabranch git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32773 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
fa1b1031d215c4adfde741efd13ed1993dc5c282 |
|
27-Aug-2009 |
Michael Lotz <mmlr@mlotz.ch> |
Not that I'd understand the problem GCC4 has with that while GCC2 doesn't care, but this fixes the GCC4 build again, without breaking the function. +alphabranch git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32772 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
77093be11a1c9bc41d3fdb9c2f09f5aa1a24c8d1 |
|
27-Aug-2009 |
Michael Lotz <mmlr@mlotz.ch> |
Whatever r32042 was supposed to fix in that file, it really broke R5 message unflattening if they included any target or reply info. Changing the reader usage like this makes the first argument a pointer to a buffer. It would therefore write to random locations, because it would use the literal value of those header fields as pointers, crashing the using application. Will check for GCC4 compliance next. +alphabranch git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32771 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
a0bfe3ab9db79a13e4cd37941add94f5f345f393 |
|
31-Jul-2009 |
Rene Gollent <anevilyak@gmail.com> |
gcc4 build fix. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32042 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
d7a16b238f2207547080ea7eb0f4c430b6f25049 |
|
31-Jul-2009 |
Michael Lotz <mmlr@mlotz.ch> |
* Fully switch to the Haiku message format so that it is also used for on-disk storage. * Remove reduntant information from the header (field_count vs. fields_size). * Remove checksums previously used to validate the message passing by area mechanism. * Move variables that are purely used by the instance out of the header and into the BMessage object. * Use more sensible types for the different message fields. * Reduce some field sizes to realistic values. * Make size_t values into uint32 values so the message format will not change when later moving to 64 bits. * Pack the structures used for flat message storage so it doesn't change because of padding. * Fix message passing by area. It never worked because the created area was never actually filled with any data! * Some more allocation checks with graceful fallbacks (should be all now). * Some more checks for negative index values (should also be all now). * Make printing more inline with how the rest of the class works and make some of the output more consistent. * Also add the new unsigned types to PrintToStream() output. * Fix printing of unknown types and invalid BMessages, it would always have printed only the first entry respectively the same error. * Added some clarifying comments. * Cleanup. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32039 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
48a7b12ad87df7d5c9f98ea9c2c819434bb17365 |
|
29-Jul-2009 |
Michael Lotz <mmlr@mlotz.ch> |
Clear the padding to 0 when flattening to the R5 message format. Besides being cleaner it allows for binary comparison of flattened messages. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31908 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
18cd67c76072f825c4a7ba58414771d47fd1bfa2 |
|
22-Jan-2009 |
Michael Lotz <mmlr@mlotz.ch> |
Add missing headers (malloc/free, string functions, memcpy, etc. undeclared). git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28982 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
c66c6997dba7ba4371e73f285da20d8bcb990c78 |
|
13-Sep-2008 |
Michael Lotz <mmlr@mlotz.ch> |
CID 225: If the field size was <= 0 the field buffer wasn't allocated but still used in the switch statement. Change that to continue early when a filed size of <= 0 is encountered. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27488 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
d3ce129ef353b39d1063afaa0d67ec94b63ac019 |
|
12-Aug-2007 |
Michael Lotz <mmlr@mlotz.ch> |
Use swap_data() when unflattening a swapped message. It fits this purpose perfectly as it does conversion based on the type code. Now known type like B_INT32_TYPE will get swapped automatically. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21913 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
0127fb779de856b9b9ee833ad7b29990167e89cd |
|
12-Aug-2007 |
Michael Lotz <mmlr@mlotz.ch> |
* Respect endiannes for item lengths inside swapped BMessages * Also swap the flattened size when creating the read buffer * Define specialized byte_swap()s for unsigned types too so that type_code and the like get swapped correctly This should fix bug #1371. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21901 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
5dc45eb4fe439d5f272bbc04f2eae2a31ef9de92 |
|
27-Jun-2007 |
Michael Lotz <mmlr@mlotz.ch> |
* Unified handling of different BMessage formats into MessageAdapter.cpp * Removed r5_message.cpp and dano_message.cpp accordingly * Also moved out KMessage handling from Message.cpp to MessageAdapter.cpp * Fixed some minor style issues in Message.cpp git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21514 a95241bf-73f2-0310-859d-f6bbb57e9c96
|