gst_plugins_base/gst-libs/gst/app/gstapp-marshal.c
branchRCL_3
changeset 29 567bb019e3e3
parent 0 0e761a78d257
child 30 7e817e7e631c
equal deleted inserted replaced
6:9b2c3c7a1a9c 29:567bb019e3e3
     1 /* GStreamer
     1 #include "gstapp-marshal.h"
     2  * Copyright (C) 2007
     2 
     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 #include	<glib-object.h>
     3 #include	<glib-object.h>
    20 
     4 
    21 
     5 
    22 #ifdef G_ENABLE_DEBUG
     6 #ifdef G_ENABLE_DEBUG
    23 #define g_marshal_value_peek_boolean(v)  g_value_get_boolean (v)
     7 #define g_marshal_value_peek_boolean(v)  g_value_get_boolean (v)
    62 #define g_marshal_value_peek_pointer(v)  (v)->data[0].v_pointer
    46 #define g_marshal_value_peek_pointer(v)  (v)->data[0].v_pointer
    63 #define g_marshal_value_peek_object(v)   (v)->data[0].v_pointer
    47 #define g_marshal_value_peek_object(v)   (v)->data[0].v_pointer
    64 #endif /* !G_ENABLE_DEBUG */
    48 #endif /* !G_ENABLE_DEBUG */
    65 
    49 
    66 
    50 
    67 /* VOID:UINT (gstapp-marshal.list:1) */
    51 /* BOOLEAN:UINT64 (gstapp-marshal.list:1) */
    68 
       
    69 /* BOOLEAN:UINT64 (gstapp-marshal.list:2) */
       
    70 void
    52 void
    71 __gst_app_marshal_BOOLEAN__UINT64 (GClosure     *closure,
    53 __gst_app_marshal_BOOLEAN__UINT64 (GClosure     *closure,
    72                                  GValue       *return_value G_GNUC_UNUSED,
    54                                    GValue       *return_value G_GNUC_UNUSED,
    73                                  guint         n_param_values,
    55                                    guint         n_param_values,
    74                                  const GValue *param_values,
    56                                    const GValue *param_values,
    75                                  gpointer      invocation_hint G_GNUC_UNUSED,
    57                                    gpointer      invocation_hint G_GNUC_UNUSED,
    76                                  gpointer      marshal_data)
    58                                    gpointer      marshal_data)
    77 {
    59 {
    78   typedef gboolean (*GMarshalFunc_BOOLEAN__UINT64) (gpointer     data1,
    60   typedef gboolean (*GMarshalFunc_BOOLEAN__UINT64) (gpointer     data1,
    79                                                     guint64      arg_1,
    61                                                     guint64      arg_1,
    80                                                     gpointer     data2);
    62                                                     gpointer     data2);
    81   register GMarshalFunc_BOOLEAN__UINT64 callback;
    63   register GMarshalFunc_BOOLEAN__UINT64 callback;
   103                        data2);
    85                        data2);
   104 
    86 
   105   g_value_set_boolean (return_value, v_return);
    87   g_value_set_boolean (return_value, v_return);
   106 }
    88 }
   107 
    89 
   108 /* ENUM:OBJECT (gstapp-marshal.list:3) */
    90 /* ENUM:OBJECT (gstapp-marshal.list:2) */
   109 void
    91 void
   110 __gst_app_marshal_ENUM__OBJECT (GClosure     *closure,
    92 __gst_app_marshal_ENUM__OBJECT (GClosure     *closure,
   111                               GValue       *return_value G_GNUC_UNUSED,
    93                                 GValue       *return_value G_GNUC_UNUSED,
   112                               guint         n_param_values,
    94                                 guint         n_param_values,
   113                               const GValue *param_values,
    95                                 const GValue *param_values,
   114                               gpointer      invocation_hint G_GNUC_UNUSED,
    96                                 gpointer      invocation_hint G_GNUC_UNUSED,
   115                               gpointer      marshal_data)
    97                                 gpointer      marshal_data)
   116 {
    98 {
   117   typedef gint (*GMarshalFunc_ENUM__OBJECT) (gpointer     data1,
    99   typedef gint (*GMarshalFunc_ENUM__OBJECT) (gpointer     data1,
   118                                              gpointer     arg_1,
   100                                              gpointer     arg_1,
   119                                              gpointer     data2);
   101                                              gpointer     data2);
   120   register GMarshalFunc_ENUM__OBJECT callback;
   102   register GMarshalFunc_ENUM__OBJECT callback;
   142                        data2);
   124                        data2);
   143 
   125 
   144   g_value_set_enum (return_value, v_return);
   126   g_value_set_enum (return_value, v_return);
   145 }
   127 }
   146 
   128 
   147 /* ENUM:VOID (gstapp-marshal.list:4) */
   129 /* ENUM:VOID (gstapp-marshal.list:3) */
   148 void
   130 void
   149 __gst_app_marshal_ENUM__VOID (GClosure     *closure,
   131 __gst_app_marshal_ENUM__VOID (GClosure     *closure,
   150                             GValue       *return_value G_GNUC_UNUSED,
   132                               GValue       *return_value G_GNUC_UNUSED,
   151                             guint         n_param_values,
   133                               guint         n_param_values,
   152                             const GValue *param_values,
   134                               const GValue *param_values,
   153                             gpointer      invocation_hint G_GNUC_UNUSED,
   135                               gpointer      invocation_hint G_GNUC_UNUSED,
   154                             gpointer      marshal_data)
   136                               gpointer      marshal_data)
   155 {
   137 {
   156   typedef gint (*GMarshalFunc_ENUM__VOID) (gpointer     data1,
   138   typedef gint (*GMarshalFunc_ENUM__VOID) (gpointer     data1,
   157                                            gpointer     data2);
   139                                            gpointer     data2);
   158   register GMarshalFunc_ENUM__VOID callback;
   140   register GMarshalFunc_ENUM__VOID callback;
   159   register GCClosure *cc = (GCClosure*) closure;
   141   register GCClosure *cc = (GCClosure*) closure;
   179                        data2);
   161                        data2);
   180 
   162 
   181   g_value_set_enum (return_value, v_return);
   163   g_value_set_enum (return_value, v_return);
   182 }
   164 }
   183 
   165 
       
   166 /* VOID:UINT (gstapp-marshal.list:4) */
       
   167