summaryrefslogtreecommitdiff
path: root/XMPFilesPlugins/api/source/PluginUtils.h
diff options
context:
space:
mode:
Diffstat (limited to 'XMPFilesPlugins/api/source/PluginUtils.h')
-rw-r--r--XMPFilesPlugins/api/source/PluginUtils.h44
1 files changed, 44 insertions, 0 deletions
diff --git a/XMPFilesPlugins/api/source/PluginUtils.h b/XMPFilesPlugins/api/source/PluginUtils.h
new file mode 100644
index 0000000..287167e
--- /dev/null
+++ b/XMPFilesPlugins/api/source/PluginUtils.h
@@ -0,0 +1,44 @@
+#ifndef __PLUGIN_UTILS_H__
+#define __PLUGIN_UTILS_H__ 1
+
+// =================================================================================================
+// ADOBE SYSTEMS INCORPORATED
+// Copyright 2014 Adobe Systems Incorporated
+// All Rights Reserved
+//
+// NOTICE: Adobe permits you to use, modify, and distribute this file in accordance with the terms
+// of the Adobe license agreement accompanying it.
+// =================================================================================================
+
+#include "XMP_Const.h"
+#include "source/XMP_LibUtils.hpp"
+
+namespace XMP_PLUGIN
+{
+ class ErrorCallbackInfo : public GenericErrorCallback {
+ public:
+ XMPFiles_ErrorCallbackWrapper wrapperProc;
+ XMPFiles_ErrorCallbackProc clientProc;
+ void * context;
+ std::string filePath;
+
+ ErrorCallbackInfo(): wrapperProc(0), clientProc(0), context(0) {};
+
+ void Clear() {
+ this->wrapperProc = 0; this->clientProc = 0; this->context = 0;
+ GenericErrorCallback::Clear();
+ };
+
+ bool CanNotify() const;
+
+ bool ClientCallbackWrapper(
+ XMP_StringPtr filePath,
+ XMP_ErrorSeverity severity,
+ XMP_Int32 cause,
+ XMP_StringPtr messsage) const;
+ };
+
+ void ErrorNotifyClient( GenericErrorCallback * errCBptr, XMP_ErrorSeverity severity, XMP_Error & error);
+}
+
+#endif // __PLUGIN_UTILS_H__