diff options
author | bsegovia <devnull@localhost> | 2011-07-14 01:27:08 +0000 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2012-08-10 16:14:34 -0700 |
commit | 5173febb3d88b6c38709d390c3b30c79442afd7b (patch) | |
tree | 1f3cdd7f6254f8c22787376b9bbda2cf133e97f7 /src/cl_internals.h | |
parent | 27d817aabaedebd2b2601d65e34c3ad1364e6101 (diff) |
Added all miniCL files
Diffstat (limited to 'src/cl_internals.h')
-rw-r--r-- | src/cl_internals.h | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/src/cl_internals.h b/src/cl_internals.h new file mode 100644 index 00000000..82f90812 --- /dev/null +++ b/src/cl_internals.h @@ -0,0 +1,34 @@ +/* + * Copyright © 2012 Intel Corporation + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library. If not, see <http://www.gnu.org/licenses/>. + * + * Author: Benjamin Segovia <benjamin.segovia@intel.com> + */ + +#ifndef __CL_INTERNALS_H__ +#define __CL_INTERNALS_H__ + +/* We put a header to identify each object. This will make the programmer life + * easy if objects are wrongly used in the API + */ +#define CL_MAGIC_KERNEL_HEADER 0x1234567890abcdefLL +#define CL_MAGIC_CONTEXT_HEADER 0x0ab123456789cdefLL +#define CL_MAGIC_PROGRAM_HEADER 0x34560ab12789cdefLL +#define CL_MAGIC_QUEUE_HEADER 0x83650a12b79ce4dfLL +#define CL_MAGIC_MEM_HEADER 0x381a27b9ce6504dfLL +#define CL_MAGIC_DEAD_HEADER 0xdeaddeaddeaddeadLL + +#endif /* __CL_INTERNALS_H__ */ + |