#include "galias.h"
-static GError*
+/**
+ * g_error_new_valist:
+ * @domain: error domain
+ * @code: error code
+ * @format: printf()-style format for error message
+ * @var_args: #va_list of parameters for the message format
+ *
+ * Creates a new #GError with the given @domain and @code,
+ * and a message formatted with @format.
+ *
+ * Returns: a new #GError
+ *
+ * Since: 2.22
+ **/
+GError*
g_error_new_valist (GQuark domain,
gint code,
const gchar *format,
#ifndef __G_ERROR_H__
#define __G_ERROR_H__
+#include <stdarg.h>
+
#include <glib/gquark.h>
G_BEGIN_DECLS
GError* g_error_new_literal (GQuark domain,
gint code,
const gchar *message);
+GError* g_error_new_valist (GQuark domain,
+ gint code,
+ const gchar *format,
+ va_list args);
void g_error_free (GError *error);
GError* g_error_copy (const GError *error);