E
Description:
Content:
Namespaces:
Interfaces:
- Extensible
- OAuth2Service - Contains only private data that should be read and manipulated using the functions below.
Classes:
- AsyncClosure - AsyncClosure provides a simple way to run an asynchronous function synchronously without blocking a running MainLoop or using threads.
- Client - Contains only private data that should be read and manipulated using the functions below.
- Collator - An opaque object used for locale specific string comparisons and sort ordering.
- Extension - Contains only private data that should be read and manipulated using the functions below.
- Flag - Contains only private data that should be read and manipulated using the functions below.
- GDataQuery
- GDataSession - Contains only private data that should be read and manipulated using the functions below.
- MemChunk
- Module - Contains only private data that should be read and manipulated using the functions below.
- NamedParameters
- NetworkMonitor - Contains only private data that should be read and manipulated using the functions below.
- OAuth2ServiceBase
- OAuth2ServiceGoogle
- OAuth2ServiceOutlook
- OAuth2ServiceYahoo
- OAuth2Services - Contains only private data that should be read and manipulated using the functions below.
- OperationPool - Contains only private data that should be read and manipulated using the functions below.
- SoupAuthBearer - Contains only private data that should be read and manipulated using the functions below.
- SoupSession - Contains only private data that should be read and manipulated using the functions below.
- Source - Contains only private data that should be read and manipulated using the functions below.
- SourceAddressBook - Contains only private data that should be read and manipulated using the functions below.
- SourceAlarms - Contains only private data that should be read and manipulated using the functions below.
- SourceAuthentication - Contains only private data that should be read and manipulated using the functions below.
- SourceAutocomplete - Contains only private data that should be read and manipulated using the functions below.
- SourceAutoconfig - Contains only private data that should be read and manipulated using the functions below.
- SourceBackend - Contains only private data that should be read and manipulated using the functions below.
- SourceCalendar - Contains only private data that should be read and manipulated using the functions below.
- SourceCamel - Contains only private data that should be read and manipulated using the functions below.
- SourceCollection - Contains only private data that should be read and manipulated using the functions below.
- SourceContacts
- SourceCredentialsProvider - Contains only private data that should be read and manipulated using the functions below.
- SourceCredentialsProviderImpl - Credentials provider implementation base structure.
- SourceCredentialsProviderImplOAuth2 - OAuth2 based credentials provider implementation.
- SourceCredentialsProviderImplPassword - Password based credentials provider implementation.
- SourceExtension - Contains only private data that should be read and manipulated using the functions below.
- SourceGoa - Contains only private data that should be read and manipulated using the functions below.
- SourceLDAP
- SourceLocal
- SourceMDN - Contains only private data that should be read and manipulated using the functions below.
- SourceMailAccount - Contains only private data that should be read and manipulated using the functions below.
- SourceMailComposition - Contains only private data that should be read and manipulated using the functions below.
- SourceMailIdentity - Contains only private data that should be read and manipulated using the functions below.
- SourceMailSignature - Contains only private data that should be read and manipulated using the function below.
- SourceMailSubmission - Contains only private data that should be read and manipulated using the function below.
- SourceMailTransport - Contains only private data that should be read and manipulated using the functions below.
- SourceMemoList - Contains only private data that should be read and manipulated using the functions below.
- SourceOffline - Contains only private data that should be read and manipulated using the functions below.
- SourceOpenPGP - Contains only private data that should be read and manipulated using the functions below.
- SourceProxy - Contains only private data that should be read and manipulated using the functions below.
- SourceRefresh - Contains only private data that should be read and manipulated using the functions below.
- SourceRegistry - Contains only private data that should be read and manipulated using the functions below.
- SourceRegistryWatcher - Contains only private data that should be read and manipulated using the functions below.
- SourceResource - Contains only private data that should be read and manipulated using the functions below.
- SourceRevisionGuards - Contains only private data that should be read and manipulated using the functions below.
- SourceSMIME - Contains only private data that should be read and manipulated using the functions below.
- SourceSecurity - Contains only private data that should be read and manipulated using the functions below.
- SourceSelectable - Contains only private data that should be read and manipulated using the functions below.
- SourceTaskList - Contains only private data that should be read and manipulated using the functions below.
- SourceUoa - Contains only private data that should be read and manipulated using the functions below.
- SourceWeather
- SourceWebDAVNotes - Contains only private data that should be read and manipulated using the functions below.
- SourceWebdav - Contains only private data that should be read and manipulated using the functions below.
- WebDAVAccessControlEntry
- WebDAVDiscoveredSource
- WebDAVPrivilege
- WebDAVPropertyChange
- WebDAVResource
- WebDAVSession - Contains only private data that should be read and manipulated using the functions below.
- XmlDocument - Contains only private data that should be read and manipulated using the functions below.
- XmlHash - A hash table representation of an XML file.
Structs:
Enums:
- ClientError - Error codes for Client operations.
- ConflictResolution - Defines what to do when a conflict between the locally stored and remotely stored object versions happen during object modify or remove.
- GDataTaskStatus - Holds status of a task.
- MdnResponsePolicy - Policy for responding to Message Disposition Notification requests (i.e. a Disposition-Notification-To header) when receiving messages.
- OAuth2ServiceFlags - Flags of the OAuth2 service.
- OAuth2ServiceNavigationPolicy - A value used during querying authentication URI, to decide whether certain resource can be used or not.
- ProxyMethod - Network proxy configuration methods.
- SourceAuthenticationResult -
Status codes used by the
EBackend
authentication wrapper. - SourceConnectionStatus - Connection status codes used by the Source to indicate its connection state.
- SourceCredentialsReason - An ESource's authentication reason, used by an ESource::CredentialsRequired method.
- SourceLDAPAuthentication - Defines authentication types for LDAP sources.
- SourceLDAPScope - Defines search scope for LDAP sources.
- SourceLDAPSecurity - Defines what connection security should be used for LDAP sources.
- SourceMailCompositionReplyStyle - Set of preferred reply styles for an SourceMailComposition extension.
- SourceWeatherUnits - Units to be used in an SourceWeather extension.
- ThreeState - Describes a three-state value, which can be either Off, On or Inconsistent.
- TimeParseStatus
- TrustPromptResponse - Response codes for the trust prompt.
- WebDAVACEFlag
- WebDAVACEPrincipalKind
- WebDAVACLRestrictions
- WebDAVDiscoverSupports
- WebDAVListFlags
- WebDAVLockScope
- WebDAVPrivilegeHint
- WebDAVPrivilegeKind
- WebDAVPropertyChangeKind
- WebDAVResourceKind
- WebDAVResourceSupports
- XmlHashStatus
- XmlHashType
Error domains:
- CollatorError - Errors from the CollatorError domain.
Constants:
- public const string CLIENT_BACKEND_PROPERTY_CACHE_DIR
The "cache-dir" property indicates the backend's local directory for cached data.
- public const string CLIENT_BACKEND_PROPERTY_CAPABILITIES
The "capabilities" property is a comma-separated list of capabilities supported by the backend.
- public const string CLIENT_BACKEND_PROPERTY_ONLINE
The "online" property is "TRUE" when the client is fully opened and online, "FALSE" at all other times.
- public const string CLIENT_BACKEND_PROPERTY_OPENED
The "opened" property is "TRUE" when the client is fully opened, "FALSE" at all other times.
- public const string CLIENT_BACKEND_PROPERTY_OPENING
The "opening" property is "TRUE" when the client is in the process of opening, "FALSE" at all other times.
- public const string CLIENT_BACKEND_PROPERTY_READONLY
The "online" property is "TRUE" if the backend has only read access to its data, "FALSE" if the backend can modify its data.
- public const string CLIENT_BACKEND_PROPERTY_REVISION
The current overall revision string, this can be used as a quick check to see if data has changed at all since the last time the revision was observed.
- public const string DEBUG_LOG_DOMAIN_CAL_QUERIES
- public const string DEBUG_LOG_DOMAIN_GLOG
- public const string DEBUG_LOG_DOMAIN_USER
- public const int EDS_MAJOR_VERSION
The major version number of the Evolution-Data-Server library.
- public const int EDS_MICRO_VERSION
The micro version number of the Evolution-Data-Server library.
- public const int EDS_MINOR_VERSION
The minor version number of the Evolution-Data-Server library.
- public const string NETWORK_MONITOR_ALWAYS_ONLINE_NAME
A special name, which can be used as a GIO name in the call to set_gio_name, which is used to report the network as always reachable.
- public const string OAUTH2_SECRET_ACCESS_TOKEN
- public const string OAUTH2_SECRET_EXPIRES_AFTER
- public const string OAUTH2_SECRET_REFRESH_TOKEN
- public const string SOURCE_CREDENTIAL_PASSWORD
A name of the named parameter used for passwords in credentials, used to authenticate users with invoke_authenticate_sync and invoke_authenticate.
- public const string SOURCE_CREDENTIAL_SSL_TRUST
A name of the named parameter used for SSL/TLS trust in credentials, used to authenticate users with invoke_authenticate_sync and invoke_authenticate.
- public const string SOURCE_CREDENTIAL_USERNAME
A name of the named parameter used for usernames in credentials, used to authenticate users with invoke_authenticate_sync and invoke_authenticate.
- public const string SOURCE_EXTENSION_ADDRESS_BOOK
Pass this extension name to get_extension to access SourceAddressBook.
- public const string SOURCE_EXTENSION_ALARMS
Pass this extension name to get_extension to access SourceAlarms.
- public const string SOURCE_EXTENSION_AUTHENTICATION
Pass this extension name to get_extension to access SourceAuthentication.
- public const string SOURCE_EXTENSION_AUTOCOMPLETE
Pass this extension name to get_extension to access SourceAutocomplete.
- public const string SOURCE_EXTENSION_AUTOCONFIG
Pass this extension name to get_extension to access SourceAutoconfig.
- public const string SOURCE_EXTENSION_CALENDAR
Pass this extension name to get_extension to access SourceCalendar.
- public const string SOURCE_EXTENSION_COLLECTION
Pass this extension name to get_extension to access SourceCollection.
- public const string SOURCE_EXTENSION_CONTACTS_BACKEND
Pass this extension name to get_extension to access SourceContacts.
- public const string SOURCE_EXTENSION_GOA
Pass this extension name to get_extension to access SourceGoa.
- public const string SOURCE_EXTENSION_LDAP_BACKEND
Pass this extension name to get_extension to access SourceLDAP.
- public const string SOURCE_EXTENSION_LOCAL_BACKEND
Pass this extension name to get_extension to access SourceLocal.
- public const string SOURCE_EXTENSION_MAIL_ACCOUNT
Pass this extension name to get_extension to access SourceMailAccount.
- public const string SOURCE_EXTENSION_MAIL_COMPOSITION
Pass this extension name to get_extension to access SourceMailComposition.
- public const string SOURCE_EXTENSION_MAIL_IDENTITY
Pass this extension name to get_extension to access SourceMailIdentity.
- public const string SOURCE_EXTENSION_MAIL_SIGNATURE
Pass this extension name to get_extension to access SourceMailSignature.
- public const string SOURCE_EXTENSION_MAIL_SUBMISSION
Pass this extension name to get_extension to access SourceMailSubmission.
- public const string SOURCE_EXTENSION_MAIL_TRANSPORT
Pass this extension name to get_extension to access SourceMailTransport.
- public const string SOURCE_EXTENSION_MDN
Pass this extension name to get_extension to access SourceMDN.
- public const string SOURCE_EXTENSION_MEMO_LIST
Pass this extension name to get_extension to access SourceMemoList.
- public const string SOURCE_EXTENSION_OFFLINE
Pass this extension name to get_extension to access SourceOffline.
- public const string SOURCE_EXTENSION_OPENPGP
Pass this extension name to get_extension to access SourceOpenPGP.
- public const string SOURCE_EXTENSION_PROXY
Pass this extension name to get_extension to access SourceProxy.
- public const string SOURCE_EXTENSION_REFRESH
Pass this extension name to get_extension to access SourceRefresh.
- public const string SOURCE_EXTENSION_RESOURCE
Pass this extension name to get_extension to access SourceResource.
- public const string SOURCE_EXTENSION_REVISION_GUARDS
Pass this extension name to get_extension to access SourceRevisionGuards.
- public const string SOURCE_EXTENSION_SECURITY
Pass this extension name to get_extension to access SourceSecurity.
- public const string SOURCE_EXTENSION_SMIME
Pass this extension name to get_extension to access SourceSMIME.
- public const string SOURCE_EXTENSION_TASK_LIST
Pass this extension name to get_extension to access SourceTaskList.
- public const string SOURCE_EXTENSION_UOA
Pass this extension name to get_extension to access SourceUoa.
- public const string SOURCE_EXTENSION_WEATHER_BACKEND
Pass this extension name to get_extension to access SourceWeather.
- public const string SOURCE_EXTENSION_WEBDAV_BACKEND
Pass this extension name to get_extension to access SourceWebdav.
- public const string SOURCE_EXTENSION_WEBDAV_NOTES
Pass this extension name to get_extension to access SourceWebDAVNotes.
- public const int SOURCE_PARAM_SETTING
Extends ParamFlags to indicate the Object property is associated with a key file value.
- public const string WEBDAV_CAPABILITY_ACCESS_CONTROL
- public const string WEBDAV_CAPABILITY_ADDRESSBOOK
- public const string WEBDAV_CAPABILITY_BIND
- public const string WEBDAV_CAPABILITY_CALENDAR_ACCESS
- public const string WEBDAV_CAPABILITY_CALENDAR_AUTO_SCHEDULE
- public const string WEBDAV_CAPABILITY_CALENDAR_PROXY
- public const string WEBDAV_CAPABILITY_CALENDAR_SCHEDULE
- public const string WEBDAV_CAPABILITY_CLASS_1
- public const string WEBDAV_CAPABILITY_CLASS_2
- public const string WEBDAV_CAPABILITY_CLASS_3
- public const string WEBDAV_CAPABILITY_EXTENDED_MKCOL
- public const string WEBDAV_COLLATION_ASCII_CASEMAP
- public const string WEBDAV_COLLATION_ASCII_CASEMAP_SUFFIX
- public const string WEBDAV_COLLATION_ASCII_NUMERIC
- public const string WEBDAV_COLLATION_ASCII_NUMERIC_SUFFIX
- public const string WEBDAV_COLLATION_OCTET
- public const string WEBDAV_COLLATION_OCTET_SUFFIX
- public const string WEBDAV_COLLATION_UNICODE_CASEMAP
- public const string WEBDAV_COLLATION_UNICODE_CASEMAP_SUFFIX
- public const string WEBDAV_CONTENT_TYPE_CALENDAR
- public const string WEBDAV_CONTENT_TYPE_VCARD
- public const string WEBDAV_CONTENT_TYPE_XML
- public const string WEBDAV_DEPTH_INFINITY
- public const string WEBDAV_DEPTH_THIS
- public const string WEBDAV_DEPTH_THIS_AND_CHILDREN
- public const string WEBDAV_NS_CALDAV
- public const string WEBDAV_NS_CALENDARSERVER
- public const string WEBDAV_NS_CARDDAV
- public const string WEBDAV_NS_DAV
- public const string WEBDAV_NS_ICAL
Delegates:
- public delegate string FreeFormExpBuildSexpFunc (string word, string options, string hint)
- public delegate bool GDataObjectCallback (GDataSession gdata, Object object)
Callback used to traverse response from the server, which is an array.
- public delegate Source? OAuth2ServiceRefSourceFunc (string uid)
- public delegate void SourceRefreshFunc (Source source)
- public delegate void TypeFunc (Type type)
Specifies the type of functions passed to type_traverse.
- public delegate Source? WebDAVDiscoverRefSourceFunc (string uid)
- public delegate bool WebDAVPropstatTraverseFunc (WebDAVSession webdav, Node prop_node, Uri request_uri, string? href, uint status_code)
A callback function for propfind_sync, report_sync and other XML response with DAV:propstat elements traversal functions.
- public delegate void XmlHashFunc (string key, string value)
- public delegate bool XmlHashRemoveFunc (string key, string value)
Functions:
- public unowned Binding binding_bind_property (Object source, string source_property, Object target, string target_property, BindingFlags flags)
Thread safe variant of
g_object_bind_property
. - public unowned Binding binding_bind_property_full (Object source, string source_property, Object target, string target_property, BindingFlags flags, BindingTransformFunc? transform_to, owned BindingTransformFunc? transform_from)
Thread safe variant of
g_object_bind_property_full
. - public unowned Binding binding_bind_property_with_closures (Object source, string source_property, Object target, string target_property, BindingFlags flags, Closure? transform_to, Closure? transform_from)
Thread safe variant of bind_property.
- public bool binding_transform_enum_nick_to_value (Binding binding, Value source_value, Value target_value, void* not_used)
Transforms an enumeration nickname to its corresponding value.
- public bool binding_transform_enum_value_to_nick (Binding binding, Value source_value, Value target_value, void* not_used)
Transforms an enumeration value to its corresponding nickname.
- public void categories_add (string category, string unused, string icon_file, bool searchable)
Adds a new category, with its corresponding icon, to the configuration database.
- public string categories_dup_icon_file_for (string category)
Gets the icon file associated with the given category and returns a copy of it.
- public List<string> categories_dup_list ()
Returns a sorted list of all the category names currently configured.
- public bool categories_exist (string category)
Checks whether the given category is available in the configuration.
- public unowned string categories_get_icon_file_for (string category)
Gets the icon file associated with the given category.
- public List<unowned string> categories_get_list ()
Returns a sorted list of all the category names currently configured.
- public bool categories_is_searchable (string category)
Gets whether the given calendar is to be used for searches in the GUI.
- public void categories_register_change_listener (Callback listener)
Registers callback to be called on change of any category.
- public void categories_remove (string category)
Removes the given category from the configuration.
- public void categories_set_icon_file_for (string category, string icon_file)
Sets the icon file associated with the given category.
- public void categories_unregister_change_listener (Callback listener)
Removes previously registered callback from the list of listeners on changes.
- public int data_server_util_get_dbus_call_timeout ()
Returns the value set by data_server_util_set_dbus_call_timeout.
- public void data_server_util_set_dbus_call_timeout (int timeout_msec)
Sets default timeout, in milliseconds, for calls of call family functions.
- public void debug_log_clear ()
- public void debug_log_disable_domains (string[] domains)
Disables all domains from the
domains
array. - public bool debug_log_dump (string filename) throws Error
Saves current log information to the given
filename
. - public bool debug_log_dump_to_dated_file () throws Error
Saves current log information to a file "e-debug-log-YYYY-MM-DD-HH-mm-ss.
- public void debug_log_enable_domains (string[] domains)
Enables all domains from the
domains
array. - public int debug_log_get_max_lines ()
- public bool debug_log_is_domain_enabled (string domain)
- public bool debug_log_load_configuration (string filename) throws Error
Loads configuration for the logging from the given
filename
. - public void debug_log_set_max_lines (int num_lines)
Limits how many lines the log can have.
- public unowned string? eds_check_version (uint required_major, uint required_minor, uint required_micro)
Checks that the Evolution-Data-Server library in use is compatible with the given version.
- public bool enum_from_string (Type enum_type, string string, int enum_value)
Fetches the appropriate enumeration value for
string
in the given enum typetype
and stores the result inenum_value
- public unowned string enum_to_string (Type enum_type, int enum_value)
Converts an enum value to a string using strings from the GType system.
- public async bool file_recursive_delete (File file, int io_priority, Cancellable? cancellable) throws Error
Asynchronously deletes
file
. - public bool file_recursive_delete_sync (File file, Cancellable? cancellable = null) throws Error
Deletes
file
. - public void filename_make_safe (string string)
- public string? filename_mkdir_encoded (string basepath, string fileprefix, string? filename, int fileindex)
Creates a local path constructed from
basepath
/fileprefix
+ "-" +filename
, and makes sure the pathbasepath
exists. - public string? free_form_exp_to_sexp (string free_form_exp, FreeFormExpSymbol symbols)
Converts the
free_form_exp
to an S-Expression using the S-Expression builders defined in thesymbols
. - public unowned string get_user_cache_dir ()
Returns a base directory in which to store user-specific, non-essential cached data for Evolution or Evolution-Data-Server.
- public unowned string get_user_config_dir ()
Returns a base directory in which to store user-specific configuration information for Evolution or Evolution-Data-Server.
- public unowned string get_user_data_dir ()
Returns a base directory in which to store user-specific data for Evolution or Evolution-Data-Server.
- public void localtime_with_offset (long tt, tm tm, int offset)
Converts the calendar time time representation
tt
to a broken-down time representation, store intm
, and provides the offset in seconds from UTC time, stored inoffset
. - public long mktime_utc (tm tm)
Like mktime(3), but assumes UTC instead of local timezone.
- public unowned string oauth2_service_util_compile_value (string compile_value, out unowned string out_glob_buff, size_t out_glob_buff_size)
- public bool oauth2_service_util_extract_from_uri (string in_uri, out string? out_authorization_code, out string? out_error_code, out string? out_error_description)
- public void oauth2_service_util_set_to_form (HashTable<string,string> form, string name, string? value)
- public void oauth2_service_util_take_to_form (HashTable<string,string> form, string name, owned string? value)
- public void queue_transfer (Queue src_queue, Queue dst_queue)
Transfers the contents of
src_queue
to the tail ofdst_queue
. - public bool secret_store_delete_sync (string uid, Cancellable? cancellable = null) throws Error
Deletes the secret for
uid
from either the default keyring or session keyring. - public bool secret_store_lookup_sync (string uid, out string out_secret, Cancellable? cancellable = null) throws Error
Looks up a secret for the
uid
. - public bool secret_store_store_sync (string uid, string secret, string label, bool permanently, Cancellable? cancellable = null) throws Error
Stores the
secret
for theuid
. - public void soup_ssl_trust_connect (Message soup_message, Source source)
Sets up automatic SSL certificate trust handling for
soup_message
using the trust data stored insource
's WebDAV extension. - public size_t strftime (string string, size_t max, string fmt, tm tm)
This function is a wrapper around the strftime (3) function, which converts the %l and %k (12h and 24h) format variables if necessary.
- public void time_format_date_and_time (tm date_tm, bool use_24_hour_format, bool show_midnight, bool show_zero_seconds, string buffer, int buffer_size)
Creates a string representation of the time value
date_tm
and stores it inbuffer
. - public void time_format_time (tm date_tm, bool use_24_hour_format, bool show_zero_seconds, string buffer, int buffer_size)
Creates a string representation of a time value in
date_tm
and stores it inbuffer
. - public string time_get_d_fmt_with_4digit_year ()
Retrieves a date format string with a 4-digit year (D_FMT on systems with to_string available).
- public TimeParseStatus time_parse_date (string value, tm result)
Takes in a date string entered by the user and tries to convert it to a struct
tm
. - public TimeParseStatus time_parse_date_and_time (string value, tm result)
Parses a string
value
containing a date and a time and stores the result inresult
. - public TimeParseStatus time_parse_date_and_time_ex (string value, tm result, bool two_digit_year)
Parses a string
value
containing a date and a time and stores the result inresult
. - public TimeParseStatus time_parse_date_ex (string value, tm result, bool two_digit_year)
Takes in a date string entered by the user and tries to convert it to a struct
tm
. - public TimeParseStatus time_parse_date_format (string value, string format, out void* out_result, out bool out_two_digit_year)
Parses
value
using theformat
saving the parsed date intoout_result
. - public TimeParseStatus time_parse_time (string value, tm result)
Parses
value
, a string containing a time. - public uint timeout_add_seconds_with_name (int priority, uint interval, string? name, owned SourceFunc function)
Similar to add_seconds_full, but also names the SocketSource as
name
. - public uint timeout_add_with_name (int priority, uint interval, string? name, owned SourceFunc function)
Similar to add_full, but also names the SocketSource as
name
. - public void type_traverse (Type parent_type, TypeFunc func)
Calls
func
for all instantiable subtypes ofparent_type
. - public string uid_new ()
Generate a new unique string for use e.g. in account lists.
- public size_t utf8_strftime (string string, size_t max, string fmt, tm tm)
The UTF-8 equivalent of strftime.
- public bool util_can_use_collection_as_credential_source (void* collection_source, void* child_source)
Checks whether the
collection_source
can be used as a credential source for thechild_source
. - public void util_change_uri_component (ref Uri inout_uri, URIComponent component, string? value)
Changes component
component
in theinout_uri
to valuevalue
. - public void util_change_uri_port (ref Uri inout_uri, int port)
Changes the port in the
inout_uri
to valueport
. - public SList<Object> util_copy_object_slist (owned SList<Object>? copy_to, SList<Object> objects)
- public SList<string> util_copy_string_slist (owned SList<string>? copy_to, SList<string> strings)
Copies SList of strings at the end of
copy_to
. - public unowned string util_ensure_gdbus_string (string? str, string gdbus_str)
If
str
is a valid UTF-8 string, the function returnsstr
and does not setgdbus_str
. - public void util_free_nullable_object_slist (SList<Object> objects)
Calls unref on each member of
objects
if non-%NULL and then frees alsoobjects
itself. - public void util_free_object_slist (SList<Object> objects)
Calls unref on each member of
objects
and then frees alsoobjects
itself. - public void util_free_string_slist (SList<string> strings)
Frees memory previously allocated by util_strv_to_slist.
- public string util_generate_uid ()
Generates a unique identificator, which can be used as part of the Message-ID header, or iCalendar component UID, or vCard UID.
- public GenericArray<unowned string> util_get_directory_variants (string main_path, string replace_prefix, bool with_modules_dir)
The
main_path
is a directory, which will be always used. - public string util_get_source_full_name (void* registry, void* source)
Constructs a full name of the
source
with all of its parents of the form: "<account-name> : <parent>/<source>" where the "<parent>/" part can be repeated zero or more times, depending on the deep level of thesource
. - public uint64 util_gthread_id (Thread thread)
Returns a 64-bit integer hopefully uniquely identifying the thread.
- public bool util_identity_can_send (void* registry, void* identity_source)
Checks whether the
identity_source
can be used for sending, which means whether it has configures send mail source. - public void util_safe_free_string (string str)
Calls g_free on
string
, but before it rewrites its content with zeros. - public string[] util_slist_to_strv (SList<string> strings)
Convert list of strings into NULL-terminates array of strings.
- public int util_source_compare_for_sort (void* source_a, void* source_b)
Compares two Source-s in a way suitable for user interface.
- public int util_strcmp0 (string? str1, string? str2)
Compares
str1
andstr2
likeg_strcmp0
, except it handlesnull
and empty strings as equal. - public string? util_strdup_strip (string? string)
Duplicates
string
and strips off any leading or trailing whitespace. - public string? util_strstrcase (string haystack, string needle)
Find the first instance of
needle
inhaystack
, ignoring case for bytes that are ASCII characters. - public bool util_strv_equal (string[] v1, string[] v2)
Compares
v1
andv2
for equality, handlingnull
gracefully. - public SList<string> util_strv_to_slist (string strv)
Convert NULL-terminated array of strings to a list of strings.
- public string? util_unicode_get_utf8 (string text, unichar @out)
Get a UTF-8 character from the beginning of
text
. - public void util_unref_in_thread (void* object)
Unrefs the given
object
in a dedicated thread. - public string util_utf8_data_make_valid (string? data, size_t data_bytes)
Returns a newly-allocated NULL-terminated string with invalid characters replaced by Unicode replacement characters (U+FFFD).
- public string util_utf8_decompose (string text)
Converts the
text
into a decomposed variant and strips it, which allows also cheap case insensitive comparision afterwards. - public string util_utf8_make_valid (string? str)
Returns a newly-allocated copy of
str
, with invalid characters replaced by Unicode replacement characters (U+FFFD). - public string? util_utf8_normalize (string? str)
Normalizes
str
by making it all lower case and removing any accents from it. - public string? util_utf8_remove_accents (string? str)
Returns a newly-allocated copy of
str
with accents removed. - public int util_utf8_strcasecmp (string s1, string s2)
Compares two UTF-8 strings using approximate case-insensitive ordering.
- public unowned string? util_utf8_strstrcase (string? haystack, string? needle)
Find the first instance of
needle
inhaystack
, ignoring case. - public unowned string? util_utf8_strstrcasedecomp (string haystack, string needle)
Find the first instance of
needle
inhaystack
, where bothneedle
andhaystack
are UTF-8 strings. - public void webdav_access_control_entry_free (void* ptr)
Frees an WebDAVAccessControlEntry previously created with WebDAVAccessControlEntry or copy.
- public void webdav_discover_free_discovered_sources (SList<WebDAVDiscoveredSource> discovered_sources)
Frees a
GSList
of discovered sources returned from webdav_discover_sources.end or webdav_discover_sources_sync. - public void webdav_privilege_free (void* ptr)
Frees an WebDAVPrivilege previously created with WebDAVPrivilege or copy.
- public void webdav_property_change_free (void* ptr)
Frees an WebDAVPropertyChange previously created with WebDAVPropertyChange.set, WebDAVPropertyChange.remove or or copy.
- public void webdav_resource_free (void* ptr)
Frees an WebDAVResource previously created with WebDAVResource or copy.
- public void xml_destroy_hash (HashTable<string,string> hash)
Frees the memory used by
hash
and its contents. - public unowned Doc* xml_from_hash (HashTable<string,string> hash, XmlHashType type, string root_name)
Uses the key/value pair representation of an XML structure in
hash
to build an equivalent Doc. - public unowned Node* xml_get_child_by_name (unowned Node* parent, string child_name)
Attempts to find a child element of
parent
namedchild_name
. - public unowned Doc* xml_parse_file (string filename)
Reads a local XML file and parses the contents into an XML document structure.
- public int xml_save_file (string filename, Doc doc)
Writes the given XML document structure to the file given by
filename
. - public HashTable<string,string> xml_to_hash (Doc doc, XmlHashType type)
Creates a GenericSet representation of the Doc
doc
.