1 /*
2   Copyright 2012-2020 David Robillard <d@drobilla.net>
3 
4   Permission to use, copy, modify, and/or distribute this software for any
5   purpose with or without fee is hereby granted, provided that the above
6   copyright notice and this permission notice appear in all copies.
7 
8   THIS SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
9   WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
10   MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
11   ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
12   WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
13   ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
14   OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
15 */
16 
17 #ifndef PUGL_DETAIL_STUB_H
18 #define PUGL_DETAIL_STUB_H
19 
20 #include "pugl/pugl.h"
21 
22 #include <stddef.h>
23 
24 PUGL_BEGIN_DECLS
25 
26 static inline PuglStatus
puglStubConfigure(PuglView * view)27 puglStubConfigure(PuglView* view)
28 {
29   (void)view;
30   return PUGL_SUCCESS;
31 }
32 
33 static inline PuglStatus
puglStubCreate(PuglView * view)34 puglStubCreate(PuglView* view)
35 {
36   (void)view;
37   return PUGL_SUCCESS;
38 }
39 
40 static inline PuglStatus
puglStubDestroy(PuglView * view)41 puglStubDestroy(PuglView* view)
42 {
43   (void)view;
44   return PUGL_SUCCESS;
45 }
46 
47 static inline PuglStatus
puglStubEnter(PuglView * view,const PuglEventExpose * expose)48 puglStubEnter(PuglView* view, const PuglEventExpose* expose)
49 {
50   (void)view;
51   (void)expose;
52   return PUGL_SUCCESS;
53 }
54 
55 static inline PuglStatus
puglStubLeave(PuglView * view,const PuglEventExpose * expose)56 puglStubLeave(PuglView* view, const PuglEventExpose* expose)
57 {
58   (void)view;
59   (void)expose;
60   return PUGL_SUCCESS;
61 }
62 
63 static inline void*
puglStubGetContext(PuglView * view)64 puglStubGetContext(PuglView* view)
65 {
66   (void)view;
67   return NULL;
68 }
69 
70 PUGL_END_DECLS
71 
72 #endif // PUGL_DETAIL_STUB_H
73