~ubuntu-branches/ubuntu/vivid/vala/vivid

« back to all changes in this revision

Viewing changes to ccode/valaccodestruct.c

  • Committer: Bazaar Package Importer
  • Author(s): Sebastian Dröge
  • Date: 2010-07-28 07:58:01 UTC
  • mfrom: (1.5.5 upstream) (7.3.14 experimental)
  • Revision ID: james.westby@ubuntu.com-20100728075801-18u9cg5hv5oety6m
Tags: 0.9.4-1
New upstream development release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
209
209
}
210
210
 
211
211
 
 
212
/**
 
213
 * Adds the specified declaration as member to this struct.
 
214
 *
 
215
 * @param decl a variable declaration
 
216
 */
212
217
void vala_ccode_struct_add_declaration (ValaCCodeStruct* self, ValaCCodeDeclaration* decl) {
213
218
        g_return_if_fail (self != NULL);
214
219
        g_return_if_fail (decl != NULL);
216
221
}
217
222
 
218
223
 
 
224
/**
 
225
 * Adds a variable with the specified type and name to this struct.
 
226
 *
 
227
 * @param type_name field type
 
228
 * @param name      member name
 
229
 */
219
230
void vala_ccode_struct_add_field (ValaCCodeStruct* self, const char* type_name, const char* name, const char* declarator_suffix) {
220
231
        ValaCCodeDeclaration* decl;
221
232
        ValaCCodeVariableDeclarator* _tmp0_;
314
325
}
315
326
 
316
327
 
 
328
/**
 
329
 * Represents a struct declaration in the C code.
 
330
 */
317
331
GType vala_ccode_struct_get_type (void) {
318
332
        static volatile gsize vala_ccode_struct_type_id__volatile = 0;
319
333
        if (g_once_init_enter (&vala_ccode_struct_type_id__volatile)) {