mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-22 08:58:54 +02:00
@@ -388,6 +388,7 @@ G_HAVE_GROWING_STACK
|
|||||||
GError
|
GError
|
||||||
g_error_new
|
g_error_new
|
||||||
g_error_new_literal
|
g_error_new_literal
|
||||||
|
g_error_new_valist
|
||||||
g_error_free
|
g_error_free
|
||||||
g_error_copy
|
g_error_copy
|
||||||
g_error_matches
|
g_error_matches
|
||||||
|
@@ -415,6 +415,18 @@ information about an error that has occurred.
|
|||||||
@Returns:
|
@Returns:
|
||||||
|
|
||||||
|
|
||||||
|
<!-- ##### FUNCTION g_error_new_valist ##### -->
|
||||||
|
<para>
|
||||||
|
|
||||||
|
</para>
|
||||||
|
|
||||||
|
@domain:
|
||||||
|
@code:
|
||||||
|
@format:
|
||||||
|
@args:
|
||||||
|
@Returns:
|
||||||
|
|
||||||
|
|
||||||
<!-- ##### FUNCTION g_error_free ##### -->
|
<!-- ##### FUNCTION g_error_free ##### -->
|
||||||
<para>
|
<para>
|
||||||
|
|
||||||
|
@@ -30,7 +30,21 @@
|
|||||||
#include "galias.h"
|
#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,
|
g_error_new_valist (GQuark domain,
|
||||||
gint code,
|
gint code,
|
||||||
const gchar *format,
|
const gchar *format,
|
||||||
|
@@ -25,6 +25,8 @@
|
|||||||
#ifndef __G_ERROR_H__
|
#ifndef __G_ERROR_H__
|
||||||
#define __G_ERROR_H__
|
#define __G_ERROR_H__
|
||||||
|
|
||||||
|
#include <stdarg.h>
|
||||||
|
|
||||||
#include <glib/gquark.h>
|
#include <glib/gquark.h>
|
||||||
|
|
||||||
G_BEGIN_DECLS
|
G_BEGIN_DECLS
|
||||||
@@ -46,6 +48,10 @@ GError* g_error_new (GQuark domain,
|
|||||||
GError* g_error_new_literal (GQuark domain,
|
GError* g_error_new_literal (GQuark domain,
|
||||||
gint code,
|
gint code,
|
||||||
const gchar *message);
|
const gchar *message);
|
||||||
|
GError* g_error_new_valist (GQuark domain,
|
||||||
|
gint code,
|
||||||
|
const gchar *format,
|
||||||
|
va_list args);
|
||||||
|
|
||||||
void g_error_free (GError *error);
|
void g_error_free (GError *error);
|
||||||
GError* g_error_copy (const GError *error);
|
GError* g_error_copy (const GError *error);
|
||||||
|
@@ -348,6 +348,7 @@ g_error_free
|
|||||||
g_error_matches
|
g_error_matches
|
||||||
g_error_new G_GNUC_PRINTF(3,4)
|
g_error_new G_GNUC_PRINTF(3,4)
|
||||||
g_error_new_literal
|
g_error_new_literal
|
||||||
|
g_error_new_valist
|
||||||
g_propagate_error
|
g_propagate_error
|
||||||
g_set_error G_GNUC_PRINTF(4,5)
|
g_set_error G_GNUC_PRINTF(4,5)
|
||||||
g_set_error_literal
|
g_set_error_literal
|
||||||
|
Reference in New Issue
Block a user