poppler 1.0.3 → 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,130 @@
1
+ /* -*- c-file-style: "ruby"; indent-tabs-mode: nil -*- */
2
+ /*
3
+ * Copyright (C) 2011 Ruby-GNOME2 Project Team
4
+ * Copyright (C) 2008 Ruby-GNOME2 Project Team
5
+ *
6
+ * This library is free software; you can redistribute it and/or
7
+ * modify it under the terms of the GNU Lesser General Public
8
+ * License as published by the Free Software Foundation; either
9
+ * version 2.1 of the License, or (at your option) any later version.
10
+ *
11
+ * This library is distributed in the hope that it will be useful,
12
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14
+ * Lesser General Public License for more details.
15
+ *
16
+ * You should have received a copy of the GNU Lesser General Public
17
+ * License along with this library; if not, write to the Free Software
18
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
19
+ * MA 02110-1301 USA
20
+ */
21
+
22
+ #include "rbpoppler-private.h"
23
+
24
+ #define RG_TARGET_NAMESPACE cAnnotation
25
+
26
+ static VALUE
27
+ rg_initialize(VALUE self, VALUE multiline, VALUE x1, VALUE y1,
28
+ VALUE x2, VALUE y2, VALUE x3, VALUE y3)
29
+ {
30
+ PopplerAnnotCalloutLine *line;
31
+
32
+ line = poppler_annot_callout_line_new();
33
+ line->multiline = RVAL2CBOOL(multiline);
34
+ line->x1 = NUM2DBL(x1);
35
+ line->y1 = NUM2DBL(y1);
36
+ line->x2 = NUM2DBL(x2);
37
+ line->y2 = NUM2DBL(y2);
38
+ line->x3 = NUM2DBL(x3);
39
+ line->y3 = NUM2DBL(y3);
40
+
41
+ G_INITIALIZE(self, line);
42
+ return Qnil;
43
+ }
44
+
45
+ DEF_ACCESSOR(annot_callout_line, multiline, RVAL2POPPLERANNOTCALLOUTLINE, CBOOL2RVAL, RVAL2CBOOL)
46
+ DEF_ACCESSOR(annot_callout_line, x1, RVAL2POPPLERANNOTCALLOUTLINE, rb_float_new, NUM2DBL)
47
+ DEF_ACCESSOR(annot_callout_line, y1, RVAL2POPPLERANNOTCALLOUTLINE, rb_float_new, NUM2DBL)
48
+ DEF_ACCESSOR(annot_callout_line, x2, RVAL2POPPLERANNOTCALLOUTLINE, rb_float_new, NUM2DBL)
49
+ DEF_ACCESSOR(annot_callout_line, y2, RVAL2POPPLERANNOTCALLOUTLINE, rb_float_new, NUM2DBL)
50
+ DEF_ACCESSOR(annot_callout_line, x3, RVAL2POPPLERANNOTCALLOUTLINE, rb_float_new, NUM2DBL)
51
+ DEF_ACCESSOR(annot_callout_line, y3, RVAL2POPPLERANNOTCALLOUTLINE, rb_float_new, NUM2DBL)
52
+
53
+ static VALUE
54
+ rg_to_a(VALUE self)
55
+ {
56
+ PopplerAnnotCalloutLine *line;
57
+
58
+ line = RVAL2POPPLERANNOTCALLOUTLINE(self);
59
+ return rb_ary_new3(7,
60
+ CBOOL2RVAL(line->multiline),
61
+ rb_float_new(line->x1),
62
+ rb_float_new(line->y1),
63
+ rb_float_new(line->x2),
64
+ rb_float_new(line->y2),
65
+ rb_float_new(line->x3),
66
+ rb_float_new(line->y3));
67
+ }
68
+
69
+ static VALUE
70
+ rg_inspect(VALUE self)
71
+ {
72
+ VALUE inspected;
73
+ gchar *info;
74
+ PopplerAnnotCalloutLine *line;
75
+
76
+ line = RVAL2POPPLERANNOTCALLOUTLINE(self);
77
+ inspected = rb_call_super(0, NULL);
78
+ rb_str_resize(inspected, RSTRING_LEN(inspected) - 1);
79
+ info = g_strdup_printf(": [%s, %g, %g, %g, %g, %g, %g]>",
80
+ line->multiline ? "true" : "false",
81
+ line->x1, line->y1,
82
+ line->x2, line->y2,
83
+ line->x3, line->y3);
84
+ rb_str_cat2(inspected, info);
85
+ g_free(info);
86
+ return inspected;
87
+ }
88
+
89
+ void
90
+ Init_poppler_annotationcalloutline(VALUE mPoppler)
91
+ {
92
+ VALUE RG_TARGET_NAMESPACE = G_DEF_CLASS(POPPLER_TYPE_ANNOT_CALLOUT_LINE,
93
+ "AnnotationCalloutLine", mPoppler);
94
+
95
+ RG_DEF_METHOD(initialize, 7);
96
+
97
+ rb_define_method(RG_TARGET_NAMESPACE, "multiline?",
98
+ annot_callout_line_get_multiline, 0);
99
+ rb_define_method(RG_TARGET_NAMESPACE, "set_multiline",
100
+ annot_callout_line_set_multiline, 1);
101
+ rb_define_method(RG_TARGET_NAMESPACE, "x1",
102
+ annot_callout_line_get_x1, 0);
103
+ rb_define_method(RG_TARGET_NAMESPACE, "set_x1",
104
+ annot_callout_line_set_x1, 1);
105
+ rb_define_method(RG_TARGET_NAMESPACE, "y1",
106
+ annot_callout_line_get_y1, 0);
107
+ rb_define_method(RG_TARGET_NAMESPACE, "set_y1",
108
+ annot_callout_line_set_y1, 1);
109
+ rb_define_method(RG_TARGET_NAMESPACE, "x2",
110
+ annot_callout_line_get_x2, 0);
111
+ rb_define_method(RG_TARGET_NAMESPACE, "set_x2",
112
+ annot_callout_line_set_x2, 2);
113
+ rb_define_method(RG_TARGET_NAMESPACE, "y2",
114
+ annot_callout_line_get_y2, 0);
115
+ rb_define_method(RG_TARGET_NAMESPACE, "set_y2",
116
+ annot_callout_line_set_y2, 2);
117
+ rb_define_method(RG_TARGET_NAMESPACE, "x3",
118
+ annot_callout_line_get_x3, 0);
119
+ rb_define_method(RG_TARGET_NAMESPACE, "set_x3",
120
+ annot_callout_line_set_x3, 3);
121
+ rb_define_method(RG_TARGET_NAMESPACE, "y3",
122
+ annot_callout_line_get_y3, 0);
123
+ rb_define_method(RG_TARGET_NAMESPACE, "set_y3",
124
+ annot_callout_line_set_y3, 3);
125
+
126
+ RG_DEF_METHOD(to_a, 0);
127
+ RG_DEF_METHOD(inspect, 0);
128
+
129
+ G_DEF_SETTERS(RG_TARGET_NAMESPACE);
130
+ }
@@ -0,0 +1,47 @@
1
+ /* -*- c-file-style: "ruby"; indent-tabs-mode: nil -*- */
2
+ /*
3
+ * Copyright (C) 2011 Ruby-GNOME2 Project Team
4
+ * Copyright (C) 2008 Ruby-GNOME2 Project Team
5
+ *
6
+ * This library is free software; you can redistribute it and/or
7
+ * modify it under the terms of the GNU Lesser General Public
8
+ * License as published by the Free Software Foundation; either
9
+ * version 2.1 of the License, or (at your option) any later version.
10
+ *
11
+ * This library is distributed in the hope that it will be useful,
12
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14
+ * Lesser General Public License for more details.
15
+ *
16
+ * You should have received a copy of the GNU Lesser General Public
17
+ * License along with this library; if not, write to the Free Software
18
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
19
+ * MA 02110-1301 USA
20
+ */
21
+
22
+ #include "rbpoppler-private.h"
23
+
24
+ #define RG_TARGET_NAMESPACE cAnnotationFreeText
25
+ #define SELF(self) (RVAL2POPPLERANNOTFREETEXT(self))
26
+
27
+ static VALUE
28
+ rg_quadding(VALUE self)
29
+ {
30
+ return POPPLERANNOTFREETEXTQUADDING2RVAL(poppler_annot_free_text_get_quadding(SELF(self)));
31
+ }
32
+
33
+ static VALUE
34
+ rg_callout_line(VALUE self)
35
+ {
36
+ return POPPLERANNOTCALLOUTLINE2RVAL(poppler_annot_free_text_get_callout_line(SELF(self)));
37
+ }
38
+
39
+ void
40
+ Init_poppler_annotationfreetext(VALUE mPoppler)
41
+ {
42
+ VALUE RG_TARGET_NAMESPACE = G_DEF_CLASS(POPPLER_TYPE_ANNOT_FREE_TEXT,
43
+ "AnnotationFreeText", mPoppler);
44
+
45
+ RG_DEF_METHOD(quadding, 0);
46
+ RG_DEF_METHOD(callout_line, 0);
47
+ }
@@ -0,0 +1,75 @@
1
+ /* -*- c-file-style: "ruby"; indent-tabs-mode: nil -*- */
2
+ /*
3
+ * Copyright (C) 2011 Ruby-GNOME2 Project Team
4
+ * Copyright (C) 2006-2008 Ruby-GNOME2 Project Team
5
+ *
6
+ * This library is free software; you can redistribute it and/or
7
+ * modify it under the terms of the GNU Lesser General Public
8
+ * License as published by the Free Software Foundation; either
9
+ * version 2.1 of the License, or (at your option) any later version.
10
+ *
11
+ * This library is distributed in the hope that it will be useful,
12
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14
+ * Lesser General Public License for more details.
15
+ *
16
+ * You should have received a copy of the GNU Lesser General Public
17
+ * License along with this library; if not, write to the Free Software
18
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
19
+ * MA 02110-1301 USA
20
+ */
21
+
22
+ #include "rbpoppler-private.h"
23
+
24
+ #define RG_TARGET_NAMESPACE cAnnotationMapping
25
+
26
+ static VALUE
27
+ rg_initialize(int argc, VALUE *argv, VALUE self)
28
+ {
29
+ VALUE area, annotation;
30
+ PopplerAnnotMapping *mapping;
31
+
32
+ rb_scan_args(argc, argv, "02", &area, &annotation);
33
+
34
+ mapping = poppler_annot_mapping_new();
35
+ mapping->area = *RVAL2POPPLERRECTANGLE(area);
36
+ mapping->annot = RVAL2POPPLERANNOT(annotation);
37
+ G_INITIALIZE(self, mapping);
38
+
39
+ return Qnil;
40
+ }
41
+
42
+ DEF_ACCESSOR_WITH_SETTER(annot_mapping, area,
43
+ RVAL2POPPLERANNOTMAPPING, RECT_ENTITY2RVAL, RECT_ENTITY_SET)
44
+ DEF_READER(annot_mapping, annotation, annot, RVAL2POPPLERANNOTMAPPING, POPPLERANNOT2RVAL)
45
+
46
+ static VALUE
47
+ rg_set_annotation(VALUE self, VALUE annotation)
48
+ {
49
+ PopplerAnnotMapping *mapping;
50
+
51
+ mapping = RVAL2POPPLERANNOTMAPPING(self);
52
+ if (mapping->annot)
53
+ g_object_unref(mapping->annot);
54
+
55
+ mapping->annot = RVAL2POPPLERANNOT(annotation);
56
+ return Qnil;
57
+ }
58
+
59
+ void
60
+ Init_poppler_annotationmapping(VALUE mPoppler)
61
+ {
62
+ VALUE RG_TARGET_NAMESPACE = G_DEF_CLASS(POPPLER_TYPE_ANNOT_MAPPING,
63
+ "AnnotationMapping", mPoppler);
64
+
65
+ RG_DEF_METHOD(initialize, -1);
66
+
67
+ rb_define_method(RG_TARGET_NAMESPACE, "area", annot_mapping_get_area, 0);
68
+ rb_define_method(RG_TARGET_NAMESPACE, "annotation",
69
+ annot_mapping_get_annotation, 0);
70
+
71
+ rb_define_method(RG_TARGET_NAMESPACE, "set_area", annot_mapping_set_area, 1);
72
+ RG_DEF_METHOD(set_annotation, 1);
73
+
74
+ G_DEF_SETTERS(RG_TARGET_NAMESPACE);
75
+ }
@@ -0,0 +1,97 @@
1
+ /* -*- c-file-style: "ruby"; indent-tabs-mode: nil -*- */
2
+ /*
3
+ * Copyright (C) 2011 Ruby-GNOME2 Project Team
4
+ * Copyright (C) 2008 Ruby-GNOME2 Project Team
5
+ *
6
+ * This library is free software; you can redistribute it and/or
7
+ * modify it under the terms of the GNU Lesser General Public
8
+ * License as published by the Free Software Foundation; either
9
+ * version 2.1 of the License, or (at your option) any later version.
10
+ *
11
+ * This library is distributed in the hope that it will be useful,
12
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14
+ * Lesser General Public License for more details.
15
+ *
16
+ * You should have received a copy of the GNU Lesser General Public
17
+ * License along with this library; if not, write to the Free Software
18
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
19
+ * MA 02110-1301 USA
20
+ */
21
+
22
+ #include "rbpoppler-private.h"
23
+
24
+ #define RG_TARGET_NAMESPACE cAnnotationMarkup
25
+ #define SELF(self) (RVAL2POPPLERANNOTMARKUP(self))
26
+
27
+ static ID id_new;
28
+ static VALUE rb_cDate;
29
+
30
+ static VALUE
31
+ rg_label(VALUE self)
32
+ {
33
+ return CSTR2RVAL_FREE(poppler_annot_markup_get_label(SELF(self)));
34
+ }
35
+
36
+ static VALUE
37
+ rg_popup_is_open_p(VALUE self)
38
+ {
39
+ return CBOOL2RVAL(poppler_annot_markup_get_popup_is_open(SELF(self)));
40
+ }
41
+
42
+ static VALUE
43
+ rg_opacity(VALUE self)
44
+ {
45
+ return rb_float_new(poppler_annot_markup_get_opacity(SELF(self)));
46
+ }
47
+
48
+ static VALUE
49
+ rg_date(VALUE self)
50
+ {
51
+ GDate *date;
52
+ VALUE rb_date;
53
+
54
+ date = poppler_annot_markup_get_date(SELF(self));
55
+ rb_date = rb_funcall(rb_cDate, id_new, 3,
56
+ UINT2NUM(g_date_get_year(date)),
57
+ UINT2NUM(g_date_get_month(date)),
58
+ UINT2NUM(g_date_get_day(date)));
59
+ g_date_free(date);
60
+ return rb_date;
61
+ }
62
+
63
+ static VALUE
64
+ rg_subject(VALUE self)
65
+ {
66
+ return CSTR2RVAL_FREE(poppler_annot_markup_get_subject(SELF(self)));
67
+ }
68
+
69
+ static VALUE
70
+ rg_reply_to(VALUE self)
71
+ {
72
+ return POPPLERANNOTMARKUPREPLYTYPE2RVAL(poppler_annot_markup_get_reply_to(SELF(self)));
73
+ }
74
+
75
+ static VALUE
76
+ rg_external_data(VALUE self)
77
+ {
78
+ return POPPLERANNOTEXTERNALDATATYPE2RVAL(poppler_annot_markup_get_external_data(SELF(self)));
79
+ }
80
+
81
+ void
82
+ Init_poppler_annotationmarkup(VALUE mPoppler)
83
+ {
84
+ id_new = rb_intern("new");
85
+ rb_cDate = rb_const_get(rb_cObject, rb_intern("Date"));
86
+
87
+ VALUE RG_TARGET_NAMESPACE = G_DEF_CLASS(POPPLER_TYPE_ANNOT_MARKUP,
88
+ "AnnotationMarkup", mPoppler);
89
+
90
+ RG_DEF_METHOD(label, 0);
91
+ RG_DEF_METHOD_P(popup_is_open, 0);
92
+ RG_DEF_METHOD(opacity, 0);
93
+ RG_DEF_METHOD(date, 0);
94
+ RG_DEF_METHOD(subject, 0);
95
+ RG_DEF_METHOD(reply_to, 0);
96
+ RG_DEF_METHOD(external_data, 0);
97
+ }
@@ -0,0 +1,58 @@
1
+ /* -*- c-file-style: "ruby"; indent-tabs-mode: nil -*- */
2
+ /*
3
+ * Copyright (C) 2011 Ruby-GNOME2 Project Team
4
+ * Copyright (C) 2008 Ruby-GNOME2 Project Team
5
+ *
6
+ * This library is free software; you can redistribute it and/or
7
+ * modify it under the terms of the GNU Lesser General Public
8
+ * License as published by the Free Software Foundation; either
9
+ * version 2.1 of the License, or (at your option) any later version.
10
+ *
11
+ * This library is distributed in the hope that it will be useful,
12
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14
+ * Lesser General Public License for more details.
15
+ *
16
+ * You should have received a copy of the GNU Lesser General Public
17
+ * License along with this library; if not, write to the Free Software
18
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
19
+ * MA 02110-1301 USA
20
+ */
21
+
22
+ #include "rbpoppler-private.h"
23
+
24
+ #define RG_TARGET_NAMESPACE cAnnotationText
25
+ #define SELF(self) (RVAL2POPPLERANNOTTEXT(self))
26
+
27
+ static VALUE
28
+ rg_open_p(VALUE self)
29
+ {
30
+ return CBOOL2RVAL(poppler_annot_text_get_is_open(SELF(self)));
31
+ }
32
+
33
+ static VALUE
34
+ rg_icon(VALUE self)
35
+ {
36
+ #if POPPLER_CHECK_VERSION(0, 9, 0)
37
+ return CSTR2RVAL_FREE(poppler_annot_text_get_icon(SELF(self)));
38
+ #else
39
+ return POPPLERANNOTTEXTICON2RVAL(poppler_annot_text_get_icon(SELF(self)));
40
+ #endif
41
+ }
42
+
43
+ static VALUE
44
+ rg_state(VALUE self)
45
+ {
46
+ return POPPLERANNOTTEXTSTATE2RVAL(poppler_annot_text_get_state(SELF(self)));
47
+ }
48
+
49
+ void
50
+ Init_poppler_annotationtext(VALUE mPoppler)
51
+ {
52
+ VALUE RG_TARGET_NAMESPACE = G_DEF_CLASS(POPPLER_TYPE_ANNOT_TEXT,
53
+ "AnnotationText", mPoppler);
54
+
55
+ RG_DEF_METHOD_P(open, 0);
56
+ RG_DEF_METHOD(icon, 0);
57
+ RG_DEF_METHOD(state, 0);
58
+ }
@@ -1,18 +1,28 @@
1
1
  /* -*- c-file-style: "ruby"; indent-tabs-mode: nil -*- */
2
- /**********************************************************************
3
-
4
- rbpoppler-attachment.c -
5
-
6
- $Author: ktou $
7
- $Date: 2007/10/13 05:53:10 $
8
-
9
- Copyright (C) 2006 Ruby-GNOME2 Project Team
10
-
11
- **********************************************************************/
12
-
13
- #include "rbpoppler.h"
14
-
15
- #define SELF(self) ((PopplerAttachment *)RVAL2GOBJ(self))
2
+ /*
3
+ * Copyright (C) 2011 Ruby-GNOME2 Project Team
4
+ * Copyright (C) 2006 Ruby-GNOME2 Project Team
5
+ *
6
+ * This library is free software; you can redistribute it and/or
7
+ * modify it under the terms of the GNU Lesser General Public
8
+ * License as published by the Free Software Foundation; either
9
+ * version 2.1 of the License, or (at your option) any later version.
10
+ *
11
+ * This library is distributed in the hope that it will be useful,
12
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14
+ * Lesser General Public License for more details.
15
+ *
16
+ * You should have received a copy of the GNU Lesser General Public
17
+ * License along with this library; if not, write to the Free Software
18
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
19
+ * MA 02110-1301 USA
20
+ */
21
+
22
+ #include "rbpoppler-private.h"
23
+
24
+ #define RG_TARGET_NAMESPACE cAttachment
25
+ #define SELF(self) (RVAL2POPPLERATTACHMENT(self))
16
26
 
