1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44
|
#ifndef __PLUGIN_UTILS_H__
#define __PLUGIN_UTILS_H__ 1
// =================================================================================================
// Copyright Adobe
// Copyright 2014 Adobe
// 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__
|