28 lines
541 B
C++
28 lines
541 B
C++
|
|
// DeviceFolder.h
|
|
// DeviceFolder object for use in devfs
|
|
// Author: Josh Holtrop
|
|
// Date: 06/03/04
|
|
// Modified: 06/03/04
|
|
|
|
#ifndef __HOS_DEVICEFOLDER__
|
|
#define __HOS_DEVICEFOLDER__ __HOS_DEVICEFOLDER__
|
|
|
|
#include "lang/LinkedList.h"
|
|
#include "Device.h"
|
|
|
|
class DeviceFolder
|
|
{
|
|
private:
|
|
LinkedList<Device> devices;
|
|
int addDevice(Device name);
|
|
public:
|
|
DeviceFolder();
|
|
int mkdir(string name, word permissions);
|
|
int mklink(string name, string link);
|
|
int mknod(string name, dword major, dword minor, char type, word permissions);
|
|
};
|
|
|
|
#endif
|
|
|