summaryrefslogtreecommitdiffstats
path: root/src/extension/dbus/wrapper
diff options
context:
space:
mode:
authorSoren Berg <glimmer07@gmail.com>2009-08-13 20:53:03 +0000
committerglimmer07 <glimmer07@users.sourceforge.net>2009-08-13 20:53:03 +0000
commitf49ab91f16c96e3e4ed84ea021b54946e7c08006 (patch)
tree50ff0e49b26317a76fd5eccb6dfadb3598965128 /src/extension/dbus/wrapper
parentAdded wrapper code. (diff)
downloadinkscape-f49ab91f16c96e3e4ed84ea021b54946e7c08006.tar.gz
inkscape-f49ab91f16c96e3e4ed84ea021b54946e7c08006.zip
Made wrapper functions non static.
Added lots of documentation. (bzr r8254.1.24)
Diffstat (limited to 'src/extension/dbus/wrapper')
-rw-r--r--src/extension/dbus/wrapper/Makefile8
-rw-r--r--src/extension/dbus/wrapper/inkscape-dbus-wrapper.c157
-rw-r--r--src/extension/dbus/wrapper/inkscape-dbus-wrapper.h161
3 files changed, 168 insertions, 158 deletions
diff --git a/src/extension/dbus/wrapper/Makefile b/src/extension/dbus/wrapper/Makefile
index d13aedfa8..692f4fa19 100644
--- a/src/extension/dbus/wrapper/Makefile
+++ b/src/extension/dbus/wrapper/Makefile
@@ -1,3 +1,9 @@
wrapper: #inkscape-dbus-wrapper.c inkscape-dbus-wrapper.h
- gcc -fPIC -c inkscape-dbus-wrapper.c $(shell pkg-config --cflags --libs glib-2.0 gobject-2.0 dbus-glib-1)
+ gcc -fPIC -c inkscape-dbus-wrapper.c $(shell pkg-config --cflags --libs glib-2.0 gobject-2.0 dbus-glib-1 dbus-1)
ld -shared -soname libinkdbus.so.1 -o libinkdbus.so.1.0 -lc inkscape-dbus-wrapper.o
+ ln -sf libinkdbus.so.1.0 libinkdbus.so
+ ln -sf libinkdbus.so.1.0 libinkdbus.so.1
+
+test: wrapper tester.c
+ gcc -Wall -L. tester.c -linkdbus -o test $(shell pkg-config --cflags --libs glib-2.0 gobject-2.0)
+
diff --git a/src/extension/dbus/wrapper/inkscape-dbus-wrapper.c b/src/extension/dbus/wrapper/inkscape-dbus-wrapper.c
index 77d010295..e6d2818a2 100644
--- a/src/extension/dbus/wrapper/inkscape-dbus-wrapper.c
+++ b/src/extension/dbus/wrapper/inkscape-dbus-wrapper.c
@@ -6,6 +6,8 @@
#include "../document-client-glue.h"
+#include <dbus/dbus-glib.h>
+#include <dbus/dbus.h>
// (static.*(\n[^}]*)*(async)+.*(\n[^}]*)*})|typedef void .*;
// http://www.josephkahn.com/music/index.xml
@@ -50,6 +52,11 @@ dbus_register_object (DBusGConnection *connection,
DOCUMENT INTERFACE CLASS STUFF
****************************************************************************/
+struct _DocumentInterface {
+ GObject parent;
+ DBusGProxy * proxy;
+};
+
G_DEFINE_TYPE(DocumentInterface, document_interface, G_TYPE_OBJECT)
static void
@@ -111,7 +118,7 @@ inkscape_desktop_init_dbus ()
}
-static
+//static
gboolean
inkscape_delete_all (DocumentInterface *doc, GError **error)
{
@@ -119,7 +126,7 @@ inkscape_delete_all (DocumentInterface *doc, GError **error)
return org_inkscape_document_delete_all (proxy, error);
}
-static
+//static
gboolean
inkscape_call_verb (DocumentInterface *doc, const char * IN_verbid, GError **error)
{
@@ -128,7 +135,7 @@ inkscape_call_verb (DocumentInterface *doc, const char * IN_verbid, GError **err
}
-static
+//static
gchar *
inkscape_rectangle (DocumentInterface *doc, const gint IN_x, const gint IN_y, const gint IN_width, const gint IN_height, GError **error)
{
@@ -138,7 +145,7 @@ inkscape_rectangle (DocumentInterface *doc, const gint IN_x, const gint IN_y, co
return OUT_object_name;
}
-static
+//static
char *
inkscape_ellipse (DocumentInterface *doc, const gint IN_x, const gint IN_y, const gint IN_width, const gint IN_height, GError **error)
{
@@ -148,7 +155,7 @@ inkscape_ellipse (DocumentInterface *doc, const gint IN_x, const gint IN_y, cons
return OUT_object_name;
}
-static
+//static
char *
inkscape_polygon (DocumentInterface *doc, const gint IN_cx, const gint IN_cy, const gint IN_radius, const gint IN_rotation, const gint IN_sides, GError **error)
{
@@ -158,7 +165,7 @@ inkscape_polygon (DocumentInterface *doc, const gint IN_cx, const gint IN_cy, co
return OUT_object_name;
}
-static
+//static
char *
inkscape_star (DocumentInterface *doc, const gint IN_cx, const gint IN_cy, const gint IN_r1, const gint IN_r2, const gdouble IN_arg1, const gdouble IN_arg2, const gint IN_sides, const gdouble IN_rounded, GError **error)
{
@@ -168,7 +175,7 @@ inkscape_star (DocumentInterface *doc, const gint IN_cx, const gint IN_cy, const
return OUT_object_name;
}
-static
+//static
char *
inkscape_spiral (DocumentInterface *doc, const gint IN_cx, const gint IN_cy, const gint IN_r, const gint IN_revolutions, GError **error)
{
@@ -178,7 +185,7 @@ inkscape_spiral (DocumentInterface *doc, const gint IN_cx, const gint IN_cy, con
return OUT_object_name;
}
-static
+//static
char *
inkscape_line (DocumentInterface *doc, const gint IN_x, const gint IN_y, const gint IN_x2, const gint IN_y2, GError **error)
{
@@ -188,7 +195,7 @@ inkscape_line (DocumentInterface *doc, const gint IN_x, const gint IN_y, const g
return OUT_object_name;
}
-static
+//static
gboolean
inkscape_text (DocumentInterface *doc, const gint IN_x, const gint IN_y, const char * IN_text, GError **error)
{
@@ -196,7 +203,7 @@ inkscape_text (DocumentInterface *doc, const gint IN_x, const gint IN_y, const c
return org_inkscape_document_text (proxy, IN_x, IN_y, IN_text, error);
}
-static
+//static
char *
inkscape_image (DocumentInterface *doc, const gint IN_x, const gint IN_y, const char * IN_text, GError **error)
{
@@ -206,7 +213,7 @@ inkscape_image (DocumentInterface *doc, const gint IN_x, const gint IN_y, const
return OUT_object_name;
}
-static
+//static
char *
inkscape_node (DocumentInterface *doc, const char * IN_svgtype, GError **error)
{
@@ -216,7 +223,7 @@ inkscape_node (DocumentInterface *doc, const char * IN_svgtype, GError **error)
return OUT_node_name;
}
-static
+//static
gdouble
inkscape_document_get_width (DocumentInterface *doc, GError **error)
{
@@ -226,7 +233,7 @@ inkscape_document_get_width (DocumentInterface *doc, GError **error)
return OUT_val;
}
-static
+//static
gdouble
inkscape_document_get_height (DocumentInterface *doc, GError **error)
{
@@ -236,7 +243,7 @@ inkscape_document_get_height (DocumentInterface *doc, GError **error)
return OUT_val;
}
-static
+//static
char *
inkscape_document_get_css (DocumentInterface *doc, GError **error)
{
@@ -246,7 +253,7 @@ inkscape_document_get_css (DocumentInterface *doc, GError **error)
return OUT_css;
}
-static
+//static
gboolean
inkscape_document_set_css (DocumentInterface *doc, const char * IN_stylestring, GError **error)
{
@@ -254,7 +261,7 @@ inkscape_document_set_css (DocumentInterface *doc, const char * IN_stylestring,
return org_inkscape_document_document_document_set_css (proxy, IN_stylestring, error);
}
-static
+//static
gboolean
inkscape_document_merge_css (DocumentInterface *doc, const char * IN_stylestring, GError **error)
{
@@ -262,7 +269,7 @@ inkscape_document_merge_css (DocumentInterface *doc, const char * IN_stylestring
return org_inkscape_document_document_document_merge_css (proxy, IN_stylestring, error);
}
-static
+//static
gboolean
inkscape_document_resize_to_fit_selection (DocumentInterface *doc, GError **error)
{
@@ -270,7 +277,7 @@ inkscape_document_resize_to_fit_selection (DocumentInterface *doc, GError **erro
return org_inkscape_document_document_document_resize_to_fit_selection (proxy, error);
}
-static
+//static
gboolean
inkscape_set_attribute (DocumentInterface *doc, const char * IN_shape, const char * IN_attribute, const char * IN_newval, GError **error)
{
@@ -278,7 +285,7 @@ inkscape_set_attribute (DocumentInterface *doc, const char * IN_shape, const cha
return org_inkscape_document_set_attribute (proxy, IN_shape, IN_attribute, IN_newval, error);
}
-static
+//static
gboolean
inkscape_set_int_attribute (DocumentInterface *doc, const char * IN_shape, const char * IN_attribute, const gint IN_newval, GError **error)
{
@@ -286,7 +293,7 @@ inkscape_set_int_attribute (DocumentInterface *doc, const char * IN_shape, const
return org_inkscape_document_set_int_attribute (proxy, IN_shape, IN_attribute, IN_newval, error);
}
-static
+//static
gboolean
inkscape_set_double_attribute (DocumentInterface *doc, const char * IN_shape, const char * IN_attribute, const gdouble IN_newval, GError **error)
{
@@ -294,7 +301,7 @@ inkscape_set_double_attribute (DocumentInterface *doc, const char * IN_shape, co
return org_inkscape_document_set_double_attribute (proxy, IN_shape, IN_attribute, IN_newval, error);
}
-static
+//static
char *
inkscape_get_attribute (DocumentInterface *doc, const char * IN_shape, const char * IN_attribute, GError **error)
{
@@ -304,7 +311,7 @@ inkscape_get_attribute (DocumentInterface *doc, const char * IN_shape, const cha
return OUT_val;
}
-static
+//static
gboolean
inkscape_move (DocumentInterface *doc, const char * IN_shape, const gdouble IN_x, const gdouble IN_y, GError **error)
{
@@ -312,7 +319,7 @@ inkscape_move (DocumentInterface *doc, const char * IN_shape, const gdouble IN_x
return org_inkscape_document_move (proxy, IN_shape, IN_x, IN_y, error);
}
-static
+//static
gboolean
inkscape_move_to (DocumentInterface *doc, const char * IN_shape, const gdouble IN_x, const gdouble IN_y, GError **error)
{
@@ -320,7 +327,7 @@ inkscape_move_to (DocumentInterface *doc, const char * IN_shape, const gdouble I
return org_inkscape_document_move_to (proxy, IN_shape, IN_x, IN_y, error);
}
-static
+//static
gboolean
inkscape_object_to_path (DocumentInterface *doc, const char * IN_objectname, GError **error)
{
@@ -328,7 +335,7 @@ inkscape_object_to_path (DocumentInterface *doc, const char * IN_objectname, GEr
return org_inkscape_document_object_to_path (proxy, IN_objectname, error);
}
-static
+//static
char *
inkscape_get_path (DocumentInterface *doc, const char * IN_shape, GError **error)
{
@@ -338,7 +345,7 @@ inkscape_get_path (DocumentInterface *doc, const char * IN_shape, GError **error
return OUT_val;
}
-static
+//static
gboolean
inkscape_transform (DocumentInterface *doc, const char * IN_shape, const char * IN_transformstr, GError **error)
{
@@ -346,7 +353,7 @@ inkscape_transform (DocumentInterface *doc, const char * IN_shape, const char *
return org_inkscape_document_transform (proxy, IN_shape, IN_transformstr, error);
}
-static
+//static
char *
inkscape_get_css (DocumentInterface *doc, const char * IN_shape, GError **error)
{
@@ -356,7 +363,7 @@ inkscape_get_css (DocumentInterface *doc, const char * IN_shape, GError **error)
return OUT_css;
}
-static
+//static
gboolean
inkscape_modify_css (DocumentInterface *doc, const char * IN_shape, const char * IN_cssattrib, const char * IN_newval, GError **error)
{
@@ -364,7 +371,7 @@ inkscape_modify_css (DocumentInterface *doc, const char * IN_shape, const char *
return org_inkscape_document_modify_css (proxy, IN_shape, IN_cssattrib, IN_newval, error);
}
-static
+//static
gboolean
inkscape_merge_css (DocumentInterface *doc, const char * IN_shape, const char * IN_stylestring, GError **error)
{
@@ -372,7 +379,7 @@ inkscape_merge_css (DocumentInterface *doc, const char * IN_shape, const char *
return org_inkscape_document_merge_css (proxy, IN_shape, IN_stylestring, error);
}
-static
+//static
gboolean
inkscape_set_color (DocumentInterface *doc, const char * IN_shape, const gint IN_red, const gint IN_green, const gint IN_blue, const gboolean IN_fill, GError **error)
{
@@ -380,7 +387,7 @@ inkscape_set_color (DocumentInterface *doc, const char * IN_shape, const gint IN
return org_inkscape_document_set_color (proxy, IN_shape, IN_red, IN_green, IN_blue, IN_fill, error);
}
-static
+//static
gboolean
inkscape_move_to_layer (DocumentInterface *doc, const char * IN_objectname, const char * IN_layername, GError **error)
{
@@ -388,7 +395,7 @@ inkscape_move_to_layer (DocumentInterface *doc, const char * IN_objectname, cons
return org_inkscape_document_move_to_layer (proxy, IN_objectname, IN_layername, error);
}
-static
+//static
GArray*
inkscape_get_node_coordinates (DocumentInterface *doc, const char * IN_shape, GError **error)
{
@@ -398,7 +405,7 @@ inkscape_get_node_coordinates (DocumentInterface *doc, const char * IN_shape, GE
return OUT_points;
}
-static
+//static
gboolean
inkscape_save (DocumentInterface *doc, GError **error)
{
@@ -406,7 +413,7 @@ inkscape_save (DocumentInterface *doc, GError **error)
return org_inkscape_document_save (proxy, error);
}
-static
+//static
gboolean
inkscape_save_as (DocumentInterface *doc, const char * IN_pathname, GError **error)
{
@@ -414,7 +421,7 @@ inkscape_save_as (DocumentInterface *doc, const char * IN_pathname, GError **err
return org_inkscape_document_save_as (proxy, IN_pathname, error);
}
-static
+//static
gboolean
inkscape_load (DocumentInterface *doc, const char * IN_pathname, GError **error)
{
@@ -422,7 +429,7 @@ inkscape_load (DocumentInterface *doc, const char * IN_pathname, GError **error)
return org_inkscape_document_load (proxy, IN_pathname, error);
}
-static
+//static
gboolean
inkscape_mark_as_unmodified (DocumentInterface *doc, GError **error)
{
@@ -430,7 +437,7 @@ inkscape_mark_as_unmodified (DocumentInterface *doc, GError **error)
return org_inkscape_document_mark_as_unmodified (proxy, error);
}
-static
+//static
gboolean
inkscape_close (DocumentInterface *doc, GError **error)
{
@@ -438,7 +445,7 @@ inkscape_close (DocumentInterface *doc, GError **error)
return org_inkscape_document_close (proxy, error);
}
-static
+//static
gboolean
inkscape_inkscape_exit (DocumentInterface *doc, GError **error)
{
@@ -446,7 +453,7 @@ inkscape_inkscape_exit (DocumentInterface *doc, GError **error)
return org_inkscape_document_exit (proxy, error);
}
-static
+//static
gboolean
inkscape_undo (DocumentInterface *doc, GError **error)
{
@@ -454,7 +461,7 @@ inkscape_undo (DocumentInterface *doc, GError **error)
return org_inkscape_document_undo (proxy, error);
}
-static
+//static
gboolean
inkscape_redo (DocumentInterface *doc, GError **error)
{
@@ -462,7 +469,7 @@ inkscape_redo (DocumentInterface *doc, GError **error)
return org_inkscape_document_redo (proxy, error);
}
-static
+//static
gboolean
inkscape_pause_updates (DocumentInterface *doc, GError **error)
{
@@ -470,7 +477,7 @@ inkscape_pause_updates (DocumentInterface *doc, GError **error)
return org_inkscape_document_pause_updates (proxy, error);
}
-static
+//static
gboolean
inkscape_resume_updates (DocumentInterface *doc, GError **error)
{
@@ -478,7 +485,7 @@ inkscape_resume_updates (DocumentInterface *doc, GError **error)
return org_inkscape_document_resume_updates (proxy, error);
}
-static
+//static
gboolean
inkscape_update (DocumentInterface *doc, GError **error)
{
@@ -486,7 +493,7 @@ inkscape_update (DocumentInterface *doc, GError **error)
return org_inkscape_document_update (proxy, error);
}
-static
+//static
char **
inkscape_selection_get (DocumentInterface *doc, GError **error)
{
@@ -496,7 +503,7 @@ inkscape_selection_get (DocumentInterface *doc, GError **error)
return OUT_listy;
}
-static
+//static
gboolean
inkscape_selection_add (DocumentInterface *doc, const char * IN_name, GError **error)
{
@@ -504,7 +511,7 @@ inkscape_selection_add (DocumentInterface *doc, const char * IN_name, GError **e
return org_inkscape_document_selection_add (proxy, IN_name, error);
}
-static
+//static
gboolean
inkscape_selection_add_list (DocumentInterface *doc, const char ** IN_name, GError **error)
{
@@ -512,7 +519,7 @@ inkscape_selection_add_list (DocumentInterface *doc, const char ** IN_name, GErr
return org_inkscape_document_selection_add_list (proxy, IN_name, error);
}
-static
+//static
gboolean
inkscape_selection_set (DocumentInterface *doc, const char * IN_name, GError **error)
{
@@ -520,7 +527,7 @@ inkscape_selection_set (DocumentInterface *doc, const char * IN_name, GError **e
return org_inkscape_document_selection_set (proxy, IN_name, error);
}
-static
+//static
gboolean
inkscape_selection_set_list (DocumentInterface *doc, const char ** IN_name, GError **error)
{
@@ -528,7 +535,7 @@ inkscape_selection_set_list (DocumentInterface *doc, const char ** IN_name, GErr
return org_inkscape_document_selection_set_list (proxy, IN_name, error);
}
-static
+//static
gboolean
inkscape_selection_rotate (DocumentInterface *doc, const gint IN_angle, GError **error)
{
@@ -536,7 +543,7 @@ inkscape_selection_rotate (DocumentInterface *doc, const gint IN_angle, GError *
return org_inkscape_document_selection_rotate (proxy, IN_angle, error);
}
-static
+//static
gboolean
inkscape_selection_delete (DocumentInterface *doc, GError **error)
{
@@ -544,7 +551,7 @@ inkscape_selection_delete (DocumentInterface *doc, GError **error)
return org_inkscape_document_selection_delete (proxy, error);
}
-static
+//static
gboolean
inkscape_selection_clear (DocumentInterface *doc, GError **error)
{
@@ -552,7 +559,7 @@ inkscape_selection_clear (DocumentInterface *doc, GError **error)
return org_inkscape_document_selection_clear (proxy, error);
}
-static
+//static
gboolean
inkscape_select_all (DocumentInterface *doc, GError **error)
{
@@ -560,7 +567,7 @@ inkscape_select_all (DocumentInterface *doc, GError **error)
return org_inkscape_document_select_all (proxy, error);
}
-static
+//static
gboolean
inkscape_select_all_in_all_layers (DocumentInterface *doc, GError **error)
{
@@ -568,7 +575,7 @@ inkscape_select_all_in_all_layers (DocumentInterface *doc, GError **error)
return org_inkscape_document_select_all_in_all_layers (proxy, error);
}
-static
+//static
gboolean
inkscape_selection_box (DocumentInterface *doc, const gint IN_x, const gint IN_y, const gint IN_x2, const gint IN_y2, const gboolean IN_replace, GError **error)
{
@@ -576,7 +583,7 @@ inkscape_selection_box (DocumentInterface *doc, const gint IN_x, const gint IN_y
return org_inkscape_document_selection_box (proxy, IN_x, IN_y, IN_x2, IN_y2, IN_replace, error);
}
-static
+//static
gboolean
inkscape_selection_invert (DocumentInterface *doc, GError **error)
{
@@ -584,7 +591,7 @@ inkscape_selection_invert (DocumentInterface *doc, GError **error)
return org_inkscape_document_selection_invert (proxy, error);
}
-static
+//static
gboolean
inkscape_selection_group (DocumentInterface *doc, GError **error)
{
@@ -592,7 +599,7 @@ inkscape_selection_group (DocumentInterface *doc, GError **error)
return org_inkscape_document_selection_group (proxy, error);
}
-static
+//static
gboolean
inkscape_selection_ungroup (DocumentInterface *doc, GError **error)
{
@@ -600,7 +607,7 @@ inkscape_selection_ungroup (DocumentInterface *doc, GError **error)
return org_inkscape_document_selection_ungroup (proxy, error);
}
-static
+//static
gboolean
inkscape_selection_cut (DocumentInterface *doc, GError **error)
{
@@ -608,7 +615,7 @@ inkscape_selection_cut (DocumentInterface *doc, GError **error)
return org_inkscape_document_selection_cut (proxy, error);
}
-static
+//static
gboolean
inkscape_selection_copy (DocumentInterface *doc, GError **error)
{
@@ -616,7 +623,7 @@ inkscape_selection_copy (DocumentInterface *doc, GError **error)
return org_inkscape_document_selection_copy (proxy, error);
}
-static
+//static
gboolean
inkscape_selection_paste (DocumentInterface *doc, GError **error)
{
@@ -624,7 +631,7 @@ inkscape_selection_paste (DocumentInterface *doc, GError **error)
return org_inkscape_document_selection_paste (proxy, error);
}
-static
+//static
gboolean
inkscape_selection_scale (DocumentInterface *doc, const gdouble IN_grow, GError **error)
{
@@ -632,7 +639,7 @@ inkscape_selection_scale (DocumentInterface *doc, const gdouble IN_grow, GError
return org_inkscape_document_selection_scale (proxy, IN_grow, error);
}
-static
+//static
gboolean
inkscape_selection_move (DocumentInterface *doc, const gdouble IN_x, const gdouble IN_y, GError **error)
{
@@ -640,7 +647,7 @@ inkscape_selection_move (DocumentInterface *doc, const gdouble IN_x, const gdoub
return org_inkscape_document_selection_move (proxy, IN_x, IN_y, error);
}
-static
+//static
gboolean
inkscape_selection_move_to (DocumentInterface *doc, const gdouble IN_x, const gdouble IN_y, GError **error)
{
@@ -648,7 +655,7 @@ inkscape_selection_move_to (DocumentInterface *doc, const gdouble IN_x, const gd
return org_inkscape_document_selection_move_to (proxy, IN_x, IN_y, error);
}
-static
+//static
gboolean
inkscape_selection_move_to_layer (DocumentInterface *doc, const char * IN_layer, GError **error)
{
@@ -656,7 +663,7 @@ inkscape_selection_move_to_layer (DocumentInterface *doc, const char * IN_layer,
return org_inkscape_document_selection_move_to_layer (proxy, IN_layer, error);
}
-static
+//static
GArray *
inkscape_selection_get_center (DocumentInterface *doc, GError **error)
{
@@ -666,7 +673,7 @@ inkscape_selection_get_center (DocumentInterface *doc, GError **error)
return OUT_centerpoint;
}
-static
+//static
gboolean
inkscape_selection_to_path (DocumentInterface *doc, GError **error)
{
@@ -674,7 +681,7 @@ inkscape_selection_to_path (DocumentInterface *doc, GError **error)
return org_inkscape_document_selection_to_path (proxy, error);
}
-static
+//static
char *
inkscape_selection_combine (DocumentInterface *doc, const char * IN_type, GError **error)
{
@@ -684,7 +691,7 @@ inkscape_selection_combine (DocumentInterface *doc, const char * IN_type, GError
return OUT_newpath;
}
-static
+//static
char **
inkscape_selection_divide (DocumentInterface *doc, GError **error)
{
@@ -694,7 +701,7 @@ inkscape_selection_divide (DocumentInterface *doc, GError **error)
return OUT_pieces;
}
-static
+//static
gboolean
inkscape_selection_change_level (DocumentInterface *doc, const char * IN_command, GError **error)
{
@@ -704,7 +711,7 @@ inkscape_selection_change_level (DocumentInterface *doc, const char * IN_command
return OUT_objectsmoved;
}
-static
+//static
char *
inkscape_layer_new (DocumentInterface *doc, GError **error)
{
@@ -714,7 +721,7 @@ inkscape_layer_new (DocumentInterface *doc, GError **error)
return OUT_layername;
}
-static
+//static
gboolean
inkscape_layer_set (DocumentInterface *doc, const char * IN_layer, GError **error)
{
@@ -722,7 +729,7 @@ inkscape_layer_set (DocumentInterface *doc, const char * IN_layer, GError **erro
return org_inkscape_document_layer_set (proxy, IN_layer, error);
}
-static
+//static
char **
inkscape_layer_get_all (DocumentInterface *doc, GError **error)
{
@@ -732,7 +739,7 @@ inkscape_layer_get_all (DocumentInterface *doc, GError **error)
return OUT_layers;
}
-static
+//static
gboolean
inkscape_layer_change_level (DocumentInterface *doc, const char * IN_command, GError **error)
{
@@ -742,7 +749,7 @@ inkscape_layer_change_level (DocumentInterface *doc, const char * IN_command, GE
return OUT_layermoved;
}
-static
+//static
gboolean
inkscape_layer_next (DocumentInterface *doc, GError **error)
{
@@ -750,7 +757,7 @@ inkscape_layer_next (DocumentInterface *doc, GError **error)
return org_inkscape_document_layer_next (proxy, error);
}
-static
+//static
gboolean
inkscape_layer_previous (DocumentInterface *doc, GError **error)
{
diff --git a/src/extension/dbus/wrapper/inkscape-dbus-wrapper.h b/src/extension/dbus/wrapper/inkscape-dbus-wrapper.h
index c48a712b4..c314bf6f8 100644
--- a/src/extension/dbus/wrapper/inkscape-dbus-wrapper.h
+++ b/src/extension/dbus/wrapper/inkscape-dbus-wrapper.h
@@ -4,8 +4,6 @@
#include <glib.h>
#include <glib-object.h>
-#include <dbus/dbus-glib.h>
-
//#include "document-client-glue-mod.h"
//#include <dbus/dbus-glib-bindings.h>
@@ -25,10 +23,7 @@ G_BEGIN_DECLS
typedef struct _DocumentInterface DocumentInterface;
typedef struct _DocumentInterfaceClass DocumentInterfaceClass;
-struct _DocumentInterface {
- GObject parent;
- DBusGProxy * proxy;
-};
+struct _DocumentInterface;
struct _DocumentInterfaceClass {
GObjectClass parent;
@@ -40,305 +35,307 @@ GType document_interface_get_type (void);
-DocumentInterface * inkscape_desktop_init_dbus ();
-static
+DocumentInterface *
+inkscape_desktop_init_dbus ();
+
+//static
gboolean
inkscape_delete_all (DocumentInterface *doc, GError **error);
-static
+//static
gboolean
inkscape_call_verb (DocumentInterface *doc, const char * IN_verbid, GError **error);
-static
+//static
gchar *
inkscape_rectangle (DocumentInterface *doc, const gint IN_x, const gint IN_y, const gint IN_width, const gint IN_height, GError **error);
-static
+//static
char *
inkscape_ellipse (DocumentInterface *doc, const gint IN_x, const gint IN_y, const gint IN_width, const gint IN_height, GError **error);
-static
+//static
char *
inkscape_polygon (DocumentInterface *doc, const gint IN_cx, const gint IN_cy, const gint IN_radius, const gint IN_rotation, const gint IN_sides, GError **error);
-static
+//static
char *
inkscape_star (DocumentInterface *doc, const gint IN_cx, const gint IN_cy, const gint IN_r1, const gint IN_r2, const gdouble IN_arg1, const gdouble IN_arg2, const gint IN_sides, const gdouble IN_rounded, GError **error);
-static
+//static
char *
inkscape_spiral (DocumentInterface *doc, const gint IN_cx, const gint IN_cy, const gint IN_r, const gint IN_revolutions, GError **error);
-static
+//static
char *
inkscape_line (DocumentInterface *doc, const gint IN_x, const gint IN_y, const gint IN_x2, const gint IN_y2, GError **error);
-static
+//static
gboolean
inkscape_text (DocumentInterface *doc, const gint IN_x, const gint IN_y, const char * IN_text, GError **error);
-static
+//static
char *
inkscape_image (DocumentInterface *doc, const gint IN_x, const gint IN_y, const char * IN_text, GError **error);
-static
+//static
char *
inkscape_node (DocumentInterface *doc, const char * IN_svgtype, GError **error);
-static
+//static
gdouble
inkscape_document_get_width (DocumentInterface *doc, GError **error);
-static
+//static
gdouble
inkscape_document_get_height (DocumentInterface *doc, GError **error);
-static
+//static
char *
inkscape_document_get_css (DocumentInterface *doc, GError **error);
-static
+//static
gboolean
inkscape_document_set_css (DocumentInterface *doc, const char * IN_stylestring, GError **error);
-static
+//static
gboolean
inkscape_document_merge_css (DocumentInterface *doc, const char * IN_stylestring, GError **error);
-static
+//static
gboolean
inkscape_document_resize_to_fit_selection (DocumentInterface *doc, GError **error);
-static
+//static
gboolean
inkscape_set_attribute (DocumentInterface *doc, const char * IN_shape, const char * IN_attribute, const char * IN_newval, GError **error);
-static
+//static
gboolean
inkscape_set_int_attribute (DocumentInterface *doc, const char * IN_shape, const char * IN_attribute, const gint IN_newval, GError **error);
-static
+//static
gboolean
inkscape_set_double_attribute (DocumentInterface *doc, const char * IN_shape, const char * IN_attribute, const gdouble IN_newval, GError **error);
-static
+//static
char *
inkscape_get_attribute (DocumentInterface *doc, const char * IN_shape, const char * IN_attribute, GError **error);
-static
+//static
gboolean
inkscape_move (DocumentInterface *doc, const char * IN_shape, const gdouble IN_x, const gdouble IN_y, GError **error);
-static
+//static
gboolean
inkscape_move_to (DocumentInterface *doc, const char * IN_shape, const gdouble IN_x, const gdouble IN_y, GError **error);
-static
+//static
gboolean
inkscape_object_to_path (DocumentInterface *doc, const char * IN_objectname, GError **error);
-static
+//static
char *
inkscape_get_path (DocumentInterface *doc, const char * IN_shape, GError **error);
-static
+//static
gboolean
inkscape_transform (DocumentInterface *doc, const char * IN_shape, const char * IN_transformstr, GError **error);
-static
+//static
char *
inkscape_get_css (DocumentInterface *doc, const char * IN_shape, GError **error);
-static
+//static
gboolean
inkscape_modify_css (DocumentInterface *doc, const char * IN_shape, const char * IN_cssattrib, const char * IN_newval, GError **error);
-static
+//static
gboolean
inkscape_inkscape_merge_css (DocumentInterface *doc, const char * IN_shape, const char * IN_stylestring, GError **error);
-static
+//static
gboolean
inkscape_set_color (DocumentInterface *doc, const char * IN_shape, const gint IN_red, const gint IN_green, const gint IN_blue, const gboolean IN_fill, GError **error);
-static
+//static
gboolean
inkscape_move_to_layer (DocumentInterface *doc, const char * IN_objectname, const char * IN_layername, GError **error);
-static
+//static
GArray*
inkscape_get_node_coordinates (DocumentInterface *doc, const char * IN_shape, GError **error);
-static
+//static
gboolean
inkscape_save (DocumentInterface *doc, GError **error);
-static
+//static
gboolean
inkscape_save_as (DocumentInterface *doc, const char * IN_pathname, GError **error);
-static
+//static
gboolean
inkscape_load (DocumentInterface *doc, const char * IN_pathname, GError **error);
-static
+//static
gboolean
inkscape_mark_as_unmodified (DocumentInterface *doc, GError **error);
-static
+//static
gboolean
inkscape_close (DocumentInterface *doc, GError **error);
-static
+//static
gboolean
inkscape_inkscape_exit (DocumentInterface *doc, GError **error);
-static
+//static
gboolean
inkscape_undo (DocumentInterface *doc, GError **error);
-static
+//static
gboolean
inkscape_redo (DocumentInterface *doc, GError **error);
-static
+//static
gboolean
inkscape_pause_updates (DocumentInterface *doc, GError **error);
-static
+//static
gboolean
inkscape_resume_updates (DocumentInterface *doc, GError **error);
-static
+//static
gboolean
inkscape_update (DocumentInterface *doc, GError **error);
-static
+//static
char **
inkscape_selection_get (DocumentInterface *doc, GError **error);
-static
+//static
gboolean
inkscape_selection_add (DocumentInterface *doc, const char * IN_name, GError **error);
-static
+//static
gboolean
inkscape_selection_add_list (DocumentInterface *doc, const char ** IN_name, GError **error);
-static
+//static
gboolean
inkscape_selection_set (DocumentInterface *doc, const char * IN_name, GError **error);
-static
+//static
gboolean
inkscape_selection_set_list (DocumentInterface *doc, const char ** IN_name, GError **error);
-static
+//static
gboolean
inkscape_selection_rotate (DocumentInterface *doc, const gint IN_angle, GError **error);
-static
+//static
gboolean
inkscape_selection_delete (DocumentInterface *doc, GError **error);
-static
+//static
gboolean
inkscape_selection_clear (DocumentInterface *doc, GError **error);
-static
+//static
gboolean
inkscape_select_all (DocumentInterface *doc, GError **error);
-static
+//static
gboolean
inkscape_select_all_in_all_layers (DocumentInterface *doc, GError **error);
-static
+//static
gboolean
inkscape_selection_box (DocumentInterface *doc, const gint IN_x, const gint IN_y, const gint IN_x2, const gint IN_y2, const gboolean IN_replace, GError **error);
-static
+//static
gboolean
inkscape_selection_invert (DocumentInterface *doc, GError **error);
-static
+//static
gboolean
inkscape_selection_group (DocumentInterface *doc, GError **error);
-static
+//static
gboolean
inkscape_selection_ungroup (DocumentInterface *doc, GError **error);
-static
+//static
gboolean
inkscape_selection_cut (DocumentInterface *doc, GError **error);
-static
+//static
gboolean
inkscape_selection_copy (DocumentInterface *doc, GError **error);
-static
+//static
gboolean
inkscape_selection_paste (DocumentInterface *doc, GError **error);
-static
+//static
gboolean
inkscape_selection_scale (DocumentInterface *doc, const gdouble IN_grow, GError **error);
-static
+//static
gboolean
inkscape_selection_move (DocumentInterface *doc, const gdouble IN_x, const gdouble IN_y, GError **error);
-static
+//static
gboolean
inkscape_selection_move_to (DocumentInterface *doc, const gdouble IN_x, const gdouble IN_y, GError **error);
-static
+//static
gboolean
inkscape_selection_move_to_layer (DocumentInterface *doc, const char * IN_layer, GError **error);
-static
+//static
GArray *
inkscape_selection_get_center (DocumentInterface *doc, GError **error);
-static
+//static
gboolean
inkscape_selection_to_path (DocumentInterface *doc, GError **error);
-static
+//static
char *
inkscape_selection_combine (DocumentInterface *doc, const char * IN_type, GError **error);
-static
+//static
char **
inkscape_selection_divide (DocumentInterface *doc, GError **error);
-static
+//static
gboolean
inkscape_selection_change_level (DocumentInterface *doc, const char * IN_command, GError **error);
-static
+//static
char *
inkscape_layer_new (DocumentInterface *doc, GError **error);
-static
+//static
gboolean
inkscape_layer_set (DocumentInterface *doc, const char * IN_layer, GError **error);
-static
+//static
char **
inkscape_layer_get_all (DocumentInterface *doc, GError **error);
-static
+//static
gboolean
inkscape_layer_change_level (DocumentInterface *doc, const char * IN_command, GError **error);
-static
+//static
gboolean
inkscape_layer_next (DocumentInterface *doc, GError **error);
-static
+//static
gboolean
inkscape_layer_previous (DocumentInterface *doc, GError **error);