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/common/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/common/include')
-rw-r--r-- | src/common/include/sched.h | 1 | ||||
-rw-r--r-- | src/common/include/string.h | 1 | ||||
-rw-r--r-- | src/common/include/tce/Folder_common.h | 10 | ||||
-rw-r--r-- | src/common/include/tce/Object_common.h | 10 |
4 files changed, 21 insertions, 1 deletions
diff --git a/src/common/include/sched.h b/src/common/include/sched.h index 0f8f8f4..1012116 100644 --- a/src/common/include/sched.h +++ b/src/common/include/sched.h @@ -7,6 +7,7 @@ #define MUTEX_UNLOCKED 0 //A mutex is just an uint32_t +typedef uint32_t mutex_t; int mutex_lock(uint32_t* mutex); //wait for mutex to be free int mutex_lockE(uint32_t* mutex); //lock mutex only if free, returns !0 if locked, 0 if was busy diff --git a/src/common/include/string.h b/src/common/include/string.h index a41459e..7d0bf20 100644 --- a/src/common/include/string.h +++ b/src/common/include/string.h @@ -6,7 +6,6 @@ int strlen(const char *str); char *strcpy(char *dest, const char *src); -// char *strdup(const char *src); // uses malloc, that's bad char *strchr(const char *str, char c); char *strcat(char *dest, const char *src); int strcmp(const char *s1, const char *s2); diff --git a/src/common/include/tce/Folder_common.h b/src/common/include/tce/Folder_common.h new file mode 100644 index 0000000..b1037dd --- /dev/null +++ b/src/common/include/tce/Folder_common.h @@ -0,0 +1,10 @@ +#ifndef DEF_TCE_FOLDER_H +#define DEF_TCE_FOLDER_H + +#define FILENAME_MAX_LEN 256 + +struct FolderMethods { + int GetChildNameAt; +}; + +#endif diff --git a/src/common/include/tce/Object_common.h b/src/common/include/tce/Object_common.h new file mode 100644 index 0000000..70a034e --- /dev/null +++ b/src/common/include/tce/Object_common.h @@ -0,0 +1,10 @@ +#ifndef DEF_OBJECT_U_H +#define DEF_OBJECT_U_H + +#define E_INVALID -2 +#define E_BAD_HANDLE -3 +#define E_NOT_IMPLEMENTED -4 +#define E_NOT_PUBLIC -5 +#define E_NOT_FOUND -6 + +#endif |