GVariant parser: match strings without consuming
authorRyan Lortie <desrt@desrt.ca>
Thu, 31 Mar 2011 09:15:50 +0000 (14:45 +0530)
committerRyan Lortie <desrt@desrt.ca>
Thu, 31 Mar 2011 09:15:50 +0000 (14:45 +0530)
commit24ed841d6a65e3beff64b2252d132be9e57ede9a
tree7366b1a60efad3bc343467d37c5e93e7601579ed
parentf6dff49136bd2202fd7a4b928b9dcd8fb625f8a4
GVariant parser: match strings without consuming

Add a new function that allows the parser to check that the current
token is equal to a given string without consuming the token.
Reimplement the 'consume' function in terms of the new function.
glib/gvariant-parser.c