From: Evan Nemerson Date: Tue, 23 Mar 2010 08:48:55 +0000 (-0700) Subject: Add libgda-report-4.0 bindings, based on patch by Shawn Ferris X-Git-Tag: 0.8.0~58 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=53f7a610d8872e6aa09c1586af659009e6758fc6;p=thirdparty%2Fvala.git Add libgda-report-4.0 bindings, based on patch by Shawn Ferris Fixes bug 604208. --- diff --git a/vapi/Makefile.am b/vapi/Makefile.am index 7b380f955..e833e8a9c 100644 --- a/vapi/Makefile.am +++ b/vapi/Makefile.am @@ -107,6 +107,8 @@ dist_vapi_DATA = \ libepc-1.0.vapi \ libftdi.deps \ libftdi.vapi \ + libgda-report-4.0.deps \ + libgda-report-4.0.vapi \ libgda-4.0.deps \ libgda-4.0.vapi \ libgdata.deps \ diff --git a/vapi/libgda-report-4.0.deps b/vapi/libgda-report-4.0.deps new file mode 100644 index 000000000..820381a1a --- /dev/null +++ b/vapi/libgda-report-4.0.deps @@ -0,0 +1 @@ +libgda-4.0 diff --git a/vapi/libgda-report-4.0.vapi b/vapi/libgda-report-4.0.vapi new file mode 100644 index 000000000..bb5739d39 --- /dev/null +++ b/vapi/libgda-report-4.0.vapi @@ -0,0 +1,51 @@ +/* libgda-report-4.0.vapi generated by vapigen, do not modify. */ + +[CCode (cprefix = "Gda", lower_case_cprefix = "gda_")] +namespace Gda { + [CCode (cheader_filename = "libgda-report/libgda-report.h")] + public class ReportDocbookDocument : Gda.ReportDocument { + [CCode (type = "GdaReportDocument*", has_construct_function = false)] + public ReportDocbookDocument (Gda.ReportEngine engine); + [NoAccessorMethod] + public string fo_stylesheet { owned get; set; } + [NoAccessorMethod] + public string fop_path { owned get; set; } + [NoAccessorMethod] + public string html_stylesheet { owned get; set; } + [NoAccessorMethod] + public string java_home { owned get; set; } + } + [CCode (cheader_filename = "libgda-report/libgda-report.h")] + public class ReportDocument : GLib.Object { + public virtual bool run_as_html (string filename) throws GLib.Error; + public virtual bool run_as_pdf (string filename) throws GLib.Error; + public void set_template (string file); + [NoAccessorMethod] + public Gda.ReportEngine engine { owned get; set; } + public string template { set; } + } + [CCode (cheader_filename = "libgda-report/libgda-report.h")] + public class ReportEngine : GLib.Object { + [CCode (has_construct_function = false)] + public ReportEngine (Xml.Node spec_node); + public void declare_object (GLib.Object object, string obj_name); + public unowned GLib.Object find_declared_object (GLib.Type obj_type, string obj_name); + [CCode (has_construct_function = false)] + public ReportEngine.from_file (string spec_file_name); + [CCode (has_construct_function = false)] + public ReportEngine.from_string (string spec_string); + public unowned Xml.Node run_as_doc () throws GLib.Error; + public unowned Xml.Node run_as_node () throws GLib.Error; + [NoAccessorMethod] + public void* spec { get; set; } + [NoAccessorMethod] + public string spec_filename { set; } + [NoAccessorMethod] + public string spec_string { set; } + } + [CCode (cheader_filename = "libgda-report/libgda-report.h")] + public class ReportRmlDocument : Gda.ReportDocument { + [CCode (type = "GdaReportDocument*", has_construct_function = false)] + public ReportRmlDocument (Gda.ReportEngine engine); + } +} diff --git a/vapi/packages/libgda-report-4.0/libgda-report-4.0.deps b/vapi/packages/libgda-report-4.0/libgda-report-4.0.deps new file mode 100644 index 000000000..820381a1a --- /dev/null +++ b/vapi/packages/libgda-report-4.0/libgda-report-4.0.deps @@ -0,0 +1 @@ +libgda-4.0 diff --git a/vapi/packages/libgda-report-4.0/libgda-report-4.0.files b/vapi/packages/libgda-report-4.0/libgda-report-4.0.files new file mode 100644 index 000000000..7aa7293bb --- /dev/null +++ b/vapi/packages/libgda-report-4.0/libgda-report-4.0.files @@ -0,0 +1,2 @@ +include/libgda-4.0/libgda-report/ +lib/libgda-report-4.0.so diff --git a/vapi/packages/libgda-report-4.0/libgda-report-4.0.gi b/vapi/packages/libgda-report-4.0/libgda-report-4.0.gi new file mode 100644 index 000000000..e6bcc34d5 --- /dev/null +++ b/vapi/packages/libgda-report-4.0/libgda-report-4.0.gi @@ -0,0 +1,121 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/vapi/packages/libgda-report-4.0/libgda-report-4.0.metadata b/vapi/packages/libgda-report-4.0/libgda-report-4.0.metadata new file mode 100644 index 000000000..8b5745ee8 --- /dev/null +++ b/vapi/packages/libgda-report-4.0/libgda-report-4.0.metadata @@ -0,0 +1,3 @@ +Gda cheader_filename="libgda-report/libgda-report.h" +xmlNodePtr name="Node" namespace="Xml" +xmlDocPtr name="Node" namespace="Xml" diff --git a/vapi/packages/libgda-report-4.0/libgda-report-4.0.namespace b/vapi/packages/libgda-report-4.0/libgda-report-4.0.namespace new file mode 100644 index 000000000..d3f9076b5 --- /dev/null +++ b/vapi/packages/libgda-report-4.0/libgda-report-4.0.namespace @@ -0,0 +1 @@ +Gda