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:
Jim Meyering 2009-02-05 16:10:07 +00:00
parent a9aa76bad5
commit 7bc569dda9
4 changed files with 11 additions and 2 deletions

View File

@ -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>
remove useless code

View File

@ -326,6 +326,7 @@ virErrorMsg;
virRaiseError;
virReportSystemErrorFull;
virReportOOMErrorFull;
virStrerror;
# xml.h

View File

@ -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 __USE_GNU

View File

@ -1,7 +1,7 @@
/*
* 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
* modify it under the terms of the GNU Lesser General Public
@ -81,5 +81,6 @@ void virReportOOMErrorFull(virConnectPtr conn,
void virSetGlobalError(void);
void virSetConnError(virConnectPtr conn);
const char *virStrerror(int theerrno, char *errBuf, size_t errBufLen);
#endif