Commit d9bab3f0 authored by Guillaume Poirier-Morency's avatar Guillaume Poirier-Morency Committed by Rico Tzschichholz

glib-2.0: Bind g_log_writer_journald/_standard_streams/_default as LogWriterFunc

Fixes #559
parent 2e5682fd
......@@ -2598,7 +2598,7 @@ namespace GLib {
public delegate void LogFunc (string? log_domain, LogLevelFlags log_levels, string message);
[Version (since = "2.50")]
public delegate LogWriterOutput LogWriterFunc (LogLevelFlags log_level, LogField[] fields);
public delegate LogWriterOutput LogWriterFunc (LogLevelFlags log_level, [CCode (array_length_type = "gsize")] LogField[] fields);
namespace Log {
public static uint set_handler (string? log_domain, LogLevelFlags log_levels, LogFunc log_func);
......@@ -2623,13 +2623,13 @@ namespace GLib {
[Version (since = "2.50")]
public static bool writer_is_journald (int output_fd);
[Version (since = "2.50")]
public static string writer_format_fields (LogLevelFlags log_levels, LogField[] fields, bool use_color);
public static string writer_format_fields (LogLevelFlags log_levels, [CCode (array_length_type = "gsize")] LogField[] fields, bool use_color);
[Version (since = "2.50")]
public static LogWriterOutput writer_journald (LogLevelFlags log_levels, LogField[] fields, void* user_data);
public static LogWriterFunc writer_journald;
[Version (since = "2.50")]
public static LogWriterOutput writer_standard_streams (LogLevelFlags log_levels, LogField[] fields, void* user_data);
public static LogWriterFunc writer_standard_streams;
[Version (since = "2.50")]
public static LogWriterOutput writer_default (LogLevelFlags log_levels, LogField[] fields, void* user_data);
public static LogWriterFunc writer_default;
}
[CCode (has_type_id = false)]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment