1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
|
#ifndef INKSCAPE_EXTENSION_APPLICATION_INTERFACE_H_
#define INKSCAPE_EXTENSION_APPLICATION_INTERFACE_H_
#include <glib.h>
#include <dbus/dbus-glib.h>
#include <dbus/dbus-glib-bindings.h>
#include <dbus/dbus-glib-lowlevel.h>
#define DBUS_APPLICATION_INTERFACE_PATH "/org/inkscape/application"
#define TYPE_APPLICATION_INTERFACE (application_interface_get_type ())
#define APPLICATION_INTERFACE(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), TYPE_APPLICATION_INTERFACE, ApplicationInterface))
#define APPLICATION_INTERFACE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_APPLICATION_INTERFACE, ApplicationInterfaceClass))
#define IS_APPLICATION_INTERFACE(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), TYPE_APPLICATION_INTERFACE))
#define IS_APPLICATION_INTERFACE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_APPLICATION_INTERFACE))
#define APPLICATION_INTERFACE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_APPLICATION_INTERFACE, ApplicationInterfaceClass))
G_BEGIN_DECLS
typedef struct _ApplicationInterface ApplicationInterface;
typedef struct _ApplicationInterfaceClass ApplicationInterfaceClass;
struct _ApplicationInterface {
GObject parent;
};
struct _ApplicationInterfaceClass {
GObjectClass parent;
};
/****************************************************************************
DESKTOP FUNCTIONS
****************************************************************************/
gchar*
application_interface_desktop_new (ApplicationInterface *object,
GError **error);
gchar**
application_interface_get_desktop_list (ApplicationInterface *object);
gchar*
application_interface_get_active_desktop (ApplicationInterface *object,
GError **error);
gboolean
application_interface_set_active_desktop (ApplicationInterface *object,
gchar* document_name,
GError **error);
gboolean
application_interface_desktop_close_all (ApplicationInterface *object,
GError **error);
gboolean
application_interface_exit (ApplicationInterface *object, GError **error);
/****************************************************************************
DOCUMENT FUNCTIONS
****************************************************************************/
gchar*
application_interface_document_new (ApplicationInterface *object,
GError **error);
gchar**
application_interface_get_document_list (ApplicationInterface *object);
gboolean
application_interface_document_close_all (ApplicationInterface *object,
GError **error);
/****************************************************************************
SETUP
****************************************************************************/
ApplicationInterface *application_interface_new (void);
GType application_interface_get_type (void);
G_END_DECLS
#endif // INKSCAPE_EXTENSION_APPLICATION_INTERFACE_H_
|