mirror of
https://github.com/ksherlock/mpw.git
synced 2025-01-09 13:30:34 +00:00
os_internal
This commit is contained in:
parent
c206573a17
commit
d59222d02f
@ -9,6 +9,7 @@ set(TOOLBOX_SRC
|
||||
rm.cpp
|
||||
mm.cpp
|
||||
os.cpp
|
||||
os_internal.cpp
|
||||
qd.cpp
|
||||
sane.cpp
|
||||
)
|
||||
|
7
toolbox/os_internal.cpp
Normal file
7
toolbox/os_internal.cpp
Normal file
@ -0,0 +1,7 @@
|
||||
#include "os_internal.h"
|
||||
|
||||
namespace OS { namespace Internal {
|
||||
|
||||
std::deque<FDEntry> FDTable;
|
||||
|
||||
} }
|
29
toolbox/os_internal.h
Normal file
29
toolbox/os_internal.h
Normal file
@ -0,0 +1,29 @@
|
||||
#ifndef __mpw_os_internal_h__
|
||||
#define __mpw_os_internal_h__
|
||||
|
||||
#include <deque>
|
||||
#include <string>
|
||||
|
||||
namespace OS { namespace Internal {
|
||||
|
||||
|
||||
struct FDEntry
|
||||
{
|
||||
int refcount;
|
||||
bool text;
|
||||
bool resource;
|
||||
|
||||
// std::string path?
|
||||
|
||||
FDEntry() :
|
||||
refcount(0),
|
||||
text(false),
|
||||
resource(false)
|
||||
{}
|
||||
};
|
||||
|
||||
extern std::deque<FDEntry> FDTable;
|
||||
|
||||
} }
|
||||
|
||||
#endif
|
Loading…
x
Reference in New Issue
Block a user