~ubuntu-branches/ubuntu/intrepid/vala/intrepid

« back to all changes in this revision

Viewing changes to vapi/vala-1.0.vapi

  • Committer: Bazaar Package Importer
  • Author(s): Marc-Andre Lureau
  • Date: 2008-08-16 19:31:44 UTC
  • mfrom: (1.1.8 upstream)
  • Revision ID: james.westby@ubuntu.com-20080816193144-7ys42jwtvb5wbr06
Tags: 0.3.5-1
* New Upstream Version.
* Targetting experimental.

Show diffs side-by-side

added added

removed removed

Lines of Context:
127
127
                STATIC,
128
128
                REGISTER,
129
129
                EXTERN,
130
 
                INLINE
 
130
                INLINE,
 
131
                VOLATILE
131
132
        }
132
133
        [CCode (cprefix = "VALA_CCODE_UNARY_OPERATOR_", cheader_filename = "ccode/valaccodeunaryexpression.h")]
133
134
        public enum CCodeUnaryOperator {
600
601
        [CCode (cprefix = "ValaReport", lower_case_cprefix = "vala_report_")]
601
602
        namespace Report {
602
603
                [CCode (cheader_filename = "vala/valareport.h")]
603
 
                public int warnings;
604
 
                [CCode (cheader_filename = "vala/valareport.h")]
605
 
                public int errors;
606
 
                [CCode (cheader_filename = "vala/valareport.h")]
607
 
                public bool verbose_errors;
 
604
                public static int warnings;
 
605
                [CCode (cheader_filename = "vala/valareport.h")]
 
606
                public static int errors;
 
607
                [CCode (cheader_filename = "vala/valareport.h")]
 
608
                public static bool verbose_errors;
608
609
                [CCode (cheader_filename = "vala/valareport.h")]
609
610
                public static void set_verbose_errors (bool verbose);
610
611
                [CCode (cheader_filename = "vala/valareport.h")]
734
735
                INLINE,
735
736
                INTEGER_LITERAL,
736
737
                INTERFACE,
 
738
                INTERNAL,
737
739
                INTERR,
738
740
                IS,
739
741
                LAMBDA,
891
893
        }
892
894
        [CCode (cheader_filename = "vala/valablock.h")]
893
895
        public class Block : Vala.Symbol, Vala.Statement {
894
 
                public Block (Vala.SourceReference? source_reference = null);
 
896
                public Block (Vala.SourceReference source_reference);
895
897
                public void add_statement (Vala.Statement stmt);
896
898
                public Gee.List<Vala.Statement> get_statements ();
897
899
                public void add_local_variable (Vala.LocalVariable local);
965
967
                public bool is_static { get; set; }
966
968
                public bool is_compact { get; set; }
967
969
                public bool is_immutable { get; set; }
 
970
                public string? type_check_function { get; set; }
968
971
                public bool has_private_fields { get; set; }
969
972
                public Vala.Method default_construction_method { get; set; }
970
973
                public Vala.Constructor constructor { get; set; }
983
986
        }
984
987
        [CCode (cheader_filename = "vala/valacodecontext.h")]
985
988
        public class CodeContext : GLib.Object {
 
989
                public bool require_glib_version (int major, int minor);
986
990
                public CodeContext ();
987
991
                public Gee.List<Vala.SourceFile> get_source_files ();
988
992
                public Gee.List<string> get_c_source_files ();
1012
1016
                public bool thread { get; set; }
1013
1017
                public Vala.Method module_init_method { get; set; }
1014
1018
                public bool save_temps { get; set; }
 
1019
                public int target_glib_major { get; set; }
 
1020
                public int target_glib_minor { get; set; }
1015
1021
                public bool save_csources { get; }
1016
1022
                public bool save_cheaders { get; }
1017
1023
                public Vala.Namespace root { get; }
1223
1229
                public CreationMethod (string? type_name, string? name, Vala.SourceReference? source_reference = null);
1224
1230
                public string type_name { get; set; }
1225
1231
                public int n_construction_params { get; set; }
 
1232
                public string? custom_return_type_cname { get; set; }
1226
1233
        }
1227
1234
        [CCode (cheader_filename = "vala/valadatatype.h")]
1228
1235
        public abstract class DataType : Vala.CodeNode {
1355
1362
        }
1356
1363
        [CCode (cheader_filename = "vala/valaerrorcode.h")]
1357
1364
        public class ErrorCode : Vala.Symbol {
1358
 
                public ErrorCode (string name);
1359
 
                public ErrorCode.with_value (string name, Vala.Expression value);
 
1365
                public ErrorCode (string name, Vala.SourceReference? source_reference = null);
 
1366
                public ErrorCode.with_value (string name, Vala.Expression value, Vala.SourceReference? source_reference = null);
1360
1367
                public string get_cname ();
1361
1368
                public Vala.Expression value { get; set; }
1362
1369
        }
1437
1444
                public double cparameter_position { get; set; }
1438
1445
                public double carray_length_parameter_position { get; set; }
1439
1446
                public double cdelegate_target_parameter_position { get; set; }
 
1447
                public string? ctype { get; set; }
1440
1448
        }
1441
1449
        [CCode (cheader_filename = "vala/valaforstatement.h")]
1442
1450
        public class ForStatement : Vala.CodeNode, Vala.Statement {
1731
1739
        }
