inkscape-dbus-wrapper.c revision b90b32f28f16528d780c21a8c59f8f44dca159fd
#include "inkscape-dbus-wrapper.h"
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include "../document-client-glue.h"
// (static.*(\n[^}]*)*(async)+.*(\n[^}]*)*})|typedef void .*;
/* PRIVATE get a connection to the session bus */
if (error) {
return NULL;
}
else
return connection;
}
/* PRIVATE create a proxy object for a bus.*/
return dbus_g_proxy_new_for_name (connection,
}
/* PRIVATE register an object on a bus */
static gpointer
const DBusGObjectInfo *info,
{
return object;
}
/****************************************************************************
DOCUMENT INTERFACE CLASS STUFF
****************************************************************************/
static void
{
}
static void
{
}
static void
{
}
document_interface_new (void)
{
}
{
g_type_init ();
&error);
if (connection == NULL)
{
g_printerr ("Failed to open connection to bus: %s\n",
exit (1);
}
"org.inkscape",
"org.inkscape.document");
return inkdesk;
}
static
{
}
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)
{
char * OUT_object_name;
return OUT_object_name;
}
static
char *
inkscape_ellipse (DocumentInterface *doc, const gint IN_x, const gint IN_y, const gint IN_width, const gint IN_height, GError **error)
{
char * OUT_object_name;
return OUT_object_name;
}
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)
{
char * OUT_object_name;
org_inkscape_document_polygon (proxy, IN_cx, IN_cy, IN_radius, IN_rotation, IN_sides, &OUT_object_name, error);
return OUT_object_name;
}
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)
{
char * OUT_object_name;
org_inkscape_document_star (proxy, IN_cx, IN_cy, IN_r1, IN_r2, IN_arg1, IN_arg2, IN_sides, IN_rounded, &OUT_object_name, error);
return OUT_object_name;
}
static
char *
inkscape_spiral (DocumentInterface *doc, const gint IN_cx, const gint IN_cy, const gint IN_r, const gint IN_revolutions, GError **error)
{
char * OUT_object_name;
return OUT_object_name;
}
static
char *
inkscape_line (DocumentInterface *doc, const gint IN_x, const gint IN_y, const gint IN_x2, const gint IN_y2, GError **error)
{
char * OUT_object_name;
return OUT_object_name;
}
static
inkscape_text (DocumentInterface *doc, const gint IN_x, const gint IN_y, const char * IN_text, GError **error)
{
}
static
char *
inkscape_image (DocumentInterface *doc, const gint IN_x, const gint IN_y, const char * IN_text, GError **error)
{
char * OUT_object_name;
return OUT_object_name;
}
static
char *
{
char *OUT_node_name;
return OUT_node_name;
}
static
{
return OUT_val;
}
static
{
return OUT_val;
}
static
char *
{
char * OUT_css;
return OUT_css;
}
static
{
}
static
{
}
static
{
}
static
inkscape_set_attribute (DocumentInterface *doc, const char * IN_shape, const char * IN_attribute, const char * IN_newval, GError **error)
{
}
static
inkscape_set_int_attribute (DocumentInterface *doc, const char * IN_shape, const char * IN_attribute, const gint IN_newval, GError **error)
{
}
static
inkscape_set_double_attribute (DocumentInterface *doc, const char * IN_shape, const char * IN_attribute, const gdouble IN_newval, GError **error)
{
return org_inkscape_document_set_double_attribute (proxy, IN_shape, IN_attribute, IN_newval, error);
}
static
char *
inkscape_get_attribute (DocumentInterface *doc, const char * IN_shape, const char * IN_attribute, GError **error)
{
char * OUT_val;
return OUT_val;
}
static
inkscape_move (DocumentInterface *doc, const char * IN_shape, const gdouble IN_x, const gdouble IN_y, GError **error)
{
}
static
inkscape_move_to (DocumentInterface *doc, const char * IN_shape, const gdouble IN_x, const gdouble IN_y, GError **error)
{
}
static
{
}
static
char *
{
char * OUT_val;
return OUT_val;
}
static
inkscape_transform (DocumentInterface *doc, const char * IN_shape, const char * IN_transformstr, GError **error)
{
}
static
char *
{
char * OUT_css;
return OUT_css;
}
static
inkscape_modify_css (DocumentInterface *doc, const char * IN_shape, const char * IN_cssattrib, const char * IN_newval, GError **error)
{
}
static
inkscape_merge_css (DocumentInterface *doc, const char * IN_shape, const char * IN_stylestring, GError **error)
{
}
static
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)
{
return org_inkscape_document_set_color (proxy, IN_shape, IN_red, IN_green, IN_blue, IN_fill, error);
}
static
inkscape_move_to_layer (DocumentInterface *doc, const char * IN_objectname, const char * IN_layername, GError **error)
{
}
static
{
return OUT_points;
}
static
{
}
static
{
}
static
{
}
static
{
}
static
{
}
static
{
}
static
{
}
static
{
}
static
{
}
static
{
}
static
{
}
static
char **
{
char ** OUT_listy;
return OUT_listy;
}
static
{
}
static
{
}
static
{
}
static
{
}
static
{
}
static
{
}
static
{
}
static
{
}
static
{
}
static
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
{
}
static
{
}
static
{
}
static
{
}
static
{
}
static
{
}
static
inkscape_selection_move (DocumentInterface *doc, const gdouble IN_x, const gdouble IN_y, GError **error)
{
}
static
inkscape_selection_move_to (DocumentInterface *doc, const gdouble IN_x, const gdouble IN_y, GError **error)
{
}
static
{
}
static
GArray *
{
return OUT_centerpoint;
}
static
{
}
static
char *
{
char * OUT_newpath;
return OUT_newpath;
}
static
char **
{
char ** OUT_pieces;
return OUT_pieces;
}
static
{
return OUT_objectsmoved;
}
static
char *
{
char * OUT_layername;
return OUT_layername;
}
static
{
}
static
char **
{
char ** OUT_layers;
return OUT_layers;
}
static
{
return OUT_layermoved;
}
static
{
}
static
{
}
/*
int
main (int argc, char** argv)
{
gchar * result;
GError *error = NULL;
DocumentInterface * doc = inkscape_desktop_init_dbus ();
result = rectangle (doc->proxy, 10, 10, 100, 100, &error);
printf("RESULT: %s\n", result);
//dbus_g_proxy_call(doc->proxy, "rectangle", &error, G_TYPE_INT, 100, G_TYPE_INT, 100, G_TYPE_INT, 100, G_TYPE_INT, 100, G_TYPE_INVALID, G_TYPE_INVALID);
printf("yes\n");
}
*/