camel-1.2
Description:
Camel is a generic messaging library. It supports the standard messaging system for receiving and sending messages. It is the messaging backend for Evolution.
- C-Documentation: https://developer-old.gnome.org/camel/unstable/
- Devhelp-Package download
Content:
Namespaces:
- Camel
- Address
- AsyncClosure - Contains only private data that should be read and manipulated using the functions below.
- BlockFile
- Cert
- CertDB
- CipherContext
- CipherValidity
- ContentDisposition
- ContentType
- DB
- DataCache
- DataWrapper
- FilterDriver
- FilterInputStream
- FilterOutputStream
- Folder
- FolderChangeInfo
- FolderInfo
- FolderQuotaInfo
- FolderSearch
- FolderSummary
- FolderThread
- FolderThreadNode
- GpgContext
- GpgKeyInfo - An opaque structure holding information about a user key.
- HTMLParser
- HeaderAddress
- HeaderParam
- Index
- IndexCursor
- IndexName
- InternetAddress
- KeyFile
- KeyTable
- LocalSettings - Contains only private data that should be read and manipulated using the functions below.
- Medium
- MemChunk
- MemPool
- MessageContentInfo
- MessageInfo
- MessageInfoBase
- MimeFilter
- MimeFilterBasic
- MimeFilterBestenc
- MimeFilterCRLF
- MimeFilterCanon
- MimeFilterCharset
- MimeFilterEnriched
- MimeFilterFrom
- MimeFilterGZip
- MimeFilterHTML
- MimeFilterIndex
- MimeFilterLinewrap
- MimeFilterPgp
- MimeFilterProgress
- MimeFilterToHTML
- MimeFilterWindows
- MimeFilterYenc
- MimeMessage
- MimeParser
- MimePart
- MsgPort
- Multipart
- MultipartEncrypted
- MultipartSigned
- NNTPAddress
- NameValueArray
- NamedFlags
- NullOutputStream
- Object
- ObjectBag
- OfflineFolder
- OfflineSettings - Contains only private data that should be read and manipulated using the functions below.
- OfflineStore
- Operation
- PartitionTable
- Provider
- SExp
- SMIMEContext
- Sasl
- SaslAnonymous
- SaslCramMd5
- SaslDigestMd5
- SaslGssapi
- SaslLogin
- SaslNTLM
- SaslPOPB4SMTP
- SaslPlain
- SaslXOAuth2
- SaslXOAuth2Google
- SaslXOAuth2Outlook
- SaslXOAuth2Yahoo
- Service
- Session
- Settings - Contains only private data that should be read and manipulated using the functions below.
- Store
- StoreInfo
- StoreSettings - Contains only private data that should be read and manipulated using the functions below.
- StoreSummary
- Stream
- StreamBuffer
- StreamFilter
- StreamFs
- StreamMem
- StreamNull
- StreamProcess
- TextIndex
- TextIndexCursor
- TextIndexKeyCursor
- TextIndexName
- Transport
- Trie - A trie data structure.
- URL
- UrlScanner
- VTrashFolder
- VeeDataCache - Contains only private data that should be read and manipulated using the functions below.
- VeeFolder
- VeeMessageInfo
- VeeMessageInfoData - Contains only private data that should be read and manipulated using the functions below.
- VeeStore
- VeeSubfolderData - Contains only private data that should be read and manipulated using the functions below.
- VeeSummary
- WeakRefGroup
- Block
- BlockRoot
- Charset
- CipherCertInfo
- CipherCertInfoProperty
- FIRecord - Values to store/load for single folder's FolderSummary structure.
- KeyBlock
- KeyRootBlock
- MIRecord - The extensive DB format, supporting basic searching and sorting.
- Msg
- PartitionKey
- PartitionKeyBlock
- PartitionMap
- PartitionMapBlock
- ProviderConfEntry
- ProviderModule
- ProviderPortEntry
- SExpResult
- SExpSymbol - Describes a function or a variable symbol
- SExpTerm
- ServiceAuthType
- SummaryMessageID
- UIDCache
- UrlMatch
- UrlPattern
- _KeyKey
- _LockHelperMsg
- __search_word
- __search_words
- _block_t
- _encrypt
- _hash_t
- _key_t
- _sign
- AuthenticationResult - Authentication result codes used by Service.
- BestencEncoding
- BestencRequired
- BlockFileFlags
- BlockFlags
- CertTrust
- CipherContextError
- CipherHash
- CipherValidityEncrypt
- CipherValidityMode
- CipherValiditySign
- CompareType - Declares the compare type to use.
- DBError
- DBKnownColumnNames - An enum of all the known columns, which can be used for a quick column lookups.
- FetchHeadersType - Describes what headers to fetch when downloading message summaries.
- FetchType
- FolderFlags
- FolderInfoFlags - These flags are abstractions.
- FolderSummaryFlags
- GpgTrust - GPG key trust levels.
- HTMLParserState
- HeaderAddressType
- JunkStatus - These are result codes used when passing messages through a junk filter.
- LockType
- MemPoolFlags
- MessageFlags
- MimeFilterBasicType
- MimeFilterCRLFDirection
- MimeFilterCRLFMode
- MimeFilterCanonFlags
- MimeFilterEnrichedFlags
- MimeFilterGZipMode
- MimeFilterToHTMLFlags - Flags for converting text/plain content into text/html.
- MimeFilterYencDirection
- MimeParserState
- NetworkSecurityMethod - Methods for establishing an encrypted (or unencrypted) network connection.
- ParamFlags - These flags extend ParamFlags.
- ProviderConfType
- ProviderFlags
- ProviderType
- ProviderURLFlags
- RecipientCertificateFlags - Flags used to get_recipient_certificates_sync call.
- SExpResultType - Defines type of a SExpResult.
- SExpTermType - Defines type of a SExpTerm and partly also SExpSymbol
- SMIMEDescribe
- SMIMESign
- SaslAnonTraceType
- ServiceConnectionStatus - Connection status returned by get_connection_status.
- SessionAlertType
- SortType - Determines the direction of a sort.
- StoreFlags
- StoreGetFolderFlags - Open mode for folder.
- StoreGetFolderInfoFlags
- StoreInfoFlags
- StorePermissionFlags
- StreamBufferMode
- ThreeState - Describes a three-state value, which can be either Off, On or Inconsistent.
- TimeUnit - Declares time unit, which serves to interpret the time value, like in OfflineSettings.
- TransferEncoding
- URLFlags
- UUDecodeState
- VTrashFolderType
- _search_flags_t
- _search_match_t
- _search_t
- _search_word_t
- public const int AI_CANONNAME
- public const int AI_NUMERICHOST
- public const int BLOCK_SIZE
- public const int BLOCK_SIZE_BITS
- public const string CIPHER_CERT_INFO_PROPERTY_PHOTO_FILENAME
Name of the photo-filename property which can be stored on a CipherCertInfo.
- public const string CIPHER_CERT_INFO_PROPERTY_SIGNERS_ALT_EMAILS
A string containing a list of email addresses of all signers including their alternative emails.
- public const string DB_FILE
- public const int DB_FREE_CACHE_SIZE
- public const string DB_IN_MEMORY_DB
- public const string DB_IN_MEMORY_TABLE
- public const int DB_IN_MEMORY_TABLE_LIMIT
- public const int DB_SLEEP_INTERVAL
- public const string DEBUG_IMAP
- public const string DEBUG_IMAP_FOLDER
- public const int DOT_LOCK_REFRESH
- public const int EAI_ADDRFAMILY
- public const int EAI_AGAIN
- public const int EAI_BADFLAGS
- public const int EAI_FAIL
- public const int EAI_FAMILY
- public const int EAI_MEMORY
- public const int EAI_NODATA
- public const int EAI_NONAME
- public const int EAI_OVERFLOW
- public const int EAI_SERVICE
- public const int EAI_SOCKTYPE
- public const int EAI_SYSTEM
- public const string EDS_CAMEL_PROVIDER_DIR
This environment variable configures where the camel provider modules are loaded from.
- public const int FOLDER_TYPE_BIT
The folder type bitshift value.
- public const int FOLDER_TYPE_MASK
The folder type mask value.
- public const int FOLD_MAX_SIZE
- public const int FOLD_SIZE
- public const int INDEX_DELETED
- public const int KEY_TABLE_MAX_KEY
- public const int LOCK_DELAY
- public const int LOCK_DOT_DELAY
- public const int LOCK_DOT_RETRY
- public const int LOCK_DOT_STALE
- public const int LOCK_RETRY
- public const int MESSAGE_DATE_CURRENT
- public const int MESSAGE_SYSTEM_MASK
- public const int MIME_YDECODE_STATE_BEGIN
- public const int MIME_YDECODE_STATE_DECODE
- public const int MIME_YDECODE_STATE_END
- public const int MIME_YDECODE_STATE_EOLN
- public const int MIME_YDECODE_STATE_ESCAPE
- public const int MIME_YDECODE_STATE_INIT
- public const int MIME_YDECODE_STATE_PART
- public const int MIME_YENCODE_CRC_INIT
- public const int MIME_YENCODE_STATE_INIT
- public const int NI_DGRAM
- public const int NI_NAMEREQD
- public const int NI_NOFQDN
- public const int NI_NUMERICHOST
- public const int NI_NUMERICSERV
- public const int O_BINARY
- public const string RECIPIENT_TYPE_BCC
- public const string RECIPIENT_TYPE_CC
- public const string RECIPIENT_TYPE_RESENT_BCC
- public const string RECIPIENT_TYPE_RESENT_CC
- public const string RECIPIENT_TYPE_RESENT_TO
- public const string RECIPIENT_TYPE_TO
- public const string SESSION_BOOK_UID_ANY
Can be used with addressbook_contains_sync as the book UID, meaning to check in all configured address books.
- public const string SESSION_BOOK_UID_COMPLETION
Can be used with addressbook_contains_sync as the book UID, meaning to check in all address books enabled for auto-completion.
- public const int STORE_INFO_FOLDER_TYPE_BIT
The folder store info type bitshift value.
- public const int STORE_INFO_FOLDER_TYPE_MASK
The folder store info type mask value.
- public const int STORE_INFO_FOLDER_UNKNOWN
- public const string STORE_SETUP_ARCHIVE_FOLDER
- public const string STORE_SETUP_DRAFTS_FOLDER
- public const string STORE_SETUP_SENT_FOLDER
- public const string STORE_SETUP_TEMPLATES_FOLDER
- public const string UNMATCHED_NAME
- public const int URL_HIDE_ALL
- public const int URL_PART_AUTH
- public const int URL_PART_HIDDEN
- public const int URL_PART_HOST
- public const int URL_PART_NEED
- public const int URL_PART_PASSWORD
- public const int URL_PART_PATH
- public const int URL_PART_PATH_DIR
- public const int URL_PART_PORT
- public const int URL_PART_USER
- public const int UTILS_MAX_USER_HEADERS
- public const int UUDECODE_STATE_MASK
- public const string VJUNK_NAME
- public const string VTRASH_NAME
- public delegate void* CipherCloneFunc (void* value)
- public delegate void* CopyFunc (void* object)
- public delegate int DBCollate (void* enc, int length1, void* data1, int length2, void* data2)
A collation callback function.
- public delegate int DBSelectCB (string[] colvalues, string[] colnames)
A callback called for the SELECT statements.
- public delegate bool DataCacheRemoveFunc (DataCache cdc, string filename)
A callback called for each found file in the cache, used by foreach_remove.
- public delegate unowned Folder FilterGetFolderFunc (FilterDriver driver, string uri) throws Error
- public delegate void FilterPlaySoundFunc (FilterDriver driver, string filename)
- public delegate void FilterShellFunc (FilterDriver driver, int argc, string argv)
- public delegate void FilterStatusFunc (FilterDriver driver, void* status, int pc, string desc)
- public delegate void FilterSystemBeepFunc (FilterDriver driver)
- public delegate void ForeachInfoData (VeeMessageInfoData mi_data, Folder subfolder)
A callback prototype for foreach_message_info_data
- public delegate bool ForeachPartFunc (MimeMessage message, MimePart part, MimePart? parent_part)
Callback used to traverse parts of the
message
using foreach_part. - public delegate string IndexNorm (Index index, string word)
- public delegate bool MessageContentInfoTraverseCallback (MessageContentInfo ci, int depth)
This is the callback signature for traverse.
- public delegate int ProviderAutoDetectFunc (URL url, out HashTable<string,string>? auto_detected) throws Error
Function used in auto_detect.
- public delegate unowned SExpResult? SExpFunc (SExp sexp, SExpResult[] argv)
Callback type for function symbols used with add_function.
- public delegate unowned SExpResult? SExpIFunc (SExp sexp, SExpTerm[] argv)
Callback type for function symbols used with add_ifunction.
- public delegate void SessionCallback (Session session, Cancellable? cancellable) throws Error
This is the callback signature for jobs submitted to the CamelSession via submit_job.
- public delegate void TextIndexFunc (TextIndex idx, string word, string buffer)
- public delegate bool UrlScanFunc (string @in, string pos, string inend, UrlMatch match)
- 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 ()
Prints current backtraces stored with debug_ref_unref_push_backtrace or with debug_ref_unref_push_backtrace_for_object.
- 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)
Gets current backtrace of this call and adds it to the list of backtraces with debug_ref_unref_push_backtrace.
- 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 onflags
. - 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_gint64 (void* @in, int64 dest)
Decode a gint64 type.
- 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_gint64 (void* @out, int64 value)
Encode a gint64 type.
- 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)
Frees a structure returned with getaddrinfo.
- 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
andtz_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 intm
, and provides the offset in seconds from UTC time, stored inoffset
. - 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, passingsession
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
inflags
. - 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 unitunit
to thesrc_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, advancingptr
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 thebdata_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 thebdata_ptr
after that string. - public void util_bdata_put_number (StringBuilder bdata_str, int64 value)
Puts the number
value
at the end of thebdata_str
. - public void util_bdata_put_string (StringBuilder bdata_str, string value)
Puts the string
value
at the end of thebdata_str
. - public void util_decode_user_header_setting (string setting_value, out string? out_display_name, out string out_header_name)
Decode the values previously encoded by util_encode_user_header_setting.
- public string util_encode_user_header_setting (string? display_name, string header_name)
Encode the optional
display_name
and theheader_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 theheaders
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 byin
and writes toout
. - 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 byin
and writes toout
.