Make g_error_new_valist public
authorYeti <yeti@physics.muni.cz>
Mon, 20 Apr 2009 11:22:17 +0000 (13:22 +0200)
committerChristian Persch <chpe@gnome.org>
Sat, 23 May 2009 15:52:58 +0000 (17:52 +0200)
Bug #569024.

docs/reference/glib/glib-sections.txt
docs/reference/glib/tmpl/error_reporting.sgml
glib/gerror.c
glib/gerror.h
glib/glib.symbols

index 2f3d95461481927cda3b38dd1d05b2d18f3fc3ec..6089b50946c213b372b6197b9581611765199ba0 100644 (file)
@@ -388,6 +388,7 @@ G_HAVE_GROWING_STACK
 GError
 g_error_new
 g_error_new_literal
+g_error_new_valist
 g_error_free
 g_error_copy
 g_error_matches
index 156f70735655842765b66fa8eb2a104f9c8337ad..fc3284c595b8327e02ae590472287e7ef0dd2bf9 100644 (file)
@@ -415,6 +415,18 @@ information about an error that has occurred.
 @Returns: 
 
 
+<!-- ##### FUNCTION g_error_new_valist ##### -->
+<para>
+
+</para>
+
+@domain: 
+@code: 
+@format: 
+@args: 
+@Returns: 
+
+
 <!-- ##### FUNCTION g_error_free ##### -->
 <para>
 
index 940856003b511cdb32c36ce22b0a8fcb3d1a7505..5af702665b991e89e3875a3d7d43a9ab30cba441 100644 (file)
 #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,
index d3d42d59c93998a76028bdcd5bcf93dfe430dd8e..b30348778256b4000019900c810f0c0fd0d36398 100644 (file)
@@ -25,6 +25,8 @@
 #ifndef __G_ERROR_H__
 #define __G_ERROR_H__
 
+#include <stdarg.h>
+
 #include <glib/gquark.h>
 
 G_BEGIN_DECLS
@@ -46,6 +48,10 @@ GError*  g_error_new           (GQuark         domain,
 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);
index f8410cab747819f3ed8e5650c264543f93e01e58..7b4a886e8b558b2f733e3401e51f09a4e620fd5f 100644 (file)
@@ -348,6 +348,7 @@ g_error_free
 g_error_matches
 g_error_new G_GNUC_PRINTF(3,4)
 g_error_new_literal
+g_error_new_valist
 g_propagate_error
 g_set_error G_GNUC_PRINTF(4,5)
 g_set_error_literal