Rudiments
device.h
1 // Copyright (c) 1999-2018 David Muse
2 // See the COPYING file for more information.
3 
4 #ifndef RUDIMENTS_DEVICE_H
5 #define RUDIMENTS_DEVICE_H
6 
7 #include <rudiments/private/deviceincludes.h>
8 
16 class RUDIMENTS_DLLSPEC device : public file {
17  public:
18 
20  device();
21 
24  device(const device &d);
25 
28  device &operator=(const device &d);
29 
31  virtual ~device();
32 
39  static bool createDeviceNode(const char *filename,
40  bool blockdevice,
41  uint16_t major,
42  uint16_t minor,
43  mode_t perms);
44 
45  #include <rudiments/private/device.h>
46 };
47 
48 #endif
Definition: device.h:16
device & operator=(const device &d)
static bool createDeviceNode(const char *filename, bool blockdevice, uint16_t major, uint16_t minor, mode_t perms)
device(const device &d)
virtual ~device()
Definition: file.h:19