Top | ![]() |
![]() |
![]() |
![]() |
ESourceAutoconfigESourceAutoconfig — ESource extension for autoconfig settings |
const gchar * | e_source_autoconfig_get_revision () |
gchar * | e_source_autoconfig_dup_revision () |
void | e_source_autoconfig_set_revision () |
The ESourceAutoconfig extension keeps a mapping between user-specific sources and system-wide ones.
Access the extension as follows:
1 2 3 4 5 |
#include <libedataserver/libedataserver.h> ESourceAutoconfig *extension; extension = e_source_get_extension (source, E_SOURCE_EXTENSION_AUTOCONFIG); |
const gchar *
e_source_autoconfig_get_revision (ESourceAutoconfig *extension
);
Returns the revision of a data source. This maps a particular version of a system-wide source to a user-specific source.
If doesn't match, the system-wide source will be copied to the user-specific evolution config directory, preserving the already present fields that are not defined by the system-wide source.
If it matches, no copying is done.
Since: 3.24
gchar *
e_source_autoconfig_dup_revision (ESourceAutoconfig *extension
);
Thread-safe variation of e_source_autoconfig_get_revision()
.
Use this function when accessing extension
from multiple threads.
The returned string should be freed with g_free()
when no longer needed.
Since: 3.24
void e_source_autoconfig_set_revision (ESourceAutoconfig *extension
,const gchar *revision
);
Sets the revision used to map a particular version of a system-wide source to a user-specific source.
If doesn't match, the system-wide source will be copied to the user-specific evolution config directory, preserving the already present fields that are not defined by the system-wide source.
If it matches, no copying is done.
The internal copy of revision
is automatically stripped of leading and
trailing whitespace.
Since: 3.24
#define E_SOURCE_EXTENSION_AUTOCONFIG "Autoconfig"
Pass this extension name to e_source_get_extension()
to access
ESourceAutoconfig. This is also used as a group name in key files.
Since: 3.24
struct ESourceAutoconfig;
Contains only private data that should be read and manipulated using the functions below.
Since: 3.24