1 /* 2 * (c) 2008-2009 Adam Lackorzynski <adam@os.inf.tu-dresden.de> 3 * economic rights: Technische Universität Dresden (Germany) 4 * 5 * This file is part of TUD:OS and distributed under the terms of the 6 * GNU General Public License 2. 7 * Please see the COPYING-GPL-2 file for details. 8 * 9 * As a special exception, you may use this file as part of a free software 10 * library without restriction. Specifically, if other files instantiate 11 * templates or use macros or inline functions from this file, or you compile 12 * this file and link it with other files to produce an executable, this 13 * file does not by itself cause the resulting executable to be covered by 14 * the GNU General Public License. This exception does not however 15 * invalidate any other reasons why the executable file might be covered by 16 * the GNU General Public License. 17 */ 18 19 #include <l4/re/c/video/goos.h> 20 21 #include <l4/re/video/goos> 22 #include <l4/re/video/view> 23 #include <l4/re/dataspace> 24 #include <l4/sys/err.h> 25 26 #include <cassert> 27 #include <stddef.h> 28 29 using L4Re::Video::Goos; 30 31 L4_CV int l4re_video_goos_info(l4re_video_goos_t goos,l4re_video_goos_info_t * ginfo)32l4re_video_goos_info(l4re_video_goos_t goos, 33 l4re_video_goos_info_t *ginfo) L4_NOTHROW 34 { 35 static_assert( offsetof(Goos::Info, pixel_info) 36 == offsetof(__typeof(*ginfo), pixel_info), 37 "Structure alignment mismatch"); 38 L4::Cap<Goos> g(goos); 39 return g->info((Goos::Info *)ginfo); 40 } 41