All pastes #511030 Raw Edit

Unnamed

public text v1 · immutable
#511030 ·published 2007-05-26 06:35 UTC
rendered paste body
/* This should really be standard. */
#define ENUM_ENTRY(NAME, DESC) { NAME, "" #NAME "", DESC }

GType
rhythmdb_query_type_get_type (void)
{
        static GType etype = 0;

        if (etype == 0)
        {
                static const GEnumValue values[] =
                {

                        ENUM_ENTRY (RHYTHMDB_QUERY_END, "Query end marker"),
                        ENUM_ENTRY (RHYTHMDB_QUERY_DISJUNCTION, "Disjunctive marker"),
                        ENUM_ENTRY (RHYTHMDB_QUERY_SUBQUERY, "Subquery"),
                        ENUM_ENTRY (RHYTHMDB_QUERY_PROP_EQUALS, "Property equivalence"),
                        { 0, 0, 0 }
                };

                etype = g_enum_register_static ("RhythmDBQueryType", values);
        }

        return etype;
}