~ubuntu-branches/ubuntu/maverick/vala/maverick

« back to all changes in this revision

Viewing changes to vala/valanamespace.c

  • Committer: Bazaar Package Importer
  • Author(s): Julien Lavergne
  • Date: 2010-02-13 17:59:22 UTC
  • mfrom: (7.3.7 sid)
  • Revision ID: james.westby@ubuntu.com-20100213175922-n8bq2xv2q1hihhqb
Tags: 0.7.10-1ubuntu1
* Sync with Debian unstable.
* Remaining changes :
 - debian/rules: Don't make unit test failures fatal to fix FTBFS. It was
   needed if vala need to enter main but it's not the case for now. 
   (See #374151)

Show diffs side-by-side

added added

removed removed

Lines of Context:
311
311
typedef struct _ValaVoidType ValaVoidType;
312
312
typedef struct _ValaVoidTypeClass ValaVoidTypeClass;
313
313
 
 
314
#define VALA_TYPE_SOURCE_FILE (vala_source_file_get_type ())
 
315
#define VALA_SOURCE_FILE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), VALA_TYPE_SOURCE_FILE, ValaSourceFile))
 
316
#define VALA_SOURCE_FILE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), VALA_TYPE_SOURCE_FILE, ValaSourceFileClass))
 
317
#define VALA_IS_SOURCE_FILE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), VALA_TYPE_SOURCE_FILE))
 
318
#define VALA_IS_SOURCE_FILE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), VALA_TYPE_SOURCE_FILE))
 
319
#define VALA_SOURCE_FILE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), VALA_TYPE_SOURCE_FILE, ValaSourceFileClass))
 
320
 
 
321
typedef struct _ValaSourceFile ValaSourceFile;
 
322
typedef struct _ValaSourceFileClass ValaSourceFileClass;
 
323
 
314
324
struct _ValaCodeNode {
315
325
        GTypeInstance parent_instance;
316
326
        volatile int ref_count;
514
524
void vala_namespace_add_cheader_filename (ValaNamespace* self, const char* cheader_filename);
515
525
gboolean vala_attribute_has_argument (ValaAttribute* self, const char* name);
516
526
char* vala_attribute_get_string (ValaAttribute* self, const char* name);
 
527
gpointer vala_source_file_ref (gpointer instance);
 
528
void vala_source_file_unref (gpointer instance);
 
529
GParamSpec* vala_param_spec_source_file (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
 
530
void vala_value_set_source_file (GValue* value, gpointer v_object);
 
531
gpointer vala_value_get_source_file (const GValue* value);
 
532
GType vala_source_file_get_type (void);
 
533
void vala_source_file_set_gir_namespace (ValaSourceFile* self, const char* value);
 
534
ValaSourceFile* vala_source_reference_get_file (ValaSourceReference* self);
 
535
void vala_source_file_set_gir_version (ValaSourceFile* self, const char* value);
517
536
static void vala_namespace_process_ccode_attribute (ValaNamespace* self, ValaAttribute* a);
518
537
const char* vala_attribute_get_name (ValaAttribute* self);
519
538
void vala_namespace_process_attributes (ValaNamespace* self);
1356
1375
                }
1357
1376
                _g_free0 (val);
1358
1377
        }
 
1378
        if (vala_attribute_has_argument (a, "gir_namespace")) {
 
1379
                char* _tmp3_;
 
1380
                vala_source_file_set_gir_namespace (vala_source_reference_get_file (vala_code_node_get_source_reference ((ValaCodeNode*) self)), _tmp3_ = vala_attribute_get_string (a, "gir_namespace"));
 
1381
                _g_free0 (_tmp3_);
 
1382
        }
 
1383
        if (vala_attribute_has_argument (a, "gir_version")) {
 
1384
                char* _tmp4_;
 
1385
                vala_source_file_set_gir_version (vala_source_reference_get_file (vala_code_node_get_source_reference ((ValaCodeNode*) self)), _tmp4_ = vala_attribute_get_string (a, "gir_version"));
 
1386
                _g_free0 (_tmp4_);
 
1387
        }
1359
1388
}
1360
1389
 
1361
1390