view src/display-available.h @ 21489:ea81c2fdd568

imformats: return empty instead of error if there's no support for image IO. * __magick_read__.cc (__magick_formats__): if Octave was built without support for image IO, return an empty struct instead of error. If we have no support for image format, it doesn't matter if that's because of limited configuration on the GraphicsMagick build or Octave. Remember we can't even promise support for all formats at the same time, that's dependent on the configuration of GraphicsMagick. * imformats.m: add simple test for even when we were built without support for image IO.
author Carnë Draug <carandraug@octave.org>
date Fri, 18 Mar 2016 22:52:28 +0000
parents f7d1050b9b53
children aba2e6293dd8
line wrap: on
line source

/*

Copyright (C) 2012-2015 John W. Eaton

This file is part of Octave.

Octave is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by the
Free Software Foundation; either version 3 of the License, or (at your
option) any later version.

Octave 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 General Public License
for more details.

You should have received a copy of the GNU General Public License
along with Octave; see the file COPYING.  If not, see
<http://www.gnu.org/licenses/>.

*/

#if ! defined (octave_display_available_h)
#define octave_display_available_h 1

#ifdef __cplusplus
#  include <new>
extern "C" {
#endif

extern const char *display_available (int *dpy_avail);

#ifdef __cplusplus
}
#endif

#endif