src/java.desktop/share/native/libfreetype/include/freetype/internal/services/svprop.h
changeset 54876 da3834261f0c
parent 49234 3375a8039fde
equal deleted inserted replaced
54875:bcfedddcf4ce 54876:da3834261f0c
     1 /***************************************************************************/
     1 /****************************************************************************
     2 /*                                                                         */
     2  *
     3 /*  svprop.h                                                               */
     3  * svprop.h
     4 /*                                                                         */
     4  *
     5 /*    The FreeType property service (specification).                       */
     5  *   The FreeType property service (specification).
     6 /*                                                                         */
     6  *
     7 /*  Copyright 2012-2018 by                                                 */
     7  * Copyright (C) 2012-2019 by
     8 /*  David Turner, Robert Wilhelm, and Werner Lemberg.                      */
     8  * David Turner, Robert Wilhelm, and Werner Lemberg.
     9 /*                                                                         */
     9  *
    10 /*  This file is part of the FreeType project, and may only be used,       */
    10  * This file is part of the FreeType project, and may only be used,
    11 /*  modified, and distributed under the terms of the FreeType project      */
    11  * modified, and distributed under the terms of the FreeType project
    12 /*  license, LICENSE.TXT.  By continuing to use, modify, or distribute     */
    12  * license, LICENSE.TXT.  By continuing to use, modify, or distribute
    13 /*  this file you indicate that you have read the license and              */
    13  * this file you indicate that you have read the license and
    14 /*  understand and accept it fully.                                        */
    14  * understand and accept it fully.
    15 /*                                                                         */
    15  *
    16 /***************************************************************************/
    16  */
    17 
    17 
    18 
    18 
    19 #ifndef SVPROP_H_
    19 #ifndef SVPROP_H_
    20 #define SVPROP_H_
    20 #define SVPROP_H_
    21 
    21 
    43     FT_Properties_SetFunc  set_property;
    43     FT_Properties_SetFunc  set_property;
    44     FT_Properties_GetFunc  get_property;
    44     FT_Properties_GetFunc  get_property;
    45   };
    45   };
    46 
    46 
    47 
    47 
    48 #ifndef FT_CONFIG_OPTION_PIC
       
    49 
       
    50 #define FT_DEFINE_SERVICE_PROPERTIESREC( class_,          \
    48 #define FT_DEFINE_SERVICE_PROPERTIESREC( class_,          \
    51                                          set_property_,   \
    49                                          set_property_,   \
    52                                          get_property_ )  \
    50                                          get_property_ )  \
    53   static const FT_Service_PropertiesRec  class_ =         \
    51   static const FT_Service_PropertiesRec  class_ =         \
    54   {                                                       \
    52   {                                                       \
    55     set_property_,                                        \
    53     set_property_,                                        \
    56     get_property_                                         \
    54     get_property_                                         \
    57   };
    55   };
    58 
       
    59 #else /* FT_CONFIG_OPTION_PIC */
       
    60 
       
    61 #define FT_DEFINE_SERVICE_PROPERTIESREC( class_,                \
       
    62                                          set_property_,         \
       
    63                                          get_property_ )        \
       
    64   void                                                          \
       
    65   FT_Init_Class_ ## class_( FT_Service_PropertiesRec*  clazz )  \
       
    66   {                                                             \
       
    67     clazz->set_property = set_property_;                        \
       
    68     clazz->get_property = get_property_;                        \
       
    69   }
       
    70 
       
    71 #endif /* FT_CONFIG_OPTION_PIC */
       
    72 
    56 
    73   /* */
    57   /* */
    74 
    58 
    75 
    59 
    76 FT_END_HEADER
    60 FT_END_HEADER