vala.h | vala.h | |||
---|---|---|---|---|
#ifndef __VALA_H__ | #ifndef __VALA_H__ | |||
#define __VALA_H__ | #define __VALA_H__ | |||
#include <glib.h> | #include <glib.h> | |||
#include <glib-object.h> | #include <glib-object.h> | |||
#include <stdlib.h> | #include <stdlib.h> | |||
#include <string.h> | #include <string.h> | |||
#include <gee.h> | #include <gee.h> | |||
#include <float.h> | ||||
#include <math.h> | ||||
#include <valaccode.h> | #include <valaccode.h> | |||
G_BEGIN_DECLS | G_BEGIN_DECLS | |||
#define VALA_TYPE_CODE_NODE (vala_code_node_get_type ()) | #define VALA_TYPE_CODE_NODE (vala_code_node_get_type ()) | |||
#define VALA_CODE_NODE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), VALA_TYPE_C ODE_NODE, ValaCodeNode)) | #define VALA_CODE_NODE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), VALA_TYPE_C ODE_NODE, ValaCodeNode)) | |||
#define VALA_CODE_NODE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), VALA _TYPE_CODE_NODE, ValaCodeNodeClass)) | #define VALA_CODE_NODE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), VALA _TYPE_CODE_NODE, ValaCodeNodeClass)) | |||
#define VALA_IS_CODE_NODE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), VALA_TYP E_CODE_NODE)) | #define VALA_IS_CODE_NODE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), VALA_TYP E_CODE_NODE)) | |||
#define VALA_IS_CODE_NODE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), V ALA_TYPE_CODE_NODE)) | #define VALA_IS_CODE_NODE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), V ALA_TYPE_CODE_NODE)) | |||
#define VALA_CODE_NODE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), VA LA_TYPE_CODE_NODE, ValaCodeNodeClass)) | #define VALA_CODE_NODE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), VA LA_TYPE_CODE_NODE, ValaCodeNodeClass)) | |||
skipping to change at line 567 | skipping to change at line 569 | |||
#define VALA_TYPE_SOURCE_FILE (vala_source_file_get_type ()) | #define VALA_TYPE_SOURCE_FILE (vala_source_file_get_type ()) | |||
#define VALA_SOURCE_FILE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), VALA_TYPE _SOURCE_FILE, ValaSourceFile)) | #define VALA_SOURCE_FILE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), VALA_TYPE _SOURCE_FILE, ValaSourceFile)) | |||
#define VALA_SOURCE_FILE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), VA LA_TYPE_SOURCE_FILE, ValaSourceFileClass)) | #define VALA_SOURCE_FILE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), VA LA_TYPE_SOURCE_FILE, ValaSourceFileClass)) | |||
#define VALA_IS_SOURCE_FILE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), VALA_T YPE_SOURCE_FILE)) | #define VALA_IS_SOURCE_FILE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), VALA_T YPE_SOURCE_FILE)) | |||
#define VALA_IS_SOURCE_FILE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), VALA_TYPE_SOURCE_FILE)) | #define VALA_IS_SOURCE_FILE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), VALA_TYPE_SOURCE_FILE)) | |||
#define VALA_SOURCE_FILE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), VALA_TYPE_SOURCE_FILE, ValaSourceFileClass)) | #define VALA_SOURCE_FILE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), VALA_TYPE_SOURCE_FILE, ValaSourceFileClass)) | |||
typedef struct _ValaSourceFile ValaSourceFile; | typedef struct _ValaSourceFile ValaSourceFile; | |||
typedef struct _ValaSourceFileClass ValaSourceFileClass; | typedef struct _ValaSourceFileClass ValaSourceFileClass; | |||
#define VALA_TYPE_PROFILE (vala_profile_get_type ()) | ||||
#define VALA_TYPE_REPORT (vala_report_get_type ()) | #define VALA_TYPE_REPORT (vala_report_get_type ()) | |||
#define VALA_REPORT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), VALA_TYPE_REPO RT, ValaReport)) | #define VALA_REPORT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), VALA_TYPE_REPO RT, ValaReport)) | |||
#define VALA_REPORT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), VALA_TY PE_REPORT, ValaReportClass)) | #define VALA_REPORT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), VALA_TY PE_REPORT, ValaReportClass)) | |||
#define VALA_IS_REPORT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), VALA_TYPE_R EPORT)) | #define VALA_IS_REPORT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), VALA_TYPE_R EPORT)) | |||
#define VALA_IS_REPORT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), VALA _TYPE_REPORT)) | #define VALA_IS_REPORT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), VALA _TYPE_REPORT)) | |||
#define VALA_REPORT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), VALA_ TYPE_REPORT, ValaReportClass)) | #define VALA_REPORT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), VALA_ TYPE_REPORT, ValaReportClass)) | |||
typedef struct _ValaReport ValaReport; | typedef struct _ValaReport ValaReport; | |||
typedef struct _ValaReportClass ValaReportClass; | typedef struct _ValaReportClass ValaReportClass; | |||
skipping to change at line 1999 | skipping to change at line 2003 | |||
GTypeInstance parent_instance; | GTypeInstance parent_instance; | |||
volatile int ref_count; | volatile int ref_count; | |||
ValaCodeContextPrivate * priv; | ValaCodeContextPrivate * priv; | |||
}; | }; | |||
struct _ValaCodeContextClass { | struct _ValaCodeContextClass { | |||
GTypeClass parent_class; | GTypeClass parent_class; | |||
void (*finalize) (ValaCodeContext *self); | void (*finalize) (ValaCodeContext *self); | |||
}; | }; | |||
typedef enum { | ||||
VALA_PROFILE_POSIX, | ||||
VALA_PROFILE_GOBJECT | ||||
} ValaProfile; | ||||
/** | /** | |||
* Abstract code node visitor for traversing source code tree. | * Abstract code node visitor for traversing source code tree. | |||
*/ | */ | |||
struct _ValaCodeVisitor { | struct _ValaCodeVisitor { | |||
GTypeInstance parent_instance; | GTypeInstance parent_instance; | |||
volatile int ref_count; | volatile int ref_count; | |||
ValaCodeVisitorPrivate * priv; | ValaCodeVisitorPrivate * priv; | |||
}; | }; | |||
struct _ValaCodeVisitorClass { | struct _ValaCodeVisitorClass { | |||
skipping to change at line 3881 | skipping to change at line 3890 | |||
GeeList* vala_code_context_get_c_source_files (ValaCodeContext* self); | GeeList* vala_code_context_get_c_source_files (ValaCodeContext* self); | |||
void vala_code_context_add_source_file (ValaCodeContext* self, ValaSourceFi le* file); | void vala_code_context_add_source_file (ValaCodeContext* self, ValaSourceFi le* file); | |||
void vala_code_context_add_c_source_file (ValaCodeContext* self, const char * file); | void vala_code_context_add_c_source_file (ValaCodeContext* self, const char * file); | |||
GeeList* vala_code_context_get_packages (ValaCodeContext* self); | GeeList* vala_code_context_get_packages (ValaCodeContext* self); | |||
gboolean vala_code_context_has_package (ValaCodeContext* self, const char* pkg); | gboolean vala_code_context_has_package (ValaCodeContext* self, const char* pkg); | |||
void vala_code_context_add_package (ValaCodeContext* self, const char* pkg) ; | void vala_code_context_add_package (ValaCodeContext* self, const char* pkg) ; | |||
void vala_code_context_accept (ValaCodeContext* self, ValaCodeVisitor* visi tor); | void vala_code_context_accept (ValaCodeContext* self, ValaCodeVisitor* visi tor); | |||
void vala_code_context_add_define (ValaCodeContext* self, const char* defin e); | void vala_code_context_add_define (ValaCodeContext* self, const char* defin e); | |||
gboolean vala_code_context_is_defined (ValaCodeContext* self, const char* d efine); | gboolean vala_code_context_is_defined (ValaCodeContext* self, const char* d efine); | |||
char* vala_code_context_get_package_path (ValaCodeContext* self, const char * pkg, char** vapi_directories, int vapi_directories_length1); | char* vala_code_context_get_package_path (ValaCodeContext* self, const char * pkg, char** vapi_directories, int vapi_directories_length1); | |||
const char* vala_code_context_get_library (ValaCodeContext* self); | ||||
void vala_code_context_set_library (ValaCodeContext* self, const char* valu | ||||
e); | ||||
gboolean vala_code_context_get_memory_management (ValaCodeContext* self); | ||||
void vala_code_context_set_memory_management (ValaCodeContext* self, gboole | ||||
an value); | ||||
gboolean vala_code_context_get_assert (ValaCodeContext* self); | gboolean vala_code_context_get_assert (ValaCodeContext* self); | |||
void vala_code_context_set_assert (ValaCodeContext* self, gboolean value); | void vala_code_context_set_assert (ValaCodeContext* self, gboolean value); | |||
gboolean vala_code_context_get_checking (ValaCodeContext* self); | gboolean vala_code_context_get_checking (ValaCodeContext* self); | |||
void vala_code_context_set_checking (ValaCodeContext* self, gboolean value) ; | void vala_code_context_set_checking (ValaCodeContext* self, gboolean value) ; | |||
gboolean vala_code_context_get_deprecated (ValaCodeContext* self); | gboolean vala_code_context_get_deprecated (ValaCodeContext* self); | |||
void vala_code_context_set_deprecated (ValaCodeContext* self, gboolean valu e); | void vala_code_context_set_deprecated (ValaCodeContext* self, gboolean valu e); | |||
gboolean vala_code_context_get_experimental (ValaCodeContext* self); | gboolean vala_code_context_get_experimental (ValaCodeContext* self); | |||
void vala_code_context_set_experimental (ValaCodeContext* self, gboolean va lue); | void vala_code_context_set_experimental (ValaCodeContext* self, gboolean va lue); | |||
gboolean vala_code_context_get_non_null_experimental (ValaCodeContext* self ); | gboolean vala_code_context_get_non_null_experimental (ValaCodeContext* self ); | |||
void vala_code_context_set_non_null_experimental (ValaCodeContext* self, gb oolean value); | void vala_code_context_set_non_null_experimental (ValaCodeContext* self, gb oolean value); | |||
skipping to change at line 3921 | skipping to change at line 3926 | |||
gboolean vala_code_context_get_debug (ValaCodeContext* self); | gboolean vala_code_context_get_debug (ValaCodeContext* self); | |||
void vala_code_context_set_debug (ValaCodeContext* self, gboolean value); | void vala_code_context_set_debug (ValaCodeContext* self, gboolean value); | |||
gint vala_code_context_get_optlevel (ValaCodeContext* self); | gint vala_code_context_get_optlevel (ValaCodeContext* self); | |||
void vala_code_context_set_optlevel (ValaCodeContext* self, gint value); | void vala_code_context_set_optlevel (ValaCodeContext* self, gint value); | |||
gboolean vala_code_context_get_thread (ValaCodeContext* self); | gboolean vala_code_context_get_thread (ValaCodeContext* self); | |||
void vala_code_context_set_thread (ValaCodeContext* self, gboolean value); | void vala_code_context_set_thread (ValaCodeContext* self, gboolean value); | |||
ValaMethod* vala_code_context_get_module_init_method (ValaCodeContext* self ); | ValaMethod* vala_code_context_get_module_init_method (ValaCodeContext* self ); | |||
void vala_code_context_set_module_init_method (ValaCodeContext* self, ValaM ethod* value); | void vala_code_context_set_module_init_method (ValaCodeContext* self, ValaM ethod* value); | |||
gboolean vala_code_context_get_save_temps (ValaCodeContext* self); | gboolean vala_code_context_get_save_temps (ValaCodeContext* self); | |||
void vala_code_context_set_save_temps (ValaCodeContext* self, gboolean valu e); | void vala_code_context_set_save_temps (ValaCodeContext* self, gboolean valu e); | |||
GType vala_profile_get_type (void); | ||||
ValaProfile vala_code_context_get_profile (ValaCodeContext* self); | ||||
void vala_code_context_set_profile (ValaCodeContext* self, ValaProfile valu | ||||
e); | ||||
gint vala_code_context_get_target_glib_major (ValaCodeContext* self); | gint vala_code_context_get_target_glib_major (ValaCodeContext* self); | |||
void vala_code_context_set_target_glib_major (ValaCodeContext* self, gint v alue); | void vala_code_context_set_target_glib_major (ValaCodeContext* self, gint v alue); | |||
gint vala_code_context_get_target_glib_minor (ValaCodeContext* self); | gint vala_code_context_get_target_glib_minor (ValaCodeContext* self); | |||
void vala_code_context_set_target_glib_minor (ValaCodeContext* self, gint v alue); | void vala_code_context_set_target_glib_minor (ValaCodeContext* self, gint v alue); | |||
gboolean vala_code_context_get_verbose_mode (ValaCodeContext* self); | gboolean vala_code_context_get_verbose_mode (ValaCodeContext* self); | |||
void vala_code_context_set_verbose_mode (ValaCodeContext* self, gboolean va lue); | void vala_code_context_set_verbose_mode (ValaCodeContext* self, gboolean va lue); | |||
gboolean vala_code_context_get_save_csources (ValaCodeContext* self); | gboolean vala_code_context_get_save_csources (ValaCodeContext* self); | |||
GType vala_report_get_type (void); | GType vala_report_get_type (void); | |||
ValaReport* vala_code_context_get_report (ValaCodeContext* self); | ValaReport* vala_code_context_get_report (ValaCodeContext* self); | |||
void vala_code_context_set_report (ValaCodeContext* self, ValaReport* value ); | void vala_code_context_set_report (ValaCodeContext* self, ValaReport* value ); | |||
skipping to change at line 4979 | skipping to change at line 4987 | |||
gboolean vala_struct_is_disposable (ValaStruct* self); | gboolean vala_struct_is_disposable (ValaStruct* self); | |||
ValaDataType* vala_struct_get_base_type (ValaStruct* self); | ValaDataType* vala_struct_get_base_type (ValaStruct* self); | |||
void vala_struct_set_base_type (ValaStruct* self, ValaDataType* value); | void vala_struct_set_base_type (ValaStruct* self, ValaDataType* value); | |||
ValaStruct* vala_struct_get_base_struct (ValaStruct* self); | ValaStruct* vala_struct_get_base_struct (ValaStruct* self); | |||
ValaMethod* vala_struct_get_default_construction_method (ValaStruct* self); | ValaMethod* vala_struct_get_default_construction_method (ValaStruct* self); | |||
void vala_struct_set_default_construction_method (ValaStruct* self, ValaMet hod* value); | void vala_struct_set_default_construction_method (ValaStruct* self, ValaMet hod* value); | |||
gboolean vala_struct_get_use_const (ValaStruct* self); | gboolean vala_struct_get_use_const (ValaStruct* self); | |||
void vala_struct_set_use_const (ValaStruct* self, gboolean value); | void vala_struct_set_use_const (ValaStruct* self, gboolean value); | |||
gboolean vala_struct_get_has_type_id (ValaStruct* self); | gboolean vala_struct_get_has_type_id (ValaStruct* self); | |||
void vala_struct_set_has_type_id (ValaStruct* self, gboolean value); | void vala_struct_set_has_type_id (ValaStruct* self, gboolean value); | |||
gint vala_struct_get_width (ValaStruct* self); | ||||
void vala_struct_set_width (ValaStruct* self, gint value); | ||||
gboolean vala_struct_get_signed (ValaStruct* self); | ||||
void vala_struct_set_signed (ValaStruct* self, gboolean value); | ||||
GType vala_struct_value_type_get_type (void); | GType vala_struct_value_type_get_type (void); | |||
ValaStructValueType* vala_struct_value_type_new (ValaStruct* type_symbol); | ValaStructValueType* vala_struct_value_type_new (ValaStruct* type_symbol); | |||
ValaStructValueType* vala_struct_value_type_construct (GType object_type, V alaStruct* type_symbol); | ValaStructValueType* vala_struct_value_type_construct (GType object_type, V alaStruct* type_symbol); | |||
ValaSwitchLabel* vala_switch_label_new (ValaExpression* expr, ValaSourceRef erence* source); | ValaSwitchLabel* vala_switch_label_new (ValaExpression* expr, ValaSourceRef erence* source); | |||
ValaSwitchLabel* vala_switch_label_construct (GType object_type, ValaExpres sion* expr, ValaSourceReference* source); | ValaSwitchLabel* vala_switch_label_construct (GType object_type, ValaExpres sion* expr, ValaSourceReference* source); | |||
ValaSwitchLabel* vala_switch_label_new_with_default (ValaSourceReference* s ource); | ValaSwitchLabel* vala_switch_label_new_with_default (ValaSourceReference* s ource); | |||
ValaSwitchLabel* vala_switch_label_construct_with_default (GType object_typ e, ValaSourceReference* source); | ValaSwitchLabel* vala_switch_label_construct_with_default (GType object_typ e, ValaSourceReference* source); | |||
ValaExpression* vala_switch_label_get_expression (ValaSwitchLabel* self); | ValaExpression* vala_switch_label_get_expression (ValaSwitchLabel* self); | |||
void vala_switch_label_set_expression (ValaSwitchLabel* self, ValaExpressio n* value); | void vala_switch_label_set_expression (ValaSwitchLabel* self, ValaExpressio n* value); | |||
ValaSwitchSection* vala_switch_section_new (ValaSourceReference* source_ref erence); | ValaSwitchSection* vala_switch_section_new (ValaSourceReference* source_ref erence); | |||
End of changes. 6 change blocks. | ||||
6 lines changed or deleted | 17 lines changed or added | |||