999a4082ba674e0e5e3ea056ac48f7ed8d29cabb
[tpg/acess2.git] / UDI / drivers / helpers_gfx.h
1 /*
2  * UDI Driver Helper Macros
3  *
4  * GFX-specific helpers
5  */
6 #ifndef _HELPERS_GFX_H_
7 #define _HELPERS_GFX_H_
8
9 #if __STDC_VERSION__ < 199901L
10 # define        inline
11 #endif
12
13 typedef struct {
14         udi_index_t     op;
15         udi_ubit32_t    arg_1;
16         udi_ubit32_t    arg_2;
17         udi_ubit32_t    arg_3;
18 } gfxhelpers_op_t;
19
20 typedef struct {
21         udi_index_t     op_count;
22         const gfxhelpers_op_t   *ops;
23 } gfxhelpers_op_map_t;
24
25 static inline void gfxhelpers_return_range_simple(
26         udi_gfx_range_connector_ack_op_t *callback, udi_gfx_range_cb_t *cb,
27         udi_ubit32_t min, udi_ubit32_t max, udi_ubit32_t step
28         )
29 {
30         
31 }
32
33 static inline void gfxhelpers_return_range_set(
34         udi_gfx_range_connector_ack_op_t *callback, udi_gfx_range_cb_t *cb,
35         udi_ubit32_t count, ...
36         )
37 {
38         
39 }
40
41 static inline void gfxhelpers_return_range_fixed(
42         udi_gfx_range_connector_ack_op_t *callback, udi_gfx_range_cb_t *cb,
43         udi_ubit32_t value
44         )
45 {
46         gfxhelpers_return_range_simple(callback, cb, value, value, 1);
47 }
48
49 #endif
50

UCC git Repository :: git.ucc.asn.au