17
27
  static ID id_call;
18
28
 
@@ -28,7 +38,7 @@ attachment_save_func(const gchar *buf, gsize count, gpointer data,
28
38
  }
29
39
 
30
40
  static VALUE
31
- attachment_save(int argc, VALUE *argv, VALUE self)
41
+ rg_save(int argc, VALUE *argv, VALUE self)
32
42
  {
33
43
  VALUE filename;
34
44
  gboolean result;
@@ -58,37 +68,37 @@ attachment_save(int argc, VALUE *argv, VALUE self)
58
68
  }
59
69
 
60
70
  static VALUE
61
- attachment_get_name(VALUE self)
71
+ rg_name(VALUE self)
62
72
  {
63
73
  return CSTR2RVAL(SELF(self)->name);
64
74
  }
65
75
 
66
76
  static VALUE
67
- attachment_get_description(VALUE self)
77
+ rg_description(VALUE self)
68
78
  {
69
79
  return CSTR2RVAL(SELF(self)->description);
70
80
  }
71
81
 
72
82
  static VALUE
73
- attachment_get_size(VALUE self)
83
+ rg_size(VALUE self)
74
84
  {
75
85
  return INT2NUM(SELF(self)->size);
76
86
  }
77
87
 
78
88
  static VALUE
79
- attachment_get_mtime(VALUE self)
89
+ rg_mtime(VALUE self)
80
90
  {
81
91
  return rb_time_new(SELF(self)->mtime, 0);
82
92
  }
