diff options
author | Alex AUVOLAT <alexis211@gmail.com> | 2012-05-01 23:48:56 +0200 |
---|---|---|
committer | Alex AUVOLAT <alexis211@gmail.com> | 2012-05-01 23:48:56 +0200 |
commit | 43d0bb8e3997022e5270f7f75f615a47819c929e (patch) | |
tree | 937992d286966edecf81b405e414230c85d19bad /src/user/lib/include | |
parent | e9683297bf480f9590b0e5796f4520fb430e2e03 (diff) | |
download | TCE-43d0bb8e3997022e5270f7f75f615a47819c929e.tar.gz TCE-43d0bb8e3997022e5270f7f75f615a47819c929e.zip |
Basic object system - THIS IS STILL A LONG WAY TO GO!!
Diffstat (limited to 'src/user/lib/include')
-rw-r--r-- | src/user/lib/include/stdio.h | 2 | ||||
-rw-r--r-- | src/user/lib/include/tce/Folder.h | 12 | ||||
-rw-r--r-- | src/user/lib/include/tce/Object.h | 17 |
3 files changed, 31 insertions, 0 deletions
diff --git a/src/user/lib/include/stdio.h b/src/user/lib/include/stdio.h index e3f9d89..3b6c2d2 100644 --- a/src/user/lib/include/stdio.h +++ b/src/user/lib/include/stdio.h @@ -1,6 +1,8 @@ #ifndef DEF_STDIO_H #define DEF_STDIO_H +#include <tce/syscall.h> + void printk_int(int number); void printk_hex(unsigned number); diff --git a/src/user/lib/include/tce/Folder.h b/src/user/lib/include/tce/Folder.h new file mode 100644 index 0000000..3a796d9 --- /dev/null +++ b/src/user/lib/include/tce/Folder.h @@ -0,0 +1,12 @@ +#ifndef DEF_LIB_TCE_USER_FOLDER_H +#define DEF_LIB_TCE_USER_FOLDER_H + +#include <tce/Folder_common.h> +#include <tce/Object.h> + +struct FolderMethods *Folder_getMethods(); + +int Folder_GetChildNameAt(Object object, int pos, char* to); + +#endif + diff --git a/src/user/lib/include/tce/Object.h b/src/user/lib/include/tce/Object.h new file mode 100644 index 0000000..f363bd6 --- /dev/null +++ b/src/user/lib/include/tce/Object.h @@ -0,0 +1,17 @@ +#ifndef DEF_TCE_OBJ_USER_LIB_H +#define DEF_TCE_OBJ_USER_LIB_H + +#include <tce/syscall.h> +#include <tce/Object_common.h> + +typedef int Object; + +Object open(char* name); +Object open_relative(char* name, Object parent); +void close(Object object); +int get_methods(char* iface, int* whereto); + +int Call(int method, Object object, size_t a, size_t b, size_t c, size_t d); + +#endif + |