Added definition of a of_arguments structure which is used in all
OpenFirmware client service calls (and callbacks). Has nice inline argument getter methods If compiled under C++. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5205 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -15,6 +15,18 @@
|
||||
extern int gChosen;
|
||||
|
||||
|
||||
struct of_arguments {
|
||||
const char *name;
|
||||
int num_args;
|
||||
int num_returns;
|
||||
int data[0];
|
||||
|
||||
#ifdef __cplusplus
|
||||
int &Argument(int index) { return data[index]; }
|
||||
int &ReturnValue(int index) { return data[num_args + index]; }
|
||||
#endif
|
||||
};
|
||||
|
||||
struct of_region {
|
||||
void *base;
|
||||
uint32 size;
|
||||
|
||||
Reference in New Issue
Block a user