]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
publicize virStrerror
authorJim Meyering <meyering@redhat.com>
Thu, 5 Feb 2009 16:10:07 +0000 (16:10 +0000)
committerJim Meyering <meyering@redhat.com>
Thu, 5 Feb 2009 16:10:07 +0000 (16:10 +0000)
* src/virterror.c (virStrerror): Remove "static".
* src/virterror_internal.h (virStrerror): Declare it.
* src/libvirt_private.syms: Add virStrerror;

ChangeLog
src/libvirt_private.syms
src/virterror.c
src/virterror_internal.h

index b046a774b780576242c4c4fd8b71e557cb9b4e42..635aa50cafb0c22db29dc1094c09c26b076fc226 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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
index a6f4f3ee4327f1c6bfd80d55b01a909ac84eb620..17aefbec8d8850da1c3dd2d6428fcc93bb77b372 100644 (file)
@@ -326,6 +326,7 @@ virErrorMsg;
 virRaiseError;
 virReportSystemErrorFull;
 virReportOOMErrorFull;
+virStrerror;
 
 
 # xml.h
index 160fea3a5aa42e653151ed91e2511e8f3d2ab456..6c479f43d758a7bbc6b8f6792810fe54c66b56d9 100644 (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
index 3a117050171e5a9f152e2694a59e0f4714bcbdc1..709c8ec473b1ca141152d97e214f57e3e2823bec 100644 (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