| 15 | }; |
| 16 | |
| 17 | class Device : public FsNode { |
| 18 | public: |
| 19 | Device(DeviceType type){ |
| 20 | name = ""; |
| 21 | |
| 22 | this->type = type; |
| 23 | } |
| 24 | |
| 25 | Device(const char* name, DeviceType type){ |
| 26 | this->name = strdup(name); |
| 27 | this->type = type; |
| 28 | } |
| 29 | |
| 30 | const char* GetName() const{ |
| 31 | return name; |
| 32 | } |
| 33 | protected: |
| 34 | void SetName(const char* name){ |
| 35 | this->name = strdup(name); |
| 36 | } |
| 37 | |
| 38 | char* name; |
| 39 | DeviceType type = TypeGenericDevice; |
| 40 | }; |
| 41 | |
| 42 | class PartitionDevice; |
| 43 |
nothing calls this directly
no outgoing calls
no test coverage detected