* - vici_connect(): Connect to a vici service
* - vici_disconnect(): Disconnect from a vici service
*
- * Library initialization is basically required to set up libstrongswan and
- * a small thread pool. Initialize libstrongswan manually instead.
+ * Library initialization implicitly initializes libstrongswan and a small
+ * thread pool.
*
* Connecting requires an uri, which is currently either a UNIX socket path
* prefixed with unix://, or a hostname:port touple prefixed with tcp://.
/**
* Dump a message text representation to a FILE stream.
*
+ * On error, errno is set appropriately.
+ *
* @param res response message to dump
* @param label a label to print for this message
* @param out FILE to dump to
*
* The string is valid until vici_free_res() is called.
*
+ * On error, errno is set appropriately.
+ *
* @param res response message to parse
* @return name tag / key, NULL on error
*/
*
* This call is valid only after vici_parse() returned VICI_PARSE_KEY_VALUE or
* VICI_PARSE_LIST_ITEM.
+ *
* The string is valid until vici_free_res() is called.
+ *
+ * On error, errno is set appropriately.
+ *
+ * @param len pointer receiving value length
+ * @return pointer to value, NULL on error
*/
void* vici_parse_value(vici_res_t *res, int *len);
*
* This call is valid only after vici_parse() returned VICI_PARSE_KEY_VALUE or
* VICI_PARSE_LIST_ITEM.
+ *
* This call is successful only if the value contains no non-printable
* characters. The string is valid until vici_free_res() is called.
*
+ * On error, errno is set appropriately.
+ *
* @param res response message to parse
* @return value as string, NULL on error
*/
* invoked for the current section level only. To descent into sections, call
* vici_parse_cb() from within a section callback.
*
+ * On error, errno is set appropriately.
+ *
* @param res message to parse
* @param section callback invoked for each section
* @param kv callback invoked for key/value pairs