From 7bc569dda935d06b1654cbbf4bb362ddc27c9cfd Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Thu, 5 Feb 2009 16:10:07 +0000 Subject: [PATCH] publicize virStrerror * src/virterror.c (virStrerror): Remove "static". * src/virterror_internal.h (virStrerror): Declare it. * src/libvirt_private.syms: Add virStrerror; --- ChangeLog | 7 +++++++ src/libvirt_private.syms | 1 + src/virterror.c | 2 +- src/virterror_internal.h | 3 ++- 4 files changed, 11 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index b046a774b7..635aa50caf 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +Thu, 5 Feb 2009 17:03:34 +0100 Jim Meyering + + 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 remove useless code diff --git a/src/libvirt_private.syms b/src/libvirt_private.syms index a6f4f3ee43..17aefbec8d 100644 --- a/src/libvirt_private.syms +++ b/src/libvirt_private.syms @@ -326,6 +326,7 @@ virErrorMsg; virRaiseError; virReportSystemErrorFull; virReportOOMErrorFull; +virStrerror; # xml.h diff --git a/src/virterror.c b/src/virterror.c index 160fea3a5a..6c479f43d7 100644 --- a/src/virterror.c +++ b/src/virterror.c @@ -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 diff --git a/src/virterror_internal.h b/src/virterror_internal.h index 3a11705017..709c8ec473 100644 --- a/src/virterror_internal.h +++ b/src/virterror_internal.h @@ -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 -- GitLab