SimaaiGstErrors.h File
Structured error/warning helpers for SiMa's GStreamer plugins. More...
Included Headers
Classes Index
| struct | SimaaiGstErrorContext |
|
Bag of diagnostic fields used to build SiMa GStreamer error/warning messages. More... | |
Functions Index
| const char * | simaai_gst_safe (const char *s) |
|
Returns s if non-null, or the empty string if null. Convenience for printf-style sites. More... | |
| void | simaai_gst_append_kv (std::ostringstream &ss, const char *key, const char *value) |
|
Append ‘key='value`(space-prefixed if not the first entry) whenvalue` is non-empty. More... | |
| void | simaai_gst_append_kv_required (std::ostringstream &ss, const char *key, const char *value) |
|
Append ‘key='value`always, substituting empty string whenvalue` is null. More... | |
| void | simaai_gst_append_kv_int (std::ostringstream &ss, const char *key, std::int64_t value) |
|
Append key=<value> (unquoted, integer). More... | |
| std::string | simaai_gst_format_context (const SimaaiGstErrorContext &ctx) |
|
Format an entire SimaaiGstErrorContext as a single key-value line. More... | |
| std::string | simaai_gst_format_detail (const SimaaiGstErrorContext &ctx, const char *detail) |
|
Format ctx and append a ‘detail=`...'field ifdetail` is non-empty. More... | |
| std::string | simaai_gst_vformat (const char *fmt, va_list ap) |
|
vsnprintf-into-string helper used by the *detailf formatters; returns empty on null/empty fmt. More... | |
| std::string | simaai_gst_format_detailf (const SimaaiGstErrorContext &ctx, const char *fmt,...) |
|
printf-style variant of simaai_gst_format_detail. More... | |