gstreamer_core/gst/gstparamspecs.h
changeset 0 0e761a78d257
child 8 4a7fac7dd34a
equal deleted inserted replaced
-1:000000000000 0:0e761a78d257
       
     1 /* GStreamer - GParamSpecs for for some of our types
       
     2  * Copyright (C) 2007 Tim-Philipp Müller  <tim centricular net>
       
     3  *
       
     4  * This library is free software; you can redistribute it and/or
       
     5  * modify it under the terms of the GNU Library General Public
       
     6  * License as published by the Free Software Foundation; either
       
     7  * version 2 of the License, or (at your option) any later version.
       
     8  *
       
     9  * This library is distributed in the hope that it will be useful,
       
    10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
       
    11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
       
    12  * Library General Public License for more details.
       
    13  *
       
    14  * You should have received a copy of the GNU Library General Public
       
    15  * License along with this library; if not, write to the
       
    16  * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
       
    17  * Boston, MA 02111-1307, USA.
       
    18  */
       
    19 
       
    20 #ifndef __GST_PARAMSPECS_H__
       
    21 #define __GST_PARAMSPECS_H__
       
    22 
       
    23 #include <gst/gstvalue.h>
       
    24 
       
    25 G_BEGIN_DECLS
       
    26 
       
    27 /* --- type macros --- */
       
    28 
       
    29 #define GST_TYPE_PARAM_FRACTION           (gst_param_spec_fraction_get_type ())
       
    30 #define GST_IS_PARAM_SPEC_FRACTION(pspec) (G_TYPE_CHECK_INSTANCE_TYPE ((pspec), GST_TYPE_PARAM_FRACTION))
       
    31 #define GST_PARAM_SPEC_FRACTION(pspec)    (G_TYPE_CHECK_INSTANCE_CAST ((pspec), GST_TYPE_PARAM_FRACTION, GstParamSpecFraction))
       
    32 
       
    33 
       
    34 /* --- get_type functions --- */
       
    35 #ifdef __SYMBIAN32__
       
    36 IMPORT_C
       
    37 #endif
       
    38 
       
    39 
       
    40 GType  gst_param_spec_fraction_get_type (void);
       
    41 
       
    42 
       
    43 /* --- typedefs & structures --- */
       
    44 
       
    45 typedef struct _GstParamSpecFraction GstParamSpecFraction;
       
    46 
       
    47 /**
       
    48  * GstParamSpecFraction:
       
    49  * @parent_instance: super class
       
    50  * @min_num: minimal numerator
       
    51  * @min_den: minimal denominator
       
    52  * @max_num: maximal numerator
       
    53  * @max_den: maximal denominator
       
    54  * @def_num: default numerator
       
    55  * @def_den: default denominator
       
    56  *
       
    57  * A GParamSpec derived structure that contains the meta data for fractional
       
    58  * properties.
       
    59  */
       
    60 struct _GstParamSpecFraction {
       
    61   GParamSpec    parent_instance;
       
    62   
       
    63   gint          min_num, min_den;
       
    64   gint          max_num, max_den;
       
    65   gint          def_num, def_den;
       
    66 };
       
    67 
       
    68 
       
    69 /* --- GParamSpec prototypes --- */
       
    70 #ifdef __SYMBIAN32__
       
    71 IMPORT_C
       
    72 #endif
       
    73 
       
    74 
       
    75 GParamSpec  * gst_param_spec_fraction (const gchar * name,
       
    76                                        const gchar * nick,
       
    77                                        const gchar * blurb,
       
    78                                        gint min_num, gint min_denom,
       
    79                                        gint max_num, gint max_denom,
       
    80                                        gint default_num, gint default_denom,
       
    81                                        GParamFlags flags);
       
    82 
       
    83 G_END_DECLS
       
    84 
       
    85 #endif /* __GST_PARAMSPECS_H__ */
       
    86