Commit 31268ffa authored by Max Kellermann's avatar Max Kellermann

io_error: add function new_error_errno()

parent 0634be97
/*
* Copyright (C) 2003-2012 The Music Player Daemon Project
* Copyright (C) 2003-2013 The Music Player Daemon Project
* http://www.musicpd.org
*
* This program is free software; you can redistribute it and/or modify
......@@ -41,4 +41,11 @@ set_error_errno(GError **error_r)
g_strerror(errno));
}
static inline GError *
new_error_errno(void)
{
return g_error_new_literal(errno_quark(), errno,
g_strerror(errno));
}
#endif
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment