Re: Re: How gvdb_table_is_valid works on glib/dconf??

2011-02-16 Thread Joshua Lee
* file. **/ gboolean gvdb_table_is_valid (GvdbTable *table) { return !!*table->data; } Best regards, Joshua On Wed, 16 Feb 2011, jcup...@gmail.com wrote: > On Wednesday, 16 February 2011, Joshua Lee wrote: > > Then I run the test program, !!*data will always output 1. Here's

How gvdb_table_is_valid works on glib/dconf

2011-02-16 Thread Joshua Lee
Hi Ryan/All, I can not understand while gvdb_table_is_valid can check the on-disk gvdb table is valid. Then i wrote a simple sample to verify it. """ #include #include int main() { GError *err = NULL; gchar *data = NULL; system("echo 'Hello' >/tmp/mapped.txt");