[vala/wip/glib-2-50] glib-2.0: Add new symbols for 2.50
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/wip/glib-2-50] glib-2.0: Add new symbols for 2.50
- Date: Mon, 18 Jul 2016 14:44:39 +0000 (UTC)
commit ccebf078db186bc4ee960d97df2433d79202236b
Author: Rico Tzschichholz <ricotz ubuntu com>
Date: Mon Jul 18 16:44:12 2016 +0200
glib-2.0: Add new symbols for 2.50
vapi/glib-2.0.vapi | 65 ++++++++++++++++++++++++++++++++++++++++++++++++++++
1 files changed, 65 insertions(+), 0 deletions(-)
---
diff --git a/vapi/glib-2.0.vapi b/vapi/glib-2.0.vapi
index 32af187..364e9db 100644
--- a/vapi/glib-2.0.vapi
+++ b/vapi/glib-2.0.vapi
@@ -2365,6 +2365,19 @@ namespace GLib {
LEVEL_MASK
}
+ [CCode (cprefix = "G_LOG_WRITER_", has_type_id = false)]
+ public enum LogWriterOutput {
+ HANDLED,
+ UNHANDLED
+ }
+
+ [CCode (has_type_id = false)]
+ public struct LogField {
+ unowned string key;
+ void* @value;
+ ssize_t length;
+ }
+
public void logv (string? log_domain, LogLevelFlags log_level, string format, va_list args);
[Diagnostics]
[PrintfFormat]
@@ -2372,6 +2385,13 @@ namespace GLib {
[Diagnostics]
[PrintfFormat]
+ [Version (since = "2.50")]
+ public void log_structured (string? log_domain, LogLevelFlags log_levels, string format, ...);
+ [Version (since = "2.50")]
+ public void log_structured_array (LogLevelFlags log_levels, LogField[] fields);
+
+ [Diagnostics]
+ [PrintfFormat]
public void message (string format, ...);
[Diagnostics]
[PrintfFormat]
@@ -2392,6 +2412,35 @@ namespace GLib {
[Version (since = "2.40")]
public void info (string format, ...);
+ [Diagnostics]
+ [PrintfFormat]
+ [Version (since = "2.50")]
+ public void message_strutured (string format, ...);
+ [Diagnostics]
+ [PrintfFormat]
+ [Version (since = "2.50")]
+ public void warning_strutured (string format, ...);
+ [Diagnostics]
+ [PrintfFormat]
+ [Version (since = "2.50")]
+ public void critical_strutured (string format, ...);
+ [Diagnostics]
+ [PrintfFormat]
+ [Version (since = "2.50")]
+ public void error_strutured (string format, ...);
+ [Diagnostics]
+ [PrintfFormat]
+ [Version (since = "2.50")]
+ public void debug_strutured (string format, ...);
+ [Diagnostics]
+ [PrintfFormat]
+ [Version (since = "2.50")]
+ public void info_strutured (string format, ...);
+ [Diagnostics]
+ [CCode (cname = "G_DEBUG_HERE")]
+ [Version (since = "2.50")]
+ public void debug_here ();
+
public delegate void LogFunc (string? log_domain, LogLevelFlags log_levels, string message);
namespace Log {
@@ -2411,6 +2460,19 @@ namespace GLib {
public const string METHOD;
}
+ public delegate LogWriterOutput LogWriterFunc (LogLevelFlags log_level, LogField[] fields);
+
+ [Version (since = "2.50")]
+ namespace LogWriter {
+ [CCode (cname = "g_log_set_writer_func")]
+ public static void set_writer_func (owned LogWriterFunc func);
+ public static bool is_journald (int output_fd);
+ public static string format_fields (LogLevelFlags log_levels, LogField[] fields);
+ public static LogWriterOutput journald (LogLevelFlags log_levels, LogField[] fields, void*
user_data);
+ public static LogWriterOutput standard_streams (LogLevelFlags log_levels, LogField[] fields,
void* user_data);
+ public static LogWriterOutput @default (LogLevelFlags log_levels, LogField[] fields, void*
user_data);
+ }
+
[CCode (has_type_id = false)]
public struct DebugKey {
unowned string key;
@@ -2529,6 +2591,9 @@ namespace GLib {
[Version (since = "2.30")]
[CCode (cname = "g_compute_hmac_for_string")]
public static string compute_for_string (ChecksumType checksum_type, uint8[] key, string str,
size_t length = -1);
+ [Version (since = "2.50")]
+ [CCode (cname = "g_compute_hmac_for_bytes")]
+ public static string compute_hmac_for_bytes (ChecksumType checksum_type, Bytes key, Bytes
data);
}
/* Date and Time Functions */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]