GListModel: roll back use of type redefinition
authorRyan Lortie <desrt@desrt.ca>
Wed, 25 Mar 2015 13:29:49 +0000 (09:29 -0400)
committerRyan Lortie <desrt@desrt.ca>
Wed, 25 Mar 2015 13:37:01 +0000 (09:37 -0400)
commit4a292721bcf2943bfc05c6a1c859992f28e3efec
treed98a3cabb3a6a9bebd06b2348b342b232a1f996f
parent3f36407d4a27e17f766a41fb7b9e7a0fcd75c85b
GListModel: roll back use of type redefinition

We declare the typedefs for GListModel and GListStore in giotypes.h, as
a matter of convention.  This is not actually required, since the
typedef is emitted as part of the G_DECLARE_* macros.

The giotypes.h approach is only used to avoid cyclic dependencies
between headers, which is not a problem in this case.

Type redefinition is a C11 feature, and although it was around in some
compilers before then, gcc 4.2.1 (from 2007) is apparently still in wide
use, being the default compiler for OpenBSD.

Eventually, we will probably hit a case where we actually need to
redefine a type, but since we're not there yet, let's back off a bit.
gio/giotypes.h