/*++ /* NAME /* dict_file_to_buf 3 /* SUMMARY /* include content from file as blob /* SYNOPSIS /* #include <dict.h> /* /* VSTRING *dict_file_to_buf( /* DICT *dict, /* const char *pathnames) /* /* VSTRING *dict_file_to_b64( /* DICT *dict, /* const char *pathnames) /* /* VSTRING *dict_file_from_b64( /* DICT *dict, /* const char *value) /* /* char *dict_file_get_error( /* DICT *dict) /* /* void dict_file_purge_buffers( /* DICT *dict) /* /* const char *dict_file_lookup( /* DICT *dict) /* DESCRIPTION /* dict_file_to_buf() reads the content of the specified files, /* with names separated by CHARS_COMMA_SP, while inserting a /* gratuitous newline character between files. It returns a /* pointer to a buffer which is owned by the DICT, or a null /* pointer in case of error. /* /* dict_file_to_b64() invokes dict_file_to_buf() and converts /* the result to base64. It returns a pointer to a buffer which /* is owned by the DICT, or a null pointer in case of error. /* /* dict_file_from_b64() converts a value from base64. It returns /* a pointer to a buffer which is owned by the DICT, or a null /* pointer in case of error. /* /* dict_file_purge_buffers() disposes of dict_file-related /* memory that are associated with this DICT. /* /* dict_file_get_error() should be called only after error; /* it returns a description of the problem. Storage is owned /* by the caller. /* /* dict_file_lookup() wraps the dictionary lookup method and /* decodes the base64 lookup result. The dictionary must be /* opened with DICT_FLAG_SRC_RHS_IS_FILE. Sets dict->error to /* DICT_ERR_CONFIG if the content is invalid. Decoding is not /* built into the dict->lookup() method, because that would /* complicate the implementation of map nesting (inline, thash), /* map composition (pipemap, unionmap), and map proxying. /* DIAGNOSTICS /* Panic: interface violation. /* /* In case of error the VSTRING result value is a null pointer, and /* an error description can be retrieved with dict_file_get_error(). /* The storage is owned by the caller. /* LICENSE /* .ad /* .fi /* The Secure Mailer license must be distributed with this software. /* AUTHOR(S) /* Wietse Venema /* Google, Inc. /* 111 8th Avenue /* New York, NY 10011, USA
/*--*/
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.