summaryrefslogtreecommitdiff
path: root/gconf/gconf-backend.h
Commit message (Collapse)AuthorAgeFilesLines
* Remove gconf-sanity-checkWilliam Jon McCann2013-01-211-1/+1
| | | | | | Local file locking was removed long ago. https://bugzilla.gnome.org/show_bug.cgi?id=646674
* Bug 578877 – Update FSF addressTobias Mueller2009-04-211-2/+2
|
* Clean up includes and fix a couple compiler warnings.Kjartan Maraas2008-06-281-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2008-06-28 Kjartan Maraas <kmaraas@gnome.org> * backends/evoldap-backend.c: * backends/gconf-merge-tree.c: * backends/markup-backend.c: * backends/markup-tree.c: * backends/markup-tree.h: * backends/xml-backend.c: * backends/xml-cache.c: * backends/xml-cache.h: * backends/xml-dir.c: * backends/xml-dir.h: * backends/xml-entry.c: * backends/xml-entry.h: * backends/xml-test.c: * gconf/Makefile.am: * gconf/gconf-backend.c: * gconf/gconf-backend.h: * gconf/gconf-changeset.c: * gconf/gconf-changeset.h: * gconf/gconf-client.c: * gconf/gconf-client.h: * gconf/gconf-database.c: * gconf/gconf-engine.h: * gconf/gconf-error.c: * gconf/gconf-glib.c: * gconf/gconf-internals.c: (gconf_get_daemon_dir), (gconf_activate_server): * gconf/gconf-internals.h: * gconf/gconf-listeners.c: * gconf/gconf-locale.c: * gconf/gconf-sanity-check.c: * gconf/gconf-schema.c: * gconf/gconf-schema.h: * gconf/gconf-sources.c: * gconf/gconf-value.c: * gconf/gconf.h: * gconf/gconftool.c: * gconf/testclient.c: * gconf/testgconfclient.c: Clean up includes and fix a couple compiler warnings. svn path=/trunk/; revision=2621
* Seems to have gotten lost along the wayMark McLoughlin2004-03-301-1/+4
| | | | | | | 2004-03-30 Mark McLoughlin <mark@skynet.ie> * gconf/gconf-backend.h: actually add the vtable_size vtable member.
* initialize the set_notify_func vtable member.Mark McLoughlin2004-03-301-3/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2004-03-29 Mark McLoughlin <mark@skynet.ie> * backends/markup-backend.c, backends/xml-backend.c: initialize the set_notify_func vtable member. 2004-03-29 Mark McLoughlin <mark@skynet.ie> Re-work the notifications-from-backends patch so that the backend doesn't have to keep track of a callback per listener as suggested by Cyrille. * gconf/gconf-backend.h: add a set_notify_func() member to the vtable and remove the callback arg from add_listener(). * gconf/gconf-database.c: (gconf_database_new): set the notification callback here. (gconf_database_readd_listener): upd. * gconf/gconf-sources.[ch]: (gconf_source_set_notify_func): add. (gconf_source_add_listener): upd. (gconf_sources_set_notify_func): add. (gconf_sources_add_listener): upd. 2004-03-26 Mark McLoughlin <mark@skynet.ie> * gconf/gconf-database.c: (source_notify_cb): don't leak the schema name. * gconf/gconf-sources.c: (gconf_sources_add_listener), (gconf_sources_remove_listener): fix mistake pointed out by Cyrille.
* Allow backends to notify the daemon of changes to entries. Based on aMark McLoughlin2004-03-301-0/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2004-03-25 Mark McLoughlin <mark@skynet.ie> Allow backends to notify the daemon of changes to entries. Based on a patch from Cyrille Moureaux <Cyrille.Moureaux@Sun.COM> in bug #07692. * gconf/gconf-backend.h: add add_listener() and remove_listener() members to the vtable. * gconf/gconf-database.c: (source_notify_cb): re-compute the value and notify listeners when the backend reports the key has changed. (gconf_database_readd_listener), (gconf_database_remove_listener): add/remove backend listeners. * gconf/gconf-sources.[c]: (gconf_source_add_listener), (gconf_source_remove_listener), (gconf_sources_add_listener), (gconf_sources_remove_listener): impl. the glue. * doc/gconf/tmpl/gconf-backend.sgml: update the backend documentation. * backends/markup-backend.c, backends/xml-backend.c: set the add_listener() and remove_listener() members to NULL.
* add a vtable_size member to the vtable.Mark McLoughlin2004-03-301-3/+0
| | | | | | | | | | | | | | | | | | | | | | | 2004-03-24 Mark McLoughlin <mark@skynet.ie> * gconf/gconf-backend.h: add a vtable_size member to the vtable. * gconf/gconf-backend.c: (gconf_backend_verify_vtable): impl. copying handling mismatches in vtable sizes and also refuse to use the backend if any of the functions we require are NULL. (gconf_get_backend): fixup error handling a bit. * gconf/gconf-sources.c: update to take into account that the we have a copy of the vtable now rather than just a pointer to it. * doc/gconf/tmpl/gconf-backend.sgml: upd. * backends/markup-backend.c, backends/xml-backend.c: add sizeof (GConfBackendVTable) to the vtable.
* bump to 2.3.1Havoc Pennington2003-03-271-0/+5
| | | | | | | | | | | | | 2003-03-26 Havoc Pennington <hp@redhat.com> * configure.in: bump to 2.3.1 Apply "local locks" patch with linc_get_tmpdir modification from Michael, and the default changed to local locks. Now to get global locks you must set GCONF_GLOBAL_LOCKS=1. * gconf/gconf-internals.c (gconf_log): convert to locale encoding to pass stuff to syslog
* Fix a bunch of warnings.Darin Adler2001-07-131-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * backends/bdb-backend.c: (vtable_bdb_set_value): Add const. * backends/bdb.c: (bdb_put_value): Add const. * backends/bdb.h: Add const. * backends/val-encode.c: (bdb_serialize_value): Add const. * backends/val-encode.h: Add const. * backends/xml-backend.c: (set_value): Add const. * backends/xml-dir.c: (dir_set_value): Add const. * backends/xml-dir.h: Add const. * backends/xml-entry.h: Add const. * gconf/gconf-backend.c: (gconf_get_backend): Add const. * gconf/gconf-backend.h: Add const. * gconf/gconf-internals.c: (fill_corba_value_from_gconf_value), (corba_value_from_gconf_value), (fill_corba_schema_from_gconf_schema), (corba_schema_from_gconf_schema): Add const. * gconf/gconf-internals.h: Add const. * gconf/gconf-sources.c: (gconf_source_set_value), (gconf_sources_set_value): Add const. * gconf/gconf-sources.h: Add const. * gconf/gconf.c: (gconf_engine_set): Add const. * gconf/gconf.h: Add const. * gconf/gconf-value.h: * gconf/gconf-value.c: (gconf_value_set_list): Remove const, because const GSList * doesn't do anything useful. * backends/xml-entry.c: (entry_get_value), (entry_set_value), (entry_sync_if_needed), (entry_fill_from_node): Got rid of unused GValue * parameter to entry_sync_if_needed. Also, add const in one place. * gconf/gconftool.c: (main): Add cast.
* Put full key in GConfEntry (but we only get the relative key over theHavoc Pennington2000-09-131-1/+4
| | | | | | | | | | | | | | | | | 2000-09-13 Havoc Pennington <hp@redhat.com> * gconf/gconf.c (gconf_engine_all_entries): Put full key in GConfEntry (but we only get the relative key over the CORBA wire) * wrappers/gtk/gconf-client.c (cache_pairs_in_dir): Change to reflect fact that GConfEntry now contains full key * gconf/gconftool.c (list_pairs_in_dir): Change to reflect full key in GConfEntry * doc/gconf/tmpl/gconf-value.sgml: updated GConfEntry docs on this matter.
* #!/usr/bin/perl -pi.bakHavoc Pennington2000-09-111-1/+1
| | | | | | | | | | | | | | | | | 2000-09-10 Havoc Pennington <hp@pobox.com> * Another rename fest: #!/usr/bin/perl -pi.bak ## note that this regexp could affect non-GConf stuff s/writeable/writable/g; s/gconf_meta_info_destroy/gconf_meta_info_free/g; s/gconf_database_destroy/gconf_database_free/g; s/gconf_source_destroy/gconf_source_free/g; s/gconf_sources_destroy/gconf_sources_free/g; s/gconf_locale_cache_destroy/gconf_locale_cache_free/g;
* Massive rename from GConfError to GErrorHavoc Pennington2000-08-311-18/+18
| | | | | | | | | | 2000-08-31 Havoc Pennington <hp@redhat.com> * Massive rename from GConfError to GError * gconf/gconf-error.h, gconf/gconf-error.c: Remove redundant-with-GError stuff; add GCONF_ERROR domain macro
* update default schema install source (XML_LIBS): add better check that weHavoc Pennington2000-01-311-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 2000-02-01 Havoc Pennington <hp@redhat.com> * configure.in (GCONF_CONFIG_SOURCE): update default schema install source (XML_LIBS): add better check that we actually ran xml-config successfully * gconf/gconf-backend.c (gconf_backend_resolve_address): Honor the "readonly" flag in address names * gconf/gconf-sources.c (SOURCE_WRITEABLE): convert to a function, source_is_writeable * gconf/gconf-sources.h: add GCONF_SOURCE_NEVER_WRITEABLE flag * tests/testaddress.c: new test to verify the functions that break up a configuration source address * gconf/gconf-backend.c (gconf_address_flags): function to extract configuration source flags * doc/gconf/gconf.sgml: note new configuration source URL format * gconf/gconf.c: Add space, tab, carriage return, newline to the invalid characters in a gconf key
* oops, this was broken before; we need to check that the dir doesn't need aHavoc Pennington2000-01-211-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | 2000-01-21 Havoc Pennington <hp@pobox.com> * backends/xml-cache.c (cache_clean): oops, this was broken before; we need to check that the dir doesn't need a sync before we destroy it. * backends/xml-dir.c (dir_sync_pending): new function * backends/xml-backend.c (clear_cache): implement clearing cache for XML backend * gconf/gconf.c (gconf_clear_cache): implement API here * gconf/GConf.idl: add clear_cache method * gconf/gconfd.c (context_clear_cache): add code to implement clear_cache IDL * gconf/gconf-sources.c (gconf_sources_clear_cache): New function for debugging purposes
* Change copyrights to 2000, just for funHavoc Pennington2000-01-081-1/+1
|
* Enhance to detect missing tests.Havoc Pennington1999-11-111-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 1999-11-11 Havoc Pennington <hp@pobox.com> * tests/runtests.sh: Enhance to detect missing tests. * gconf/gconf-internals.c (gconf_log): don't log DEBUG level stuff if built without GCONF_ENABLE_DEBUG * backends/xml-backend.c (safe_g_hash_table_insert): Same, use GCONF_ENABLE_DEBUG Add locales stuff throughout this file, but do nothing with it for now. * gconf/gconfd.c (safe_g_hash_table_insert): Make this dependent on GCONF_ENABLE_DEBUG setting. * gconf/gconf-sources.c (gconf_sources_query_value): fix locale (gconf_sources_unset_value): locale (gconf_sources_all_entries): locales * gconf/gconfd.c (context_query_value): Use locale list (context_unset): locale argument (context_all_entries): locale argument (gconfd_unset_with_locale): locale * gconf/gconf-sources.c (gconf_source_query_value): Pass an array of locales to look for (gconf_source_all_entries): ditto (gconf_source_unset_value): pass locale to unset * gconf/gconf-backend.h: Add locale args to the backend functions that need it * gconf/gconf-internals.c (gconf_current_locale): Use setlocale() again, not guess_category_value from gnome-i18n
* Add locale (dir_get_value): add locale (entry_value): new function getsHavoc Pennington1999-10-281-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 1999-10-28 Havoc Pennington <hp@pobox.com> * backends/xml-backend.c (query_value): Add locale (dir_get_value): add locale (entry_value): new function gets the value from an entry, looking up a new value by locale if necessary. (xentry_extract_value): locale argument added, but needs to be implemented. * gconf/gconf-backend.h: Add locale to query_value in vtable * gconf/gconf-sources.c (gconf_source_query_value): Add locale (gconf_sources_query_value): Add locale * gconf/gconfd.c (gconfd_lookup_with_locale): Implement new IDL method (context_query_value): Add locale * gconf/GConf.idl: Add lookup_with_locale() method * gconf/gconf-internals.c (fill_corba_schema_from_gconf_schema): Handle case where some schema fields are NULL, handle locale field. (gconf_schema_from_corba_schema): Handle locale field. * gconf/gconf-schema.c (gconf_schema_set_locale): New function * gconf/gconftool.c: Clean up so it is easier to deal with
* Finish stuff from the 17th (use GConfError throughout, etc.)Havoc Pennington1999-10-201-21/+69
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 1999-10-20 Havoc Pennington <hp@pobox.com> * gconf/gconfd.c, gconf/gconf-sources.c: Finish stuff from the 17th (use GConfError throughout, etc.) * gconf/gconfd-error.h, gconf/gconfd-error.c: Remove the broken old error stuff, even gconfd no longer uses it. 1999-10-17 Havoc Pennington <hp@pobox.com> * gconf/gconf-sources.c: Use GConfError** throughout, make the _source_ functions static (gconf_sources_query_value): Use the new flags and readable function (gconf_sources_set_value): use the new flags and writeable function * gconf/gconf-error.c (gconf_error_copy): new function (gconf_compose_errors): new function * backends/xml-backend.c: Throughout, use a GConfError** argument instead of the global errno thing * gconf/gconf-error.c (gconf_set_error): New function properly handles a GConfError** by setting error or ignoring if NULL, also warns if you "stack" two errors on top of each other. (gconf_clear_error): New function clears a GConfError** * gconf/gconfd.c: don't include gconfd-error.h * backends/xml-backend.c: Remove inclusion of gconfd-error.h * gconf/gconf-backend.h: Add lock/unlock and readable/writeable functions to the backend vtable, and add error arguments to all functions in the vtable. * gconf/gconfd.c (safe_g_hash_table_insert): priority GCL_WARNING * backends/xml-backend.c (safe_g_hash_table_insert): make it priority GCL_WARNING. * gconf/gconf-sources.h: GCONF_SOURCE_ALL_WRITEABLE, GCONF_SOURCE_ALL_READABLE flags to short-circuit calls to the new writeable/readable vtable functions.
* Make this script workHavoc Pennington1999-10-171-3/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 1999-10-17 Havoc Pennington <hp@pobox.com> * tests/runtests.sh: Make this script work * gconf/gconftool.c: Don't use -s for --spawn, since it's used for --set. * gconf/gconf.c (gconf_get_config_server): Clear the error from the initial ping if we're asked to start the server. (gconf_engine_unref): No error spew if server is down when the engine is destroyed. Throughout: Make sure error is set but don't require a specific error type * gconf/gconf-internals.c (gconf_read_server_ior): Set error if the server info file doesn't exist * gconf/gconf.c (try_to_contact_server): Add a check for setting the error properly * gconf/gconftool.c (main): Switch to gconf_suggest_sync() instead of gconf_sync() * gconf/gconfd.c: Add a GConfContext::sync_idle field, to store the source ID of an idle function that performs a sync. (context_destroy): Remove the sync idle (context_hibernate): Check that sync idle is 0 (context_sync): Add the sync idle if it doesn't exist * gconf/gconf.c (gconf_suggest_sync): gconf_sync() renamed to gconf_suggest_sync(), because a sync is for all clients; suggest_sync() means "I just finished a large block of operations, so I'm suggesting that it would be efficient and data-preserving to schedule a sync in the near future." gconf_sync() didn't make much sense because it was global, not per-client.
* For all files, s/G_CONF/GCONFHavoc Pennington1999-10-171-1/+1
| | | | | | 1999-10-17 Havoc Pennington <hp@pobox.com> * For all files, s/G_CONF/GCONF
* For all files, s/g_conf/gconfHavoc Pennington1999-10-121-7/+7
| | | | | | 1999-10-11 Havoc Pennington <hp@pobox.com> * For all files, s/g_conf/gconf
* include gconfd-error.h and gconf.h, change error checking to new system asHavoc Pennington1999-09-291-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | 1999-09-29 Havoc Pennington <hp@pobox.com> * backends/xml-backend.c: include gconfd-error.h and gconf.h, change error checking to new system as needed * gconf/Makefile.am: Put more stuff in gconfd_SOURCES instead of client lib, add new files * gconf/gconf-backend.h: include gconf-sources.h * gconf/gconf-conf.h: add error arg to g_conf_new_from_address * gconf/gconf-error.c: move strerror in here, fixups, preconditions * gconf/gconf-internals.c, gconf/gconf-sources.c: move all sources stuff to new gconf-sources file * gconf/gconf-orbit.c: Check for failure to get lock * All the rest of this giant diff: Move to new error-handling scheme
* Added a "dir_exists" function.Dave Camp1999-08-311-0/+3
|
* sync to homeHavoc Pennington1999-08-311-4/+11
|
* more fixesHavoc Pennington1999-08-271-4/+1
|
* blah, blahHavoc Pennington1999-08-261-0/+3
|
* Added the ability to access a particular address directly in addition to theHavoc Pennington1999-08-241-0/+2
| | | | user's main config source stack
* sync a bunch of stuff; doesn't quite work.Havoc Pennington1999-08-201-0/+4
|
* syncHavoc Pennington1999-08-121-1/+1
|
* sync to homeHavoc Pennington1999-08-051-0/+6
|
* *** empty log message ***Havoc Pennington1999-08-031-0/+3
|
* 'ls' functionality (gconftool --all-pairs /foo/bar)Havoc Pennington1999-08-021-2/+12
|
* Minor fixes, and make it easier to try/debugHavoc Pennington1999-07-311-1/+0
|
* started over on the XML backend, it's less ugly now. :-)Havoc Pennington1999-07-251-0/+2
|
* progress, progress. Compiles for the moment.Havoc Pennington1999-07-231-0/+3
|
* boilerplate and hacky code to start things goingHavoc Pennington1999-07-221-9/+23
|
* importHavoc Pennington1999-07-221-0/+54