intel: Work around differences between C and C++ scoping rules.
authorPaul Berry <stereotype441@gmail.com>
Mon, 30 Apr 2012 04:46:47 +0000 (21:46 -0700)
committerPaul Berry <stereotype441@gmail.com>
Thu, 10 May 2012 17:30:00 +0000 (10:30 -0700)
commitf28a7d0e77ffbeb2a27bda132d4334b3649be3a2
treed94d3cc86f70c1b5aad8ee35270101ba7dab9302
parent434fc8bde41f07687ad8941ceba03c4b3e0e75bb
intel: Work around differences between C and C++ scoping rules.

In C++, if a struct is defined inside another struct, or its name is
first seen inside a struct or function, the struct is nested inside
the namespace of the struct or function it appears in.  In C, all
structs are visible from toplevel.

This patch explicitly moves the decalartions of intel_batchbuffer to
toplevel, so that it does not get nested inside a namespace when
header files are included from C++.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Chad Versace <chad.versace@linux.intel.com>
src/mesa/drivers/dri/intel/intel_batchbuffer.h
src/mesa/drivers/dri/intel/intel_context.h