1732
1740
        [CCode (cheader_filename = "vala/valapropertyaccessor.h")]
1733
1741
        public class PropertyAccessor : Vala.CodeNode {
 
1742
                public string get_cname ();
1734
1743
                public PropertyAccessor (bool readable, bool writable, bool construction, Vala.Block? body, Vala.SourceReference? source_reference);
 
1744
                public void process_attributes ();
1735
1745
                public Vala.Property prop { get; set; }
1736
1746
                public bool readable { get; set; }
1737
1747
                public bool writable { get; set; }
1745
1755
        }
1746
1756
        [CCode (cheader_filename = "vala/valaproperty.h")]
1747
1757
        public class Property : Vala.Member, Vala.Lockable {
1748
 
                public Property (string name, Vala.DataType property_type, Vala.PropertyAccessor? get_accessor, Vala.PropertyAccessor? set_accessor, Vala.SourceReference source_reference);
 
1758
                public Property (string name, Vala.DataType property_type, Vala.PropertyAccessor? get_accessor, Vala.PropertyAccessor? set_accessor, Vala.SourceReference? source_reference = null);
1749
1759
                public string get_upper_case_cname ();
1750
1760
                public Vala.CCodeConstant get_canonical_cconstant ();
1751
1761
                public void process_attributes ();
1860
1870
                public Gee.List<string> get_source_internal_includes ();
1861
1871
                public Gee.List<weak Vala.SourceFile> get_header_internal_full_dependencies ();
1862
1872
                public Gee.List<weak Vala.SourceFile> get_header_internal_dependencies ();
 
1873
                public Gee.Set<Vala.Symbol> get_source_symbol_dependencies ();
1863
1874
                public string? get_source_line (int lineno);
1864
1875
                public char* get_mapped_contents ();
1865
1876
                public size_t get_mapped_length ();
2179
2190
                public Vala.CCodeFragment source_type_member_definition;
2180
2191
                public Vala.CCodeFragment class_init_fragment;
2181
2192
                public Vala.CCodeFragment instance_init_fragment;
2182
 
                public Vala.CCodeFragment instance_dispose_fragment;
 
2193
                public Vala.CCodeFragment instance_finalize_fragment;
2183
2194
                public Vala.CCodeFragment source_signal_marshaller_definition;
2184
2195
                public Vala.CCodeFragment module_init_fragment;
2185
2196
                public Vala.CCodeStruct instance_struct;
2253
2264
                public string get_delegate_target_destroy_notify_cname (string delegate_cname);
2254
2265
                public bool requires_copy (Vala.DataType type);
2255
2266
                public bool requires_destroy (Vala.DataType type);
 
2267
                public string get_type_check_function (Vala.TypeSymbol type);
2256
2268
                public Vala.CCodeExpression convert_from_generic_pointer (Vala.CCodeExpression cexpr, Vala.DataType actual_type);
2257
2269
                public Vala.CCodeExpression convert_to_generic_pointer (Vala.CCodeExpression cexpr, Vala.DataType actual_type);
2258
2270
                public Vala.CCodeExpression transform_expression (Vala.CCodeExpression source_cexpr, Vala.DataType? expression_type, Vala.DataType? target_type, Vala.Expression? expr = null);
2293
2305
        }
2294
2306
        [CCode (cheader_filename = "gobject/valaccodemethodbinding.h")]
2295
2307
        public class CCodeMethodBinding : Vala.CCodeBinding {
 
2308
                public string? get_custom_creturn_type ();
2296
2309
                public CCodeMethodBinding (Vala.CCodeGenerator codegen, Vala.Method method);
2297
2310
                public void generate_cparameters (Vala.Method m, Vala.DataType creturn_type, Gee.Map<int,Vala.CCodeFormalParameter> cparam_map, Vala.CCodeFunction func, Vala.CCodeFunctionDeclarator? vdeclarator = null);
2298
2311
                public Vala.Method method { get; set; }
2309
2322
        }
2310
2323
        [CCode (cheader_filename = "gobject/valaclassregisterfunction.h")]
2311
2324
        public class ClassRegisterFunction : Vala.TypeRegisterFunction {
2312
 
                public ClassRegisterFunction (Vala.Class cl);
 
2325
                public ClassRegisterFunction (Vala.Class cl, Vala.CCodeGenerator codegen);
2313
2326
                public Vala.Class class_reference { get; set; }
2314
2327
        }
2315
2328
        [CCode (cheader_filename = "gobject/valagidlwriter.h")]
2319
2332
        }
2320
2333
        [CCode (cheader_filename = "gobject/valainterfaceregisterfunction.h")]
2321
2334
        public class InterfaceRegisterFunction : Vala.TypeRegisterFunction {
2322
 
                public InterfaceRegisterFunction (Vala.Interface iface);
 
2335
                public InterfaceRegisterFunction (Vala.Interface iface, Vala.CCodeGenerator codegen);
2323
2336
                public Vala.Interface interface_reference { get; set; }
2324
2337
        }
2325
2338
        [CCode (cheader_filename = "gobject/valatyperegisterfunction.h")]
2338
2351
                public Vala.CCodeFragment get_declaration ();
2339
2352
                public Vala.CCodeFragment get_definition ();
2340
2353
                public abstract Vala.SymbolAccessibility get_accessibility ();
 
2354
                public Vala.CCodeGenerator codegen { get; set; }
2341
2355
        }
2342
2356
}