17839ce1af63bf12fe7b3caa866970bbbb3afb13dDerek Sollenberger
27839ce1af63bf12fe7b3caa866970bbbb3afb13dDerek Sollenberger/*
37839ce1af63bf12fe7b3caa866970bbbb3afb13dDerek Sollenberger * Copyright 2013 Google Inc.
47839ce1af63bf12fe7b3caa866970bbbb3afb13dDerek Sollenberger *
57839ce1af63bf12fe7b3caa866970bbbb3afb13dDerek Sollenberger * Use of this source code is governed by a BSD-style license that can be
67839ce1af63bf12fe7b3caa866970bbbb3afb13dDerek Sollenberger * found in the LICENSE file.
77839ce1af63bf12fe7b3caa866970bbbb3afb13dDerek Sollenberger */
87839ce1af63bf12fe7b3caa866970bbbb3afb13dDerek Sollenberger
97839ce1af63bf12fe7b3caa866970bbbb3afb13dDerek Sollenberger#ifndef SkErrorInternals_DEFINED
107839ce1af63bf12fe7b3caa866970bbbb3afb13dDerek Sollenberger#define SkErrorInternals_DEFINED
117839ce1af63bf12fe7b3caa866970bbbb3afb13dDerek Sollenberger
127839ce1af63bf12fe7b3caa866970bbbb3afb13dDerek Sollenberger#include "SkError.h"
137839ce1af63bf12fe7b3caa866970bbbb3afb13dDerek Sollenberger
147839ce1af63bf12fe7b3caa866970bbbb3afb13dDerek Sollenbergerclass SkErrorInternals {
157839ce1af63bf12fe7b3caa866970bbbb3afb13dDerek Sollenberger
167839ce1af63bf12fe7b3caa866970bbbb3afb13dDerek Sollenbergerpublic:
177839ce1af63bf12fe7b3caa866970bbbb3afb13dDerek Sollenberger    static void ClearError();
187839ce1af63bf12fe7b3caa866970bbbb3afb13dDerek Sollenberger    static void SetError(SkError code, const char *fmt, ...);
197839ce1af63bf12fe7b3caa866970bbbb3afb13dDerek Sollenberger    static SkError GetLastError();
207839ce1af63bf12fe7b3caa866970bbbb3afb13dDerek Sollenberger    static const char *GetLastErrorString();
217839ce1af63bf12fe7b3caa866970bbbb3afb13dDerek Sollenberger    static void SetErrorCallback(SkErrorCallbackFunction cb, void *context);
227839ce1af63bf12fe7b3caa866970bbbb3afb13dDerek Sollenberger    static void DefaultErrorCallback(SkError code, void *context);
237839ce1af63bf12fe7b3caa866970bbbb3afb13dDerek Sollenberger};
247839ce1af63bf12fe7b3caa866970bbbb3afb13dDerek Sollenberger
257839ce1af63bf12fe7b3caa866970bbbb3afb13dDerek Sollenberger
267839ce1af63bf12fe7b3caa866970bbbb3afb13dDerek Sollenberger
277839ce1af63bf12fe7b3caa866970bbbb3afb13dDerek Sollenberger#endif /* SkErrorInternals_DEFINED */
28