mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-10-30 01:43:23 +00:00
publicize virStrerror
* src/virterror.c (virStrerror): Remove "static". * src/virterror_internal.h (virStrerror): Declare it. * src/libvirt_private.syms: Add virStrerror;
This commit is contained in:
parent
a9aa76bad5
commit
7bc569dda9
@ -1,3 +1,10 @@
|
|||||||
|
Thu, 5 Feb 2009 17:03:34 +0100 Jim Meyering <meyering@redhat.com>
|
||||||
|
|
||||||
|
publicize virStrerror
|
||||||
|
* src/virterror.c (virStrerror): Remove "static".
|
||||||
|
* src/virterror_internal.h (virStrerror): Declare it.
|
||||||
|
* src/libvirt_private.syms: Add virStrerror;
|
||||||
|
|
||||||
Thu Feb 5 17:00:17 +0100 2009 Jim Meyering <meyering@redhat.com>
|
Thu Feb 5 17:00:17 +0100 2009 Jim Meyering <meyering@redhat.com>
|
||||||
|
|
||||||
remove useless code
|
remove useless code
|
||||||
|
@ -326,6 +326,7 @@ virErrorMsg;
|
|||||||
virRaiseError;
|
virRaiseError;
|
||||||
virReportSystemErrorFull;
|
virReportSystemErrorFull;
|
||||||
virReportOOMErrorFull;
|
virReportOOMErrorFull;
|
||||||
|
virStrerror;
|
||||||
|
|
||||||
|
|
||||||
# xml.h
|
# xml.h
|
||||||
|
@ -1005,7 +1005,7 @@ void virReportErrorHelper(virConnectPtr conn, int domcode, int errcode,
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static const char *virStrerror(int theerrno, char *errBuf, size_t errBufLen)
|
const char *virStrerror(int theerrno, char *errBuf, size_t errBufLen)
|
||||||
{
|
{
|
||||||
#ifdef HAVE_STRERROR_R
|
#ifdef HAVE_STRERROR_R
|
||||||
# ifdef __USE_GNU
|
# ifdef __USE_GNU
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
/*
|
/*
|
||||||
* virterror.h: internal error handling
|
* virterror.h: internal error handling
|
||||||
*
|
*
|
||||||
* Copyright (C) 2006-2008 Red Hat, Inc.
|
* Copyright (C) 2006-2009 Red Hat, Inc.
|
||||||
*
|
*
|
||||||
* This library is free software; you can redistribute it and/or
|
* This library is free software; you can redistribute it and/or
|
||||||
* modify it under the terms of the GNU Lesser General Public
|
* modify it under the terms of the GNU Lesser General Public
|
||||||
@ -81,5 +81,6 @@ void virReportOOMErrorFull(virConnectPtr conn,
|
|||||||
|
|
||||||
void virSetGlobalError(void);
|
void virSetGlobalError(void);
|
||||||
void virSetConnError(virConnectPtr conn);
|
void virSetConnError(virConnectPtr conn);
|
||||||
|
const char *virStrerror(int theerrno, char *errBuf, size_t errBufLen);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user