Rudiments
|
00001 // Copyright (c) 2004 David Muse 00002 // See the COPYING file for more information. 00003 00004 #ifndef RUDIMENTS_DEVICE_H 00005 #define RUDIMENTS_DEVICE_H 00006 00007 #include <rudiments/private/deviceincludes.h> 00008 00009 #ifdef RUDIMENTS_NAMESPACE 00010 namespace rudiments { 00011 #endif 00012 00013 class deviceprivate; 00014 00022 class RUDIMENTS_DLLSPEC device : public file { 00023 public: 00024 00026 device(); 00027 00030 device(const device &d); 00031 00034 device &operator=(const device &d); 00035 00037 virtual ~device(); 00038 00045 static bool createDeviceNode(const char *filename, 00046 bool blockdevice, 00047 uint16_t major, 00048 uint16_t minor, 00049 mode_t perms); 00050 00051 #include <rudiments/private/device.h> 00052 }; 00053 00054 #ifdef RUDIMENTS_NAMESPACE 00055 } 00056 #endif 00057 00058 #endif