- 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 unowned string? charset_best (char[] @in)
- public unowned string charset_iso_to_windows (string isocharset)
- public bool cipher_can_load_photos ()
- public int cipher_canonical_to_stream (MimePart part, uint32 flags, Stream ostream, Cancellable? cancellable = null) throws Error
Writes a part to a stream in a canonicalised format, suitable for
signing/encrypting.
- public ContentDisposition content_disposition_decode (string @in)
- public string content_transfer_encoding_decode (string @in)
- public ContentType content_type_decode (string @in)
- public bool debug (string mode)
Check to see if a debug mode is activated.
- public void debug_demangle_backtrace (ref StringBuilder? bt)
Demangles bt
, possibly got from
debug_get_raw_backtrace, by replacing addresses with actual function
calls and eventually line numbers, if available.
- public void debug_end ()
Call this when you're done with your debug output.
- public StringBuilder? debug_get_backtrace ()
Gets current backtrace leading to this function call and demangles it.
- public StringBuilder? debug_get_raw_backtrace ()
Gets current raw backtrace leading to this function call.
- public void debug_init ()
Init camel debug.
- public void debug_ref_unref_dump_backtraces ()
- public void debug_ref_unref_push_backtrace (StringBuilder backtrace, uint object_ref_count)
Adds this backtrace into the set of backtraces related to some object
reference counting issues debugging.
- public void debug_ref_unref_push_backtrace_for_object (void* _object)
- public bool debug_start (string mode)
Start debug output for a given mode, used to make sure debug output is
output atomically and not interspersed with unrelated stuff.
- public string enriched_to_html (string @in, MimeFilterEnrichedFlags flags)
Convert in
from text/plain into text/enriched or
text/richtext based on flags
.
- public int file_util_decode_fixed_int32 (void* @in, int32 dest)
Retrieve a gint32.
- public int file_util_decode_fixed_string (void* @in, string str, size_t len)
Decode a normal string from the input file.
- public int file_util_decode_gsize (void* @in, size_t dest)
Decode an gsize type.
- public int file_util_decode_off_t (void* @in, size_t dest)
Decode an off_t type.
- public int file_util_decode_string (void* @in, string str)
Decode a normal string from the input file.
- public int file_util_decode_time_t (void* @in, long dest)
Decode a time_t value.
- public int file_util_decode_uint32 (void* @in, uint32 dest)
Retrieve an encoded uint32 from a file.
- public int file_util_encode_fixed_int32 (void* @out, int32 value)
Encode a gint32, performing no compression, but converting to network
order.
- public int file_util_encode_fixed_string (void* @out, string str, size_t len)
Encode a normal string and save it in the output file.
- public int file_util_encode_gsize (void* @out, size_t value)
Encode an gsize type.
- public int file_util_encode_off_t (void* @out, size_t value)
Encode an off_t type.
- public int file_util_encode_string (void* @out, string str)
Encode a normal string and save it in the output file.
- public int file_util_encode_time_t (void* @out, long value)
Encode a time_t value to the file.
- public int file_util_encode_uint32 (void* @out, uint32 value)
Utility function to save an uint32 to a file.
- public string file_util_safe_filename (string name)
'Flattens' name
into a safe filename string by hex
encoding any chars that may cause problems on the filesystem.
- public string file_util_savename (string filename)
Builds a pathname where the basename is of the form ".
- public Quark folder_error_quark ()
- public FolderInfo folder_info_build (GenericArray<FolderInfo> folders, string namespace_, char separator, bool short_names)
This takes an array of folders and attaches them together according to
the hierarchy described by their full_names and separator
.
- public void freeaddrinfo (void* host)
- public void* getaddrinfo (string name, string service, void* hints, Cancellable? cancellable = null) throws Error
Resolves a host name
and returns an information about its
address.
- public HeaderAddress header_address_decode (string @in, string charset)
- public string header_address_fold (string @in, size_t headerlen)
- public void header_address_list_append (HeaderAddress[] addrlistp, HeaderAddress addr)
TODO: Document me.
- public void header_address_list_append_list (HeaderAddress[] addrlistp, HeaderAddress[] addrs)
TODO: Document me.
- public void header_address_list_clear (HeaderAddress[] addrlistp)
TODO: Document me.
- public string header_address_list_encode (HeaderAddress[] addrlist)
TODO: Document me.
- public string header_address_list_format (HeaderAddress[] addrlist)
TODO: Document me.
- public string header_contentid_decode (string @in)
Extract a content-id from in
.
- public long header_decode_date (string str, int tz_offset)
Decodes the rfc822 date string and saves the GMT offset into
tz_offset
if non-NULL.
- public int header_decode_int (string @in)
Extracts an integer token from in
and updates the pointer
to point to after the end of the integer token (sort of like strtol).
- public string header_decode_string (string @in, string default_charset)
Decodes rfc2047 encoded-word tokens
- public string header_encode_phrase (uint8 @in)
Encodes a 'phrase' header according to the rules in rfc2047.
- public string header_encode_string (uint8 @in)
Encodes a 'text' header according to the rules of rfc2047.
- public string header_fold (string @in, size_t headerlen)
- public string header_format_ctext (string @in, string default_charset)
Decodes a header which contains rfc2047 encoded-word tokens that may
or may not be within a comment.
- public string header_format_date (long date, int tz_offset)
Allocates a string buffer containing the rfc822 formatted date string
represented by time
and tz_offset
.
- public string header_location_decode (string @in)
- public HeaderAddress header_mailbox_decode (string @in, string charset)
- public void header_mime_decode (string @in, int maj, int min)
- public string header_msgid_decode (string @in)
Extract a message-id token from in
.
- public string header_msgid_generate (string? domain)
Either the domain
is used, or the user's local hostname,
in case it's null or empty.
- public SList<string> header_newsgroups_decode (string @in)
- public SList<string> header_references_decode (string @in)
Generate a list of references, from most recent up.
- public void* header_set_param (void* paramsp, string name, string value)
Set a parameter in the list.
- public string header_token_decode (string @in)
Gets the first token in the string according to the rules of rfc0822.
- public string header_unfold (string @in)
- public string? headers_dup_mailing_list (NameValueArray headers)
Searches for a mailing list information among known headers and
returns a newly allocated string with its value.
- public string? host_idna_to_ascii (string? host)
Converts IDN (Internationalized Domain Name) into ASCII
representation.
- public bool hostname_utils_requires_ascii (string hostname)
Check whether the hostname
requires conversion to ASCII.
- public unowned string iconv_charset_language (string charset)
- public unowned string iconv_charset_name (string charset)
- public unowned string iconv_locale_charset ()
- public unowned string iconv_locale_language ()
- public int init (string certdb_dir, bool nss_init)
- public void localtime_with_offset (long tt, tm tm, int offset)
Converts the calendar time representation tt
to a
broken-down time representation, stored in tm
, and provides the offset in seconds from UTC time, stored in offset
.
- public int lock_dot (string path) throws Error
Create an exclusive lock using .
- public int lock_fcntl (int fd, LockType type) throws Error
Create a lock using fcntl(2).
- public int lock_flock (int fd, LockType type) throws Error
Create a lock using flock(2).
- public int lock_folder (string path, int fd, LockType type) throws Error
Attempt to lock a folder, multiple attempts will be made using all
locking strategies available.
- public int lock_helper_lock (string path) throws Error
- public int lock_helper_unlock (int lockid)
- public long mktime_utc (tm tm)
Like mktime(3), but assumes UTC instead of local timezone.
- public int movemail (string source, string dest) throws Error
This copies an mbox file from a shared directory with multiple readers
and writers into a private (presumably Camel-controlled) directory.
- public void pointer_tracker_dump ()
Prints information about currently stored pointers in the pointer
tracker.
- public void pointer_tracker_track_with_info (void* ptr, string info)
Adds pointer to the pointer tracker, with associated information,
which is printed in summary of pointer tracker printed by
pointer_tracker_dump.
- public void pointer_tracker_untrack (void* ptr)
Removes pointer from the pointer tracker.
- public Provider provider_get (string protocol) throws Error
Returns the registered
Provider for protocol
, loading it from disk if necessary.
- public void provider_init ()
Initialize the Camel provider system by reading in the .
- public List<unowned Provider> provider_list (bool load)
This returns a list of available providers.
- public bool provider_load (string path) throws Error
Loads the provider at path
, and calls its initialization
function, passing session
as an argument.
- public void provider_module_init ()
- public unowned string? pstring_add (string? string, bool own)
Add string
to the pool.
- public bool pstring_contains (string? string)
Returns whether the string
exists in the string pool.
- public void pstring_dump_stat ()
Dumps to stdout memory statistic about the string pool.
- public void pstring_free (string? string)
Unreferences a pooled string.
- public unowned string? pstring_peek (string? string)
Returns the canonicalized copy of string
without
increasing its reference count in the string pool.
- public unowned string? pstring_strdup (string? string)
Create a new pooled string entry for strings
.
- public size_t quoted_decode_step (uint8[] @in, ref uint8[] @out, ref int[] saveme)
Decodes a block of quoted-printable encoded data.
- public size_t quoted_encode_close (uint8[] @in, ref uint8[] @out, ref int[] save)
Quoted-printable encodes a block of text.
- public size_t quoted_encode_step (uint8[] @in, ref uint8[] @out, ref int[] save)
Quoted-printable encodes a block of text.
- public ssize_t read (int fd, string buf, size_t n, Cancellable? cancellable = null) throws Error
Cancellable libc read replacement.
- public bool search_camel_header_soundex (string header, string match)
- public string search_get_all_headers_decoded (MimeMessage message)
- public unowned string search_get_default_charset_from_headers (NameValueArray headers)
- public unowned string search_get_default_charset_from_message (MimeMessage message)
- public string search_get_header_decoded (string header_name, string header_value, string? default_charset)
Decodes header_value
, if needed, either from an address
header or the Subject header.
- public string search_get_headers_decoded (NameValueArray headers, string? default_charset)
- public bool search_header_is_address (string header_name)
- public bool search_header_match (string value, string match, _search_match_t how, _search_t type, string default_charset)
- public void search_words_free (void* words)
- public void* search_words_simple (void* words)
- public void* search_words_split (uint8 @in)
- public Quark service_error_quark ()
- public void shutdown ()
- public Quark store_error_quark ()
- public unowned string store_info_name (StoreSummary summary, StoreInfo info)
Returns the last segment of the path string from info
.
- public unowned string store_info_path (StoreSummary summary, StoreInfo info)
Returns the path string from info
.
- public void store_info_set_string (StoreSummary summary, StoreInfo info, int type, string value)
Set a specific string on the info
.
- public int strcase_equal (void* a, void* b)
- public uint strcase_hash (void* v)
- public unowned string strdown (string str)
- public bool string_is_all_ascii (string? str)
- public string strstrcase (string haystack, string needle)
- public MessageFlags system_flag (string name)
- public bool system_flag_get (MessageFlags flags, string name)
Find the state of the flag name
in flags
.
- public string text_to_html (string @in, MimeFilterToHTMLFlags flags, uint32 color)
Convert in
from plain text into HTML.
- public long time_value_apply (long src_time, TimeUnit unit, int value)
Applies the given time value
in unit unit
to
the src_time
.
- public TransferEncoding transfer_encoding_from_string (string string)
- public unowned string transfer_encoding_to_string (TransferEncoding encoding)
- public string ucs2_utf8 (string ptr)
Convert a ucs2 string into a UTF-8 one.
- public void uid_cache_free_uids (owned GenericArray<string> uids)
- public void unlock_dot (string path)
Attempt to unlock a .
- public void unlock_fcntl (int fd)
Unlock an fcntl lock.
- public void unlock_flock (int fd)
Unlock an flock lock.
- public void unlock_folder (string path, int fd)
Free a lock on a folder.
- public bool url_addrspec_end (string @in, string pos, string inend, UrlMatch match)
- public bool url_addrspec_start (string @in, string pos, string inend, UrlMatch match)
- public void url_decode (string part)
%-decodes the passed-in URL *in place*.
- public string url_decode_path (string path)
- public string url_encode (string part, string? escape_extra)
This %-encodes the given URL part and returns the escaped
version in allocated memory, which the caller must free when it is done.
- public bool url_file_end (string @in, string pos, string inend, UrlMatch match)
- public bool url_file_start (string @in, string pos, string inend, UrlMatch match)
- public bool url_web_end (string @in, string pos, string inend, UrlMatch match)
- public bool url_web_start (string @in, string pos, string inend, UrlMatch match)
- public unowned string ustrstrcase (string haystack, string needle)
- public string utf7_utf8 (string ptr)
Convert a modified UTF-7 string to UTF-8.
- public uint32 utf8_getc (ref uint8 ptr)
Get a Unicode character from a UTF-8 stream.
- public uint32 utf8_getc_limit (ref uint8 ptr, uint8 end)
Get the next UTF-8 gchar at ptr
, and return it, advancing
ptr
to the next character.
- public string utf8_make_valid (string text)
Ensures the returned text will be valid UTF-8 string, with incorrect
letters changed to question marks.
- public string utf8_make_valid_len (string text, ssize_t text_len)
Ensures the returned text will be valid UTF-8 string, with incorrect
letters changed to question marks.
- public void utf8_putc (ref uint8 ptr, uint32 c)
Output a 32 bit unicode character as UTF-8 octets.
- public string utf8_ucs2 (string ptr)
Convert a UTF-8 string into a ucs2 one.
- public string utf8_utf7 (string ptr)
Convert a UTF-8 string to a modified UTF-7 format.
- public int64 util_bdata_get_number (string bdata_ptr, int64 default_value)
Reads a numeric data from the bdata_ptr
and moves the
bdata_ptr
after that number.
- public string util_bdata_get_string (string bdata_ptr, string default_value)
Reads a string data from the bdata_ptr
and moves the
bdata_ptr
after that string.
- public void util_bdata_put_number (StringBuilder bdata_str, int64 value)
Puts the number value
at the end of the bdata_str
.
- public void util_bdata_put_string (StringBuilder bdata_str, string value)
Puts the string value
at the end of the bdata_str
.
- public void util_decode_user_header_setting (string setting_value, out string? out_display_name, out string out_header_name)
- public string util_encode_user_header_setting (string? display_name, string header_name)
Encode the optional display_name
and the
header_name
to a value suitable for GSettings schema org.
- public bool util_fill_message_info_user_headers (MessageInfo info, NameValueArray headers)
Fill info
's user-headers with the user-defined headers
from the headers
array.
- 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? utils_sanitize_ascii_domain_in_address (string? email_address, bool do_format)
Checks whether the domain in the email_address
requires
conversion to ASCII and if it does it also converts it.
- public bool utils_sanitize_ascii_domain_in_url (URL url)
Checks whether the host name of the url
requires
conversion to ASCII and converts it, if needed.
- public string? utils_sanitize_ascii_domain_in_url_str (string? url_str)
Checks whether the host name of the url_str
requires
conversion to ASCII and converts it if needed.
- public size_t uudecode_step (uint8[] @in, ref uint8[] @out, ref uint32[] save)
Uudecodes a chunk of data.
- public size_t uuencode_close (uint8[] @in, ref uint8[] @out, ref uint8[] uubuf, ref uint32[] save)
Uuencodes a chunk of data.
- public size_t uuencode_step (uint8[] @in, ref uint8[] @out, ref uint8[] uubuf, ref uint32[] save)
Uuencodes a chunk of data.
- public ssize_t write (int fd, string buf, size_t n, Cancellable? cancellable = null) throws Error
Cancellable libc write replacement.
- public size_t ydecode_step (uint8[] @in, out uint8[] @out, out int state, out uint32 pcrc, out uint32 crc)
Performs a 'decode step' on a chunk of yEncoded data of length
inlen
pointed to by in
and writes to out
.
- public size_t yencode_close (uint8[] @in, out uint8[] @out, out int state, out uint32 pcrc, out uint32 crc)
Call this function when finished encoding data with
yencode_step to flush off the remaining state.
- public size_t yencode_step (uint8[] @in, out uint8[] @out, out int state, out uint32 pcrc, out uint32 crc)
Performs an yEncode 'encode step' on a chunk of raw data of length
inlen
pointed to by in
and writes to out
.