diff --git a/ChangeLog b/ChangeLog index b046a774b780576242c4c4fd8b71e557cb9b4e42..635aa50cafb0c22db29dc1094c09c26b076fc226 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 a6f4f3ee4327f1c6bfd80d55b01a909ac84eb620..17aefbec8d8850da1c3dd2d6428fcc93bb77b372 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 160fea3a5aa42e653151ed91e2511e8f3d2ab456..6c479f43d758a7bbc6b8f6792810fe54c66b56d9 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 3a117050171e5a9f152e2694a59e0f4714bcbdc1..709c8ec473b1ca141152d97e214f57e3e2823bec 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