// Copyright 2012-2021 David Robillard // SPDX-License-Identifier: ISC #ifndef PUGL_SRC_STUB_H #define PUGL_SRC_STUB_H #include "pugl/pugl.h" #include PUGL_BEGIN_DECLS static inline PuglStatus puglStubConfigure(PuglView* const view) { (void)view; return PUGL_SUCCESS; } static inline PuglStatus puglStubCreate(PuglView* const view) { (void)view; return PUGL_SUCCESS; } static inline PuglStatus puglStubDestroy(PuglView* const view) { (void)view; return PUGL_SUCCESS; } static inline PuglStatus puglStubEnter(PuglView* const view, const PuglExposeEvent* const expose) { (void)view; (void)expose; return PUGL_SUCCESS; } static inline PuglStatus puglStubLeave(PuglView* const view, const PuglExposeEvent* const expose) { (void)view; (void)expose; return PUGL_SUCCESS; } static inline void* puglStubGetContext(PuglView* const view) { (void)view; return NULL; } PUGL_END_DECLS #endif // PUGL_SRC_STUB_H