summaryrefslogtreecommitdiff
path: root/omx/openmax/OMX_Types.h
diff options
context:
space:
mode:
Diffstat (limited to 'omx/openmax/OMX_Types.h')
-rw-r--r--omx/openmax/OMX_Types.h41
1 files changed, 24 insertions, 17 deletions
diff --git a/omx/openmax/OMX_Types.h b/omx/openmax/OMX_Types.h
index 8698358..adfc975 100644
--- a/omx/openmax/OMX_Types.h
+++ b/omx/openmax/OMX_Types.h
@@ -42,26 +42,26 @@ extern "C" {
# ifdef __OMX_EXPORTS
# define OMX_API __declspec(dllexport)
# else
-# ifdef _WIN32
-# define OMX_API __declspec(dllexport)
-# else
-# define OMX_API __declspec(dllimport)
-# endif
+#ifdef _WIN32
+# define OMX_API __declspec(dllexport)
+# else
+# define OMX_API __declspec(dllimport)
# endif
-#else
+#endif
+# else
# ifdef _WIN32
-# ifdef __OMX_EXPORTS
-# define OMX_API __declspec(dllexport)
-# else
-# define OMX_API __declspec(dllimport)
-# endif
+# ifdef __OMX_EXPORTS
+# define OMX_API __declspec(dllexport)
# else
-# ifdef __OMX_EXPORTS
-# define OMX_API
-# else
-# define OMX_API extern
-# endif
+# define OMX_API __declspec(dllimport)
# endif
+#else
+# ifdef __OMX_EXPORTS
+# define OMX_API
+# else
+# define OMX_API extern
+# endif
+#endif
#endif
#ifndef OMX_APIENTRY
@@ -201,10 +201,17 @@ typedef void* OMX_PTR;
/** The OMX_STRING type is intended to be used to pass "C" type strings between
the application and the core and component. The OMX_STRING type is a 32
bit pointer to a zero terminated string. The pointer is word aligned and
- the string is byte aligned.
+ the string is byte aligned.
*/
typedef char* OMX_STRING;
+/** The OMX_CSTRING type is intended to be used to pass const "C" type strings
+ between the application and the core and component. The OMX_STRING type
+ is a 32 bit pointer to a zero terminated string. The pointer is word
+ aligned and the string is byte aligned.
+ */
+typedef const char* OMX_CSTRING;
+
/** The OMX_BYTE type is intended to be used to pass arrays of bytes such as
buffers between the application and the component and core. The OMX_BYTE
type is a 32 bit pointer to a zero terminated string. The pointer is word