PageRenderTime 26ms CodeModel.GetById 14ms RepoModel.GetById 0ms 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
Possible License(s): LGPL-2.1
  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. #ifndef __dbus_glib_marshal_viewerapp_MARSHAL_H__
  25. #define __dbus_glib_marshal_viewerapp_MARSHAL_H__
  26. #include <glib-object.h>
  27. G_BEGIN_DECLS
  28. #ifdef G_ENABLE_DEBUG
  29. #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v)
  30. #define g_marshal_value_peek_char(v) g_value_get_char (v)
  31. #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v)
  32. #define g_marshal_value_peek_int(v) g_value_get_int (v)
  33. #define g_marshal_value_peek_uint(v) g_value_get_uint (v)
  34. #define g_marshal_value_peek_long(v) g_value_get_long (v)
  35. #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v)
  36. #define g_marshal_value_peek_int64(v) g_value_get_int64 (v)
  37. #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v)
  38. #define g_marshal_value_peek_enum(v) g_value_get_enum (v)
  39. #define g_marshal_value_peek_flags(v) g_value_get_flags (v)
  40. #define g_marshal_value_peek_float(v) g_value_get_float (v)
  41. #define g_marshal_value_peek_double(v) g_value_get_double (v)
  42. #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v)
  43. #define g_marshal_value_peek_param(v) g_value_get_param (v)
  44. #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v)
  45. #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v)
  46. #define g_marshal_value_peek_object(v) g_value_get_object (v)
  47. #else /* !G_ENABLE_DEBUG */
  48. /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API.
  49. * Do not access GValues directly in your code. Instead, use the
  50. * g_value_get_*() functions
  51. */
  52. #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int
  53. #define g_marshal_value_peek_char(v) (v)->data[0].v_int
  54. #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint
  55. #define g_marshal_value_peek_int(v) (v)->data[0].v_int
  56. #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint
  57. #define g_marshal_value_peek_long(v) (v)->data[0].v_long
  58. #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong
  59. #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64
  60. #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64
  61. #define g_marshal_value_peek_enum(v) (v)->data[0].v_long
  62. #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong
  63. #define g_marshal_value_peek_float(v) (v)->data[0].v_float
  64. #define g_marshal_value_peek_double(v) (v)->data[0].v_double
  65. #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer
  66. #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer
  67. #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer
  68. #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer
  69. #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer
  70. #endif /* !G_ENABLE_DEBUG */
  71. /* BOOLEAN:STRING,POINTER,POINTER (/tmp/dbus-binding-tool-c-marshallers.5XXD8T:1) */
  72. extern void dbus_glib_marshal_viewerapp_BOOLEAN__STRING_POINTER_POINTER (GClosure *closure,
  73. GValue *return_value,
  74. guint n_param_values,
  75. const GValue *param_values,
  76. gpointer invocation_hint,
  77. gpointer marshal_data);
  78. void
  79. dbus_glib_marshal_viewerapp_BOOLEAN__STRING_POINTER_POINTER (GClosure *closure,
  80. GValue *return_value,
  81. guint n_param_values,
  82. const GValue *param_values,
  83. gpointer invocation_hint,
  84. gpointer marshal_data)
  85. {
  86. typedef gboolean (*GMarshalFunc_BOOLEAN__STRING_POINTER_POINTER) (gpointer data1,
  87. gpointer arg_1,
  88. gpointer arg_2,
  89. gpointer arg_3,
  90. gpointer data2);
  91. register GMarshalFunc_BOOLEAN__STRING_POINTER_POINTER callback;
  92. register GCClosure *cc = (GCClosure*) closure;
  93. register gpointer data1, data2;
  94. gboolean v_return;
  95. g_return_if_fail (return_value != NULL);
  96. g_return_if_fail (n_param_values == 4);
  97. if (G_CCLOSURE_SWAP_DATA (closure))
  98. {
  99. data1 = closure->data;
  100. data2 = g_value_peek_pointer (param_values + 0);
  101. }
  102. else
  103. {
  104. data1 = g_value_peek_pointer (param_values + 0);
  105. data2 = closure->data;
  106. }
  107. callback = (GMarshalFunc_BOOLEAN__STRING_POINTER_POINTER) (marshal_data ? marshal_data : cc->callback);
  108. v_return = callback (data1,
  109. g_marshal_value_peek_string (param_values + 1),
  110. g_marshal_value_peek_pointer (param_values + 2),
  111. g_marshal_value_peek_pointer (param_values + 3),
  112. data2);
  113. g_value_set_boolean (return_value, v_return);
  114. }
  115. G_END_DECLS
  116. #endif /* __dbus_glib_marshal_viewerapp_MARSHAL_H__ */
  117. #include <dbus/dbus-glib.h>
  118. static const DBusGMethodInfo dbus_glib_viewerapp_methods[] = {
  119. { (GCallback) viewer_app_api_GoSLURL, dbus_glib_marshal_viewerapp_BOOLEAN__STRING_POINTER_POINTER, 0 },
  120. };
  121. const DBusGObjectInfo dbus_glib_viewerapp_object_info = {
  122. 0,
  123. dbus_glib_viewerapp_methods,
  124. 1,
  125. "com.secondlife.ViewerAppAPI\0GoSLURL\0S\0slurl\0I\0s\0success_ret\0O\0F\0N\0b\0\0\0",
  126. "\0",
  127. "\0"
  128. };