Stefano Ceccherini
19787aaf71
Removed BGA's uint32 utf8_char_len(uchar c)
...
function from this public header, since it's not safe, and it's slower than parsing bytes one by one.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4006 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-07-17 15:35:39 +00:00
Ingo Weinhold
e1570b66f8
Added mostly empty implementations for the missing methods; implemented some of them. Cleanup.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4002 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-07-17 00:06:58 +00:00
Ingo Weinhold
38844d14f8
Added ValidateInitialize() and a _SetTo(disk_system_id). Cleanup.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4001 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-07-17 00:05:31 +00:00
Ingo Weinhold
a1a7d37e2c
Added syscall for validating the initialization parameters.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4000 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-07-17 00:04:22 +00:00
Ingo Weinhold
3f60a01369
Added "name" parameter to KDiskSystem::[Validate]Initialize() and the respective module API functions.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3999 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-07-17 00:03:17 +00:00
Ingo Weinhold
a058daad3a
Implemented the remaining methods, some aesthetical changes.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3998 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-07-16 21:02:14 +00:00
Ingo Weinhold
8bc0bd912a
Added and implemented the remaining disk system syscalls.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3997 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-07-16 21:01:14 +00:00
Ingo Weinhold
1f3f1294a8
Added a IsSubSystemFor() method to the KDiskSystem interface and respective calls for the module interfaces.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3996 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-07-16 21:00:01 +00:00
Ingo Weinhold
910d993921
Implemented the BDiskSystem::Supports*() methods. Added required private helper methods to BPartition.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3989 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-07-15 21:44:23 +00:00
Ingo Weinhold
1863de6785
Added and implemented the first part of the disk system querying syscalls (_kern_supports_*()).
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3988 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-07-15 21:42:59 +00:00
Ingo Weinhold
0fbb290f51
Some changes to/fixes of the KDiskSystem interface and the disk system module interface.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3987 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-07-15 21:41:32 +00:00
Ingo Weinhold
a97769a5d3
Added {Read,Write}Lock{Device,Partition}().
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3986 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-07-15 21:39:34 +00:00
Ingo Weinhold
dd3be08988
* Removed VisitEach{Initializable,Partitionable}Partition() -- they are
...
too specific for a general API.
* Implemented {Register,Unregister}FileDevice().
* Implemented Get{Device,Partition}WithID() and
Get{Device,Partition}ForPath().
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3979 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-07-15 01:20:34 +00:00
Ingo Weinhold
442e574d88
Added FindDescendant() and _IsShadow().
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3978 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-07-15 01:16:29 +00:00
Ingo Weinhold
92b9e33326
* Added SetTo(partition_id), InitCheck().
...
* Added more parameters to _SetTo().
* Fixed problem in Unset() -- the BPartition version wasn't called.
* Implemented {Prepare,Cancel}Modifications() and IsModified(). The
latter doesn't work yet, since the syscall implementation is still
empty yet.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3977 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-07-15 01:15:17 +00:00
Ingo Weinhold
dd43c7769f
* Added shadow_id field to user_partition_data.
...
* Implemented several new syscalls (_kern_find_{disk_device,partition}(),
{prepare,cancel}_disk_device_modifications(),
[un]register_file_device()),
* Fixed some details in existing syscalls.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3976 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-07-15 01:10:32 +00:00
Ingo Weinhold
2438192b6c
Added a deviceOnly flag to {Find,Register}Device(). Minor {Create,Delete}FileDevice() changes.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3975 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-07-15 01:05:50 +00:00
Ingo Weinhold
5d22fa967a
Shadow partition related changes:
...
* Fixed handling of the deletion (removal) of shadow partitions. Formerly
the shadow partition corresponding to the disk device wasn't removed
properly.
* Added a shadow_id field to the user_partition_data structure which
contains the ID of the shadow partition, if it is one. The id field
will hold the ID of the physical partition.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3974 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-07-15 01:00:24 +00:00
DarkWyrm
82d4312974
Moved cursor_which defs to a private header
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3968 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-07-14 14:38:03 +00:00
DarkWyrm
a72997e0d4
Changes to support system cursors
...
Moved cursor_which defs to a separate file
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3967 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-07-14 14:37:10 +00:00
DarkWyrm
9381d29b6f
Massive reconfiguring to fix link problems with all things needing app_server so
...
urces
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3963 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-07-13 20:56:00 +00:00
shadow303
5c54c7191a
Fix templates for PortLink & PortMessage
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3960 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-07-11 23:16:15 +00:00
shadow303
d1acc68a9d
Templatize PortLink & PortMessage
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3950 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-07-11 01:49:58 +00:00
DarkWyrm
48326bef06
Added message codes for BWindow hook functions
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3948 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-07-10 20:20:35 +00:00
DarkWyrm
e76917c658
Added Read(int64*)
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3947 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-07-10 20:13:23 +00:00
DarkWyrm
2a4311aea6
Added Read(bool*)
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3935 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-07-10 17:41:44 +00:00
DarkWyrm
61480f2184
Simplified interface
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3932 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-07-10 16:51:51 +00:00
Philippe Houdoin
bf09be1c1e
Export socket_shutdown from core stack module. Rollback to NET_STACK_GET_COOKIE trick...
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3925 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-07-10 01:05:14 +00:00
Ingo Weinhold
e1302deadb
Damn, accidentially deleted the changed header via "cvs rm -f". Here it comes again: Disk system iteration functions added.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3910 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-07-08 23:45:53 +00:00
Ingo Weinhold
e6fb8288f7
Added missing methods in the header and a partial implementation in the source file.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3908 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-07-08 23:32:52 +00:00
Ingo Weinhold
bf5ffb0203
Added missing manipulation methods (though no implementation). Some cleanup. Renamed UniqueID() to ID().
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3906 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-07-08 23:30:30 +00:00
Ingo Weinhold
8bb7454636
Implemented disk system iteration.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3905 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-07-08 23:29:21 +00:00
Ingo Weinhold
0cb59d9c8c
Added IsReadOnlyMedia(), IsWriteOnceMedia(), and renamed IsRemovable() to IsRemovableMedia() for consistency.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3904 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-07-08 23:28:32 +00:00
Ingo Weinhold
995d5c53be
* Renamed ddm_user_interface.cpp to ddm_userland_interface.cpp which
...
matches the name of the header much better. :-)
* Implemented the syscalls for iterating through and finding disk systems.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3902 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-07-08 23:23:27 +00:00
Ingo Weinhold
621e29d0b5
Added a DiskSystemLoader class.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3901 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-07-08 23:21:34 +00:00
Ingo Weinhold
671a745561
Modified the visitor implementation a bit. The Visit() with the BPartition* argument now also gets the level of the partition in the hierarchy.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3900 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-07-08 18:26:15 +00:00
Ingo Weinhold
c54d68a84e
Should have waited a few more minutes... Renamed the methods {B,K}Partition::Is{Mountable,Partitionable}() to Contains{File,Partitioning}System(). Similar change for the respective flags (B_PARTITION_{MOUNTABLE,PARTITIONABLE}).
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3899 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-07-08 17:38:45 +00:00
Ingo Weinhold
55bf93d80d
Fixed handling of partition and device flags and statuses.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3898 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-07-08 17:25:32 +00:00
Ingo Weinhold
5c7270efd7
Beginning of Disk Device API:
...
* Made all headers parsable. Also some smaller changes.
* Added empty source files for new classes.
* Changed obsolete implementations of existing classes, so that we
now have basic functionality for BDiskDevice[Roster] and BPartition.
Iterating through disk devices works and the data we get doesn't look
too bad for the beginning.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3883 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-07-06 23:11:10 +00:00
Ingo Weinhold
c0455c33b8
* More shadow partition support.
...
* Writing disk device/partition data into userland buffer added.
* Migration of some definitions into <DiskDeviceDefs.h> header.
* Small bug fixes.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3882 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-07-06 23:01:22 +00:00
Ingo Weinhold
64cf9ebc08
Made PartitionRegistrar visible.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3881 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-07-06 22:57:40 +00:00
Ingo Weinhold
d885284414
First implementations of Disk Device API related syscalls (iterating through disk devices and retrieving disk device data). As long as we work in userland these aren't real syscalls, of course.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3880 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-07-06 22:56:39 +00:00
Ingo Weinhold
6bd5253e85
This is the header for global definitions shared by the Disk Device API and the disk device manager.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3878 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-07-06 22:51:42 +00:00
Michael Pfeiffer
c47667231a
extern "C" wrapper needed for inclusion from C++
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3870 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-07-06 10:30:56 +00:00
Axel Dörfler
243a71e41e
Forgot to commit the latest headers, sorry.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3855 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-07-05 12:53:10 +00:00
Ingo Weinhold
a162af3b0e
Made KPartition abstract and derived two classes, KPhysicalPartition
...
and KShadowPartition from it. KPhysicalPartition represents a partition
that exists on-disk, while KShadowPartition is a partition edited by the
API user, but not yet written to disk. Related changes in other classes.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3851 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-07-04 23:45:26 +00:00
beveloper
d96a1bd846
removed non-needed map include file
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3849 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-07-04 23:27:26 +00:00
shadow303
c6decab16c
Adjust message sizes for added view token
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3844 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-07-04 21:05:36 +00:00
shadow303
c6b1218b47
Make ReplyData public
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3843 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-07-04 21:04:37 +00:00
shadow303
603aaee5fc
fix for gcc 3
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3842 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-07-04 21:02:56 +00:00