83
93
 
84
94
  static VALUE
85
- attachment_get_ctime(VALUE self)
95
+ rg_ctime(VALUE self)
86
96
  {
87
97
  return rb_time_new(SELF(self)->ctime, 0);
88
98
  }
89
99
 
90
100
  static VALUE
91
- attachment_get_checksum(VALUE self)
101
+ rg_checksum(VALUE self)
92
102
  {
93
103
  GString *checksum;
94
104
  checksum = SELF(self)->checksum;
@@ -98,19 +108,19 @@ attachment_get_checksum(VALUE self)
98
108
  void
99
109
  Init_poppler_attachment(VALUE mPoppler)
100
110
  {
101
- VALUE cAttachment;
111
+ VALUE RG_TARGET_NAMESPACE;
102
112
 
103
113
  id_call = rb_intern("call");
104
114
 
105
- cAttachment = G_DEF_CLASS(POPPLER_TYPE_ATTACHMENT, "Attachment", mPoppler);
115
+ RG_TARGET_NAMESPACE = G_DEF_CLASS(POPPLER_TYPE_ATTACHMENT, "Attachment", mPoppler);
106
116
 
107
- rb_define_method(cAttachment, "save", attachment_save, -1);
108
- rb_define_method(cAttachment, "name", attachment_get_name, 0);
109
- rb_define_method(cAttachment, "description", attachment_get_description, 0);
110
- rb_define_method(cAttachment, "size", attachment_get_size, 0);
111
- rb_define_method(cAttachment, "mtime", attachment_get_mtime, 0);
112
- rb_define_method(cAttachment, "ctime", attachment_get_ctime, 0);
113
- rb_define_method(cAttachment, "checksum", attachment_get_checksum, 0);
117
+ RG_DEF_METHOD(save, -1);
118
+ RG_DEF_METHOD(name, 0);
119
+ RG_DEF_METHOD(description, 0);
120
+ RG_DEF_METHOD(size, 0);
121
+ RG_DEF_METHOD(mtime, 0);
122
+ RG_DEF_METHOD(ctime, 0);
123
+ RG_DEF_METHOD(checksum, 0);
114
124
 
115
- G_DEF_SETTERS(cAttachment);
125
+ G_DEF_SETTERS(RG_TARGET_NAMESPACE);
116
126
  }