summaryrefslogtreecommitdiff
path: root/gusb/gusb-util.h
diff options
context:
space:
mode:
authorHans de Goede <hdegoede@redhat.com>2011-09-06 10:54:28 +0200
committerHans de Goede <hdegoede@redhat.com>2011-09-06 10:54:28 +0200
commit1143685d7a8f941092e29b844b88278567a65f34 (patch)
tree5429ba853c779abad7302aef968d489d0e0d7e7f /gusb/gusb-util.h
parent501a5fd4f4ed75a7874244cec8bfc87d309b2b65 (diff)
downloadgusb-1143685d7a8f941092e29b844b88278567a65f34.tar.gz
Provide our own gusb_strerror function
It does not look like libusb_strerror is going upstream any time soon because of i18n worries, so provide out own implementation for now. Once libusb_strerror hits upstream, and when compiling against a new enough libusb, we can turn this into a simple wrapper. Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Diffstat (limited to 'gusb/gusb-util.h')
-rw-r--r--gusb/gusb-util.h32
1 files changed, 32 insertions, 0 deletions
diff --git a/gusb/gusb-util.h b/gusb/gusb-util.h
new file mode 100644
index 0000000..c270853
--- /dev/null
+++ b/gusb/gusb-util.h
@@ -0,0 +1,32 @@
+/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*-
+ *
+ * Copyright (C) 2011 Hans de Goede <hdegoede@redhat.com>
+ *
+ * Licensed under the GNU Lesser General Public License Version 2.1
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, see <http://www.gnu.org/licenses/>.
+ */
+
+#ifndef __GUSB_UTIL_H__
+#define __GUSB_UTIL_H__
+
+#include <glib.h>
+
+G_BEGIN_DECLS
+
+const gchar* gusb_strerror(gint error_code);
+
+G_END_DECLS
+
+#endif /* __GUSB_UTIL_H__ */