mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-14 10:36:34 +01:00
upgrade to glibmm 2.16
git-svn-id: svn://localhost/ardour2/branches/3.0@5303 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
5b97b13766
commit
e916ac2821
211 changed files with 26478 additions and 4168 deletions
|
|
@ -10,16 +10,16 @@
|
|||
/* Copyright (C) 2002 The gtkmm Development Team
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Library General Public
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License as published by the Free Software Foundation; either
|
||||
* version 2 of the License, or (at your option) any later version.
|
||||
* 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
|
||||
* Library General Public License for more details.
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Library General Public
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library; if not, write to the Free
|
||||
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
*/
|
||||
|
|
@ -28,7 +28,6 @@
|
|||
#include <glibmm/iochannel.h>
|
||||
#include <glibmm/utility.h>
|
||||
#include <glibmm/main.h>
|
||||
#include <glib.h>
|
||||
|
||||
|
||||
namespace
|
||||
|
|
@ -449,12 +448,15 @@ Glib::RefPtr<IOChannel> wrap(GIOChannel* gobject, bool take_copy)
|
|||
|
||||
/**** Glib::GlibmmIOChannel ************************************************/
|
||||
|
||||
// static
|
||||
#ifdef GLIBMM_EXCEPTIONS_ENABLED
|
||||
GIOStatus GlibmmIOChannel::io_read(GIOChannel* channel, char* buf, gsize count,
|
||||
gsize* bytes_read, GError** err)
|
||||
#else
|
||||
//Avoid an unused parameter warning when GLIBMM_EXCEPTIONS_ENABLED is used.
|
||||
GIOStatus GlibmmIOChannel::io_read(GIOChannel* channel, char* buf, gsize count,
|
||||
gsize* bytes_read, GError** /* err */)
|
||||
#endif
|
||||
{
|
||||
if(!&err) err = err; //Avoid an unused parameter warning when GLIBMM_EXCEPTIONS_ENABLED is used.
|
||||
|
||||
IOChannel *const wrapper = reinterpret_cast<GlibmmIOChannel*>(channel)->wrapper;
|
||||
|
||||
#ifdef GLIBMM_EXCEPTIONS_ENABLED
|
||||
|
|
@ -477,12 +479,15 @@ GIOStatus GlibmmIOChannel::io_read(GIOChannel* channel, char* buf, gsize count,
|
|||
return G_IO_STATUS_ERROR;
|
||||
}
|
||||
|
||||
// static
|
||||
#ifdef GLIBMM_EXCEPTIONS_ENABLED
|
||||
GIOStatus GlibmmIOChannel::io_write(GIOChannel* channel, const char* buf, gsize count,
|
||||
gsize* bytes_written, GError** err)
|
||||
#else
|
||||
//Avoid an unused parameter warning when GLIBMM_EXCEPTIONS_ENABLED is used.
|
||||
GIOStatus GlibmmIOChannel::io_write(GIOChannel* channel, const char* buf, gsize count,
|
||||
gsize* bytes_written, GError** /* err */)
|
||||
#endif
|
||||
{
|
||||
if(!&err) err = err; //Avoid an unused parameter warning when GLIBMM_EXCEPTIONS_ENABLED is used.
|
||||
|
||||
IOChannel *const wrapper = reinterpret_cast<GlibmmIOChannel*>(channel)->wrapper;
|
||||
|
||||
#ifdef GLIBMM_EXCEPTIONS_ENABLED
|
||||
|
|
@ -505,11 +510,13 @@ GIOStatus GlibmmIOChannel::io_write(GIOChannel* channel, const char* buf, gsize
|
|||
return G_IO_STATUS_ERROR;
|
||||
}
|
||||
|
||||
// static
|
||||
#ifdef GLIBMM_EXCEPTIONS_ENABLED
|
||||
GIOStatus GlibmmIOChannel::io_seek(GIOChannel* channel, gint64 offset, GSeekType type, GError** err)
|
||||
#else
|
||||
//Avoid an unused parameter warning when GLIBMM_EXCEPTIONS_ENABLED is used.
|
||||
GIOStatus GlibmmIOChannel::io_seek(GIOChannel* channel, gint64 offset, GSeekType type, GError** /* err */)
|
||||
#endif
|
||||
{
|
||||
if(!&err) err = err; //Avoid an unused parameter warning when GLIBMM_EXCEPTIONS_ENABLED is used.
|
||||
|
||||
IOChannel *const wrapper = reinterpret_cast<GlibmmIOChannel*>(channel)->wrapper;
|
||||
|
||||
#ifdef GLIBMM_EXCEPTIONS_ENABLED
|
||||
|
|
@ -532,11 +539,13 @@ GIOStatus GlibmmIOChannel::io_seek(GIOChannel* channel, gint64 offset, GSeekType
|
|||
return G_IO_STATUS_ERROR;
|
||||
}
|
||||
|
||||
// static
|
||||
#ifdef GLIBMM_EXCEPTIONS_ENABLED
|
||||
GIOStatus GlibmmIOChannel::io_close(GIOChannel* channel, GError** err)
|
||||
#else
|
||||
//Avoid an unused parameter warning when GLIBMM_EXCEPTIONS_ENABLED is used.
|
||||
GIOStatus GlibmmIOChannel::io_close(GIOChannel* channel, GError** /* err */)
|
||||
#endif
|
||||
{
|
||||
if(!&err) err = err; //Avoid an unused parameter warning when GLIBMM_EXCEPTIONS_ENABLED is used.
|
||||
|
||||
IOChannel *const wrapper = reinterpret_cast<GlibmmIOChannel*>(channel)->wrapper;
|
||||
|
||||
#ifdef GLIBMM_EXCEPTIONS_ENABLED
|
||||
|
|
@ -594,11 +603,13 @@ void GlibmmIOChannel::io_free(GIOChannel* channel)
|
|||
g_free(channel);
|
||||
}
|
||||
|
||||
// static
|
||||
#ifdef GLIBMM_EXCEPTIONS_ENABLED
|
||||
GIOStatus GlibmmIOChannel::io_set_flags(GIOChannel* channel, GIOFlags flags, GError** err)
|
||||
#else
|
||||
//Avoid an unused parameter warning when GLIBMM_EXCEPTIONS_ENABLED is used.
|
||||
GIOStatus GlibmmIOChannel::io_set_flags(GIOChannel* channel, GIOFlags flags, GError** /* err */)
|
||||
#endif
|
||||
{
|
||||
if(!&err) err = err; //Avoid an unused parameter warning when GLIBMM_EXCEPTIONS_ENABLED is used.
|
||||
|
||||
IOChannel *const wrapper = reinterpret_cast<GlibmmIOChannel*>(channel)->wrapper;
|
||||
|
||||
#ifdef GLIBMM_EXCEPTIONS_ENABLED
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue