PageRenderTime 25ms CodeModel.GetById 1ms app.highlight 16ms RepoModel.GetById 2ms app.codeStats 0ms

/indra/newview/llappviewerlinux_api.h

https://bitbucket.org/lindenlab/viewer-beta/
C++ Header | 143 lines | 100 code | 15 blank | 28 comment | 3 complexity | 0853225f157fe024d9d7202e68c27c66 MD5 | raw file
  1/* Generated by dbus-binding-tool; do not edit! */
  2/**
  3 * $LicenseInfo:firstyear=2008&license=viewerlgpl$
  4 * Second Life Viewer Source Code
  5 * Copyright (C) 2010, Linden Research, Inc.
  6 * 
  7 * This library is free software; you can redistribute it and/or
  8 * modify it under the terms of the GNU Lesser General Public
  9 * License as published by the Free Software Foundation;
 10 * version 2.1 of the License only.
 11 * 
 12 * This library is distributed in the hope that it will be useful,
 13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 15 * Lesser General Public License for more details.
 16 * 
 17 * You should have received a copy of the GNU Lesser General Public
 18 * License along with this library; if not, write to the Free Software
 19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
 20 * 
 21 * Linden Research, Inc., 945 Battery Street, San Francisco, CA  94111  USA
 22 * $/LicenseInfo$
 23 */ 
 24
 25#ifndef __dbus_glib_marshal_viewerapp_MARSHAL_H__
 26#define __dbus_glib_marshal_viewerapp_MARSHAL_H__
 27
 28#include	<glib-object.h>
 29
 30G_BEGIN_DECLS
 31
 32#ifdef G_ENABLE_DEBUG
 33#define g_marshal_value_peek_boolean(v)  g_value_get_boolean (v)
 34#define g_marshal_value_peek_char(v)     g_value_get_char (v)
 35#define g_marshal_value_peek_uchar(v)    g_value_get_uchar (v)
 36#define g_marshal_value_peek_int(v)      g_value_get_int (v)
 37#define g_marshal_value_peek_uint(v)     g_value_get_uint (v)
 38#define g_marshal_value_peek_long(v)     g_value_get_long (v)
 39#define g_marshal_value_peek_ulong(v)    g_value_get_ulong (v)
 40#define g_marshal_value_peek_int64(v)    g_value_get_int64 (v)
 41#define g_marshal_value_peek_uint64(v)   g_value_get_uint64 (v)
 42#define g_marshal_value_peek_enum(v)     g_value_get_enum (v)
 43#define g_marshal_value_peek_flags(v)    g_value_get_flags (v)
 44#define g_marshal_value_peek_float(v)    g_value_get_float (v)
 45#define g_marshal_value_peek_double(v)   g_value_get_double (v)
 46#define g_marshal_value_peek_string(v)   (char*) g_value_get_string (v)
 47#define g_marshal_value_peek_param(v)    g_value_get_param (v)
 48#define g_marshal_value_peek_boxed(v)    g_value_get_boxed (v)
 49#define g_marshal_value_peek_pointer(v)  g_value_get_pointer (v)
 50#define g_marshal_value_peek_object(v)   g_value_get_object (v)
 51#else /* !G_ENABLE_DEBUG */
 52/* WARNING: This code accesses GValues directly, which is UNSUPPORTED API.
 53 *          Do not access GValues directly in your code. Instead, use the
 54 *          g_value_get_*() functions
 55 */
 56#define g_marshal_value_peek_boolean(v)  (v)->data[0].v_int
 57#define g_marshal_value_peek_char(v)     (v)->data[0].v_int
 58#define g_marshal_value_peek_uchar(v)    (v)->data[0].v_uint
 59#define g_marshal_value_peek_int(v)      (v)->data[0].v_int
 60#define g_marshal_value_peek_uint(v)     (v)->data[0].v_uint
 61#define g_marshal_value_peek_long(v)     (v)->data[0].v_long
 62#define g_marshal_value_peek_ulong(v)    (v)->data[0].v_ulong
 63#define g_marshal_value_peek_int64(v)    (v)->data[0].v_int64
 64#define g_marshal_value_peek_uint64(v)   (v)->data[0].v_uint64
 65#define g_marshal_value_peek_enum(v)     (v)->data[0].v_long
 66#define g_marshal_value_peek_flags(v)    (v)->data[0].v_ulong
 67#define g_marshal_value_peek_float(v)    (v)->data[0].v_float
 68#define g_marshal_value_peek_double(v)   (v)->data[0].v_double
 69#define g_marshal_value_peek_string(v)   (v)->data[0].v_pointer
 70#define g_marshal_value_peek_param(v)    (v)->data[0].v_pointer
 71#define g_marshal_value_peek_boxed(v)    (v)->data[0].v_pointer
 72#define g_marshal_value_peek_pointer(v)  (v)->data[0].v_pointer
 73#define g_marshal_value_peek_object(v)   (v)->data[0].v_pointer
 74#endif /* !G_ENABLE_DEBUG */
 75
 76
 77/* BOOLEAN:STRING,POINTER,POINTER (/tmp/dbus-binding-tool-c-marshallers.5XXD8T:1) */
 78extern void dbus_glib_marshal_viewerapp_BOOLEAN__STRING_POINTER_POINTER (GClosure     *closure,
 79                                                                         GValue       *return_value,
 80                                                                         guint         n_param_values,
 81                                                                         const GValue *param_values,
 82                                                                         gpointer      invocation_hint,
 83                                                                         gpointer      marshal_data);
 84void
 85dbus_glib_marshal_viewerapp_BOOLEAN__STRING_POINTER_POINTER (GClosure     *closure,
 86                                                             GValue       *return_value,
 87                                                             guint         n_param_values,
 88                                                             const GValue *param_values,
 89                                                             gpointer      invocation_hint,
 90                                                             gpointer      marshal_data)
 91{
 92  typedef gboolean (*GMarshalFunc_BOOLEAN__STRING_POINTER_POINTER) (gpointer     data1,
 93                                                                    gpointer     arg_1,
 94                                                                    gpointer     arg_2,
 95                                                                    gpointer     arg_3,
 96                                                                    gpointer     data2);
 97  register GMarshalFunc_BOOLEAN__STRING_POINTER_POINTER callback;
 98  register GCClosure *cc = (GCClosure*) closure;
 99  register gpointer data1, data2;
100  gboolean v_return;
101
102  g_return_if_fail (return_value != NULL);
103  g_return_if_fail (n_param_values == 4);
104
105  if (G_CCLOSURE_SWAP_DATA (closure))
106    {
107      data1 = closure->data;
108      data2 = g_value_peek_pointer (param_values + 0);
109    }
110  else
111    {
112      data1 = g_value_peek_pointer (param_values + 0);
113      data2 = closure->data;
114    }
115  callback = (GMarshalFunc_BOOLEAN__STRING_POINTER_POINTER) (marshal_data ? marshal_data : cc->callback);
116
117  v_return = callback (data1,
118                       g_marshal_value_peek_string (param_values + 1),
119                       g_marshal_value_peek_pointer (param_values + 2),
120                       g_marshal_value_peek_pointer (param_values + 3),
121                       data2);
122
123  g_value_set_boolean (return_value, v_return);
124}
125
126G_END_DECLS
127
128#endif /* __dbus_glib_marshal_viewerapp_MARSHAL_H__ */
129
130#include <dbus/dbus-glib.h>
131static const DBusGMethodInfo dbus_glib_viewerapp_methods[] = {
132  { (GCallback) viewer_app_api_GoSLURL, dbus_glib_marshal_viewerapp_BOOLEAN__STRING_POINTER_POINTER, 0 },
133};
134
135const DBusGObjectInfo dbus_glib_viewerapp_object_info = {
136  0,
137  dbus_glib_viewerapp_methods,
138  1,
139"com.secondlife.ViewerAppAPI\0GoSLURL\0S\0slurl\0I\0s\0success_ret\0O\0F\0N\0b\0\0\0",
140"\0",
141"\0"
142};
143