Subversion Repositories Kolibri OS

Rev

Blame | Last modification | View Log | RSS feed

  1. /* cairo - a vector graphics library with display and print output
  2.  *
  3.  * Copyright © 2002 University of Southern California
  4.  * Copyright © 2005,2007 Red Hat, Inc.
  5.  * Copyright © 2007 Mathias Hasselmann
  6.  *
  7.  * This library is free software; you can redistribute it and/or
  8.  * modify it either under the terms of the GNU Lesser General Public
  9.  * License version 2.1 as published by the Free Software Foundation
  10.  * (the "LGPL") or, at your option, under the terms of the Mozilla
  11.  * Public License Version 1.1 (the "MPL"). If you do not alter this
  12.  * notice, a recipient may use your version of this file under either
  13.  * the MPL or the LGPL.
  14.  *
  15.  * You should have received a copy of the LGPL along with this library
  16.  * in the file COPYING-LGPL-2.1; if not, write to the Free Software
  17.  * Foundation, Inc., 51 Franklin Street, Suite 500, Boston, MA 02110-1335, USA
  18.  * You should have received a copy of the MPL along with this library
  19.  * in the file COPYING-MPL-1.1
  20.  *
  21.  * The contents of this file are subject to the Mozilla Public License
  22.  * Version 1.1 (the "License"); you may not use this file except in
  23.  * compliance with the License. You may obtain a copy of the License at
  24.  * http://www.mozilla.org/MPL/
  25.  *
  26.  * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY
  27.  * OF ANY KIND, either express or implied. See the LGPL or the MPL for
  28.  * the specific language governing rights and limitations.
  29.  *
  30.  * The Original Code is the cairo graphics library.
  31.  *
  32.  * The Initial Developer of the Original Code is University of Southern
  33.  * California.
  34.  *
  35.  * Contributor(s):
  36.  *      Carl D. Worth <cworth@cworth.org>
  37.  *      Mathias Hasselmann <mathias.hasselmann@gmx.de>
  38.  *      Behdad Esfahbod <behdad@behdad.org>
  39.  */
  40.  
  41. #ifndef CAIRO_MUTEX_PRIVATE_H
  42. #define CAIRO_MUTEX_PRIVATE_H
  43.  
  44. #include "cairo-mutex-type-private.h"
  45.  
  46. CAIRO_BEGIN_DECLS
  47.  
  48. #if _CAIRO_MUTEX_IMPL_USE_STATIC_INITIALIZER
  49. cairo_private void _cairo_mutex_initialize (void);
  50. #endif
  51. #if _CAIRO_MUTEX_IMPL_USE_STATIC_FINALIZER
  52. cairo_private void _cairo_mutex_finalize (void);
  53. #endif
  54. /* only if using static initializer and/or finalizer define the boolean */
  55. #if _CAIRO_MUTEX_IMPL_USE_STATIC_INITIALIZER || _CAIRO_MUTEX_IMPL_USE_STATIC_FINALIZER
  56.   cairo_private extern cairo_bool_t _cairo_mutex_initialized;
  57. #endif
  58.  
  59. /* Finally, extern the static mutexes and undef */
  60.  
  61. #define CAIRO_MUTEX_DECLARE(mutex) cairo_private extern cairo_mutex_t mutex;
  62. #include "cairo-mutex-list-private.h"
  63. #undef CAIRO_MUTEX_DECLARE
  64.  
  65. CAIRO_END_DECLS
  66.  
  67. #endif
  68.