~ubuntu-branches/ubuntu/trusty/gnome-python/trusty

« back to all changes in this revision

Viewing changes to bonobo/bonobo.defs

  • Committer: Bazaar Package Importer
  • Author(s): Sebastien Bacher
  • Date: 2005-12-02 12:30:09 UTC
  • Revision ID: james.westby@ubuntu.com-20051202123009-z00n5h4uuwfo64ev
Tags: upstream-2.12.2
ImportĀ upstreamĀ versionĀ 2.12.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
;; -*- scheme -*-
 
2
 
 
3
(include "bonobo-types.defs")
 
4
 
 
5
;; From /home/james/cvs/gnome2/libbonobo/bonobo/bonobo-arg.h
 
6
 
 
7
(define-function arg_new_from
 
8
  (c-name "bonobo_arg_new_from")
 
9
  (return-type "BonoboArg*")
 
10
  (caller-owns-return #f)
 
11
  (parameters
 
12
    '("BonoboArgType" "t")
 
13
    '("gconstpointer" "data")
 
14
  )
 
15
)
 
16
 
 
17
(define-method release
 
18
  (of-object "BonoboArg")
 
19
  (c-name "bonobo_arg_release")
 
20
  (return-type "none")
 
21
)
 
22
 
 
23
(define-method copy
 
24
  (of-object "BonoboArg")
 
25
  (c-name "bonobo_arg_copy")
 
26
  (return-type "BonoboArg*")
 
27
)
 
28
 
 
29
(define-method from_gvalue
 
30
  (of-object "BonoboArg")
 
31
  (c-name "bonobo_arg_from_gvalue")
 
32
  (return-type "none")
 
33
  (parameters
 
34
    '("const-GValue*" "value")
 
35
  )
 
36
)
 
37
 
 
38
(define-function arg_type_from_gtype
 
39
  (c-name "bonobo_arg_type_from_gtype")
 
40
  (return-type "BonoboArgType")
 
41
  (parameters
 
42
    '("GType" "t")
 
43
  )
 
44
)
 
45
 
 
46
(define-function arg_to_gvalue
 
47
  (c-name "bonobo_arg_to_gvalue")
 
48
  (return-type "none")
 
49
  (parameters
 
50
    '("GValue*" "value")
 
51
    '("const-BonoboArg*" "arg")
 
52
  )
 
53
)
 
54
 
 
55
(define-method to_gtype
 
56
  (of-object "BonoboArgType")
 
57
  (c-name "bonobo_arg_type_to_gtype")
 
58
  (return-type "GType")
 
59
)
 
60
 
 
61
(define-method is_equal
 
62
  (of-object "BonoboArg")
 
63
  (c-name "bonobo_arg_is_equal")
 
64
  (return-type "gboolean")
 
65
  (parameters
 
66
    '("const-BonoboArg*" "b")
 
67
    '("CORBA_Environment*" "opt_ev")
 
68
  )
 
69
)
 
70
 
 
71
(define-method is_equal
 
72
  (of-object "BonoboArgType")
 
73
  (c-name "bonobo_arg_type_is_equal")
 
74
  (return-type "gboolean")
 
75
  (parameters
 
76
    '("BonoboArgType" "b")
 
77
    '("CORBA_Environment*" "opt_ev")
 
78
  )
 
79
)
 
80
 
 
81
 
 
82
 
 
83
;; From /home/james/cvs/gnome2/libbonobo/bonobo/bonobo-config-database.h
 
84
 
 
85
(define-function config_get_string_with_default
 
86
  (c-name "bonobo_config_get_string_with_default")
 
87
  (return-type "gchar*")
 
88
  (parameters
 
89
    '("Bonobo_ConfigDatabase" "db")
 
90
    '("const-char*" "key")
 
91
    '("gchar*" "defval")
 
92
    '("gboolean*" "def")
 
93
  )
 
94
)
 
95
 
 
96
(define-function config_get_short
 
97
  (c-name "bonobo_config_get_short")
 
98
  (return-type "gint16")
 
99
  (parameters
 
100
    '("Bonobo_ConfigDatabase" "db")
 
101
    '("const-char*" "key")
 
102
    '("CORBA_Environment*" "opt_ev")
 
103
  )
 
104
)
 
105
 
 
106
(define-function config_get_short_with_default
 
107
  (c-name "bonobo_config_get_short_with_default")
 
108
  (return-type "gint16")
 
109
  (parameters
 
110
    '("Bonobo_ConfigDatabase" "db")
 
111
    '("const-char*" "key")
 
112
    '("gint16" "defval")
 
113
    '("gboolean*" "def")
 
114
  )
 
115
)
 
116
 
 
117
(define-function config_get_ushort
 
118
  (c-name "bonobo_config_get_ushort")
 
119
  (return-type "guint16")
 
120
  (parameters
 
121
    '("Bonobo_ConfigDatabase" "db")
 
122
    '("const-char*" "key")
 
123
    '("CORBA_Environment*" "opt_ev")
 
124
  )
 
125
)
 
126
 
 
127
(define-function config_get_ushort_with_default
 
128
  (c-name "bonobo_config_get_ushort_with_default")
 
129
  (return-type "guint16")
 
130
  (parameters
 
131
    '("Bonobo_ConfigDatabase" "db")
 
132
    '("const-char*" "key")
 
133
    '("guint16" "defval")
 
134
    '("gboolean*" "def")
 
135
  )
 
136
)
 
137
 
 
138
(define-function config_get_long
 
139
  (c-name "bonobo_config_get_long")
 
140
  (return-type "gint32")
 
141
  (parameters
 
142
    '("Bonobo_ConfigDatabase" "db")
 
143
    '("const-char*" "key")
 
144
    '("CORBA_Environment*" "opt_ev")
 
145
  )
 
146
)
 
147
 
 
148
(define-function config_get_long_with_default
 
149
  (c-name "bonobo_config_get_long_with_default")
 
150
  (return-type "gint32")
 
151
  (parameters
 
152
    '("Bonobo_ConfigDatabase" "db")
 
153
    '("const-char*" "key")
 
154
    '("gint32" "defval")
 
155
    '("gboolean*" "def")
 
156
  )
 
157
)
 
158
 
 
159
(define-function config_get_ulong
 
160
  (c-name "bonobo_config_get_ulong")
 
161
  (return-type "guint32")
 
162
  (parameters
 
163
    '("Bonobo_ConfigDatabase" "db")
 
164
    '("const-char*" "key")
 
165
    '("CORBA_Environment*" "opt_ev")
 
166
  )
 
167
)
 
168
 
 
169
(define-function config_get_ulong_with_default
 
170
  (c-name "bonobo_config_get_ulong_with_default")
 
171
  (return-type "guint32")
 
172
  (parameters
 
173
    '("Bonobo_ConfigDatabase" "db")
 
174
    '("const-char*" "key")
 
175
    '("guint32" "defval")
 
176
    '("gboolean*" "def")
 
177
  )
 
178
)
 
179
 
 
180
(define-function config_get_float
 
181
  (c-name "bonobo_config_get_float")
 
182
  (return-type "gfloat")
 
183
  (parameters
 
184
    '("Bonobo_ConfigDatabase" "db")
 
185
    '("const-char*" "key")
 
186
    '("CORBA_Environment*" "opt_ev")
 
187
  )
 
188
)
 
189
 
 
190
(define-function config_get_float_with_default
 
191
  (c-name "bonobo_config_get_float_with_default")
 
192
  (return-type "gfloat")
 
193
  (parameters
 
194
    '("Bonobo_ConfigDatabase" "db")
 
195
    '("const-char*" "key")
 
196
    '("gfloat" "defval")
 
197
    '("gboolean*" "def")
 
198
  )
 
199
)
 
200
 
 
201
(define-function config_get_double
 
202
  (c-name "bonobo_config_get_double")
 
203
  (return-type "gdouble")
 
204
  (parameters
 
205
    '("Bonobo_ConfigDatabase" "db")
 
206
    '("const-char*" "key")
 
207
    '("CORBA_Environment*" "opt_ev")
 
208
  )
 
209
)
 
210
 
 
211
(define-function config_get_double_with_default
 
212
  (c-name "bonobo_config_get_double_with_default")
 
213
  (return-type "gdouble")
 
214
  (parameters
 
215
    '("Bonobo_ConfigDatabase" "db")
 
216
    '("const-char*" "key")
 
217
    '("gdouble" "defval")
 
218
    '("gboolean*" "def")
 
219
  )
 
220
)
 
221
 
 
222
(define-function config_get_boolean
 
223
  (c-name "bonobo_config_get_boolean")
 
224
  (return-type "gboolean")
 
225
  (parameters
 
226
    '("Bonobo_ConfigDatabase" "db")
 
227
    '("const-char*" "key")
 
228
    '("CORBA_Environment*" "opt_ev")
 
229
  )
 
230
)
 
231
 
 
232
(define-function config_get_boolean_with_default
 
233
  (c-name "bonobo_config_get_boolean_with_default")
 
234
  (return-type "gboolean")
 
235
  (parameters
 
236
    '("Bonobo_ConfigDatabase" "db")
 
237
    '("const-char*" "key")
 
238
    '("gboolean" "defval")
 
239
    '("gboolean*" "def")
 
240
  )
 
241
)
 
242
 
 
243
(define-function config_get_char
 
244
  (c-name "bonobo_config_get_char")
 
245
  (return-type "gchar")
 
246
  (parameters
 
247
    '("Bonobo_ConfigDatabase" "db")
 
248
    '("const-char*" "key")
 
249
    '("CORBA_Environment*" "opt_ev")
 
250
  )
 
251
)
 
252
 
 
253
(define-function config_get_char_with_default
 
254
  (c-name "bonobo_config_get_char_with_default")
 
255
  (return-type "gchar")
 
256
  (parameters
 
257
    '("Bonobo_ConfigDatabase" "db")
 
258
    '("const-char*" "key")
 
259
    '("gchar" "defval")
 
260
    '("gboolean*" "def")
 
261
  )
 
262
)
 
263
 
 
264
(define-function config_get_value
 
265
  (c-name "bonobo_config_get_value")
 
266
  (return-type "CORBA_any*")
 
267
  (parameters
 
268
    '("Bonobo_ConfigDatabase" "db")
 
269
    '("const-char*" "key")
 
270
    '("CORBA_TypeCode" "opt_tc")
 
271
    '("CORBA_Environment*" "opt_ev")
 
272
  )
 
273
)
 
274
 
 
275
(define-function config_set_string
 
276
  (c-name "bonobo_config_set_string")
 
277
  (return-type "none")
 
278
  (parameters
 
279
    '("Bonobo_ConfigDatabase" "db")
 
280
    '("const-char*" "key")
 
281
    '("const-char*" "value")
 
282
    '("CORBA_Environment*" "opt_ev")
 
283
  )
 
284
)
 
285
 
 
286
(define-function config_set_short
 
287
  (c-name "bonobo_config_set_short")
 
288
  (return-type "none")
 
289
  (parameters
 
290
    '("Bonobo_ConfigDatabase" "db")
 
291
    '("const-char*" "key")
 
292
    '("gint16" "value")
 
293
    '("CORBA_Environment*" "opt_ev")
 
294
  )
 
295
)
 
296
 
 
297
(define-function config_set_ushort
 
298
  (c-name "bonobo_config_set_ushort")
 
299
  (return-type "none")
 
300
  (parameters
 
301
    '("Bonobo_ConfigDatabase" "db")
 
302
    '("const-char*" "key")
 
303
    '("guint16" "value")
 
304
    '("CORBA_Environment*" "opt_ev")
 
305
  )
 
306
)
 
307
 
 
308
(define-function config_set_long
 
309
  (c-name "bonobo_config_set_long")
 
310
  (return-type "none")
 
311
  (parameters
 
312
    '("Bonobo_ConfigDatabase" "db")
 
313
    '("const-char*" "key")
 
314
    '("gint32" "value")
 
315
    '("CORBA_Environment*" "opt_ev")
 
316
  )
 
317
)
 
318
 
 
319
(define-function config_set_ulong
 
320
  (c-name "bonobo_config_set_ulong")
 
321
  (return-type "none")
 
322
  (parameters
 
323
    '("Bonobo_ConfigDatabase" "db")
 
324
    '("const-char*" "key")
 
325
    '("guint32" "value")
 
326
    '("CORBA_Environment*" "opt_ev")
 
327
  )
 
328
)
 
329
 
 
330
(define-function config_set_float
 
331
  (c-name "bonobo_config_set_float")
 
332
  (return-type "none")
 
333
  (parameters
 
334
    '("Bonobo_ConfigDatabase" "db")
 
335
    '("const-char*" "key")
 
336
    '("gfloat" "value")
 
337
    '("CORBA_Environment*" "opt_ev")
 
338
  )
 
339
)
 
340
 
 
341
(define-function config_set_double
 
342
  (c-name "bonobo_config_set_double")
 
343
  (return-type "none")
 
344
  (parameters
 
345
    '("Bonobo_ConfigDatabase" "db")
 
346
    '("const-char*" "key")
 
347
    '("gdouble" "value")
 
348
    '("CORBA_Environment*" "opt_ev")
 
349
  )
 
350
)
 
351
 
 
352
(define-function config_set_boolean
 
353
  (c-name "bonobo_config_set_boolean")
 
354
  (return-type "none")
 
355
  (parameters
 
356
    '("Bonobo_ConfigDatabase" "db")
 
357
    '("const-char*" "key")
 
358
    '("gboolean" "value")
 
359
    '("CORBA_Environment*" "opt_ev")
 
360
  )
 
361
)
 
362
 
 
363
(define-function config_set_char
 
364
  (c-name "bonobo_config_set_char")
 
365
  (return-type "none")
 
366
  (parameters
 
367
    '("Bonobo_ConfigDatabase" "db")
 
368
    '("const-char*" "key")
 
369
    '("gchar" "value")
 
370
    '("CORBA_Environment*" "opt_ev")
 
371
  )
 
372
)
 
373
 
 
374
(define-function config_set_value
 
375
  (c-name "bonobo_config_set_value")
 
376
  (return-type "none")
 
377
  (parameters
 
378
    '("Bonobo_ConfigDatabase" "db")
 
379
    '("const-char*" "key")
 
380
    '("CORBA_any*" "value")
 
381
    '("CORBA_Environment*" "opt_ev")
 
382
  )
 
383
)
 
384
 
 
385
 
 
386
 
 
387
;; From /home/james/cvs/gnome2/libbonobo/bonobo/bonobo-context.h
 
388
 
 
389
(define-function context_add
 
390
  (c-name "bonobo_context_add")
 
391
  (return-type "none")
 
392
  (parameters
 
393
    '("const-CORBA_char*" "context_name")
 
394
    '("Bonobo_Unknown" "context")
 
395
  )
 
396
)
 
397
 
 
398
(define-function context_running_get
 
399
  (c-name "bonobo_context_running_get")
 
400
  (return-type "BonoboObject*")
 
401
)
 
402
 
 
403
(define-function running_context_auto_exit_unref
 
404
  (c-name "bonobo_running_context_auto_exit_unref")
 
405
  (return-type "none")
 
406
  (parameters
 
407
    '("BonoboObject*" "object")
 
408
  )
 
409
)
 
410
 
 
411
 
 
412
 
 
413
;; From /home/james/cvs/gnome2/libbonobo/bonobo/bonobo-event-source.h
 
414
 
 
415
(define-function event_source_get_type
 
416
  (c-name "bonobo_event_source_get_type")
 
417
  (return-type "GType")
 
418
)
 
419
 
 
420
(define-function event_source_new
 
421
  (c-name "bonobo_event_source_new")
 
422
  (is-constructor-of BonoboEventSource)
 
423
  (return-type "BonoboEventSource*")
 
424
  (caller-owns-return #f)
 
425
)
 
426
 
 
427
(define-method notify_listeners
 
428
  (of-object "BonoboEventSource")
 
429
  (c-name "bonobo_event_source_notify_listeners")
 
430
  (return-type "none")
 
431
  (parameters
 
432
    '("const-char*" "event_name")
 
433
    '("const-CORBA_any*" "opt_value")
 
434
    '("CORBA_Environment*" "opt_ev")
 
435
  )
 
436
)
 
437
 
 
438
(define-method notify_listeners_full
 
439
  (of-object "BonoboEventSource")
 
440
  (c-name "bonobo_event_source_notify_listeners_full")
 
441
  (return-type "none")
 
442
  (parameters
 
443
    '("const-char*" "path")
 
444
    '("const-char*" "type")
 
445
    '("const-char*" "subtype")
 
446
    '("const-CORBA_any*" "opt_value")
 
447
    '("CORBA_Environment*" "opt_ev")
 
448
  )
 
449
)
 
450
 
 
451
(define-function event_source_client_remove_listener
 
452
  (c-name "bonobo_event_source_client_remove_listener")
 
453
  (return-type "none")
 
454
  (parameters
 
455
    '("Bonobo_Unknown" "object")
 
456
    '("Bonobo_Listener" "listener")
 
457
    '("CORBA_Environment*" "opt_ev")
 
458
  )
 
459
)
 
460
 
 
461
(define-function event_source_client_add_listener
 
462
  (c-name "bonobo_event_source_client_add_listener")
 
463
  (return-type "none")
 
464
  (parameters
 
465
    '("Bonobo_Unknown" "object")
 
466
    '("BonoboListenerCallbackFn" "event_callback")
 
467
    '("const-char*" "opt_mask")
 
468
    '("CORBA_Environment*" "opt_ev")
 
469
    '("gpointer" "user_data")
 
470
  )
 
471
)
 
472
 
 
473
(define-function event_source_client_add_listener_closure
 
474
  (c-name "bonobo_event_source_client_add_listener_closure")
 
475
  (return-type "none")
 
476
  (parameters
 
477
    '("Bonobo_Unknown" "object")
 
478
    '("GClosure*" "callback")
 
479
    '("const-char*" "opt_mask")
 
480
    '("CORBA_Environment*" "opt_ev")
 
481
  )
 
482
)
 
483
 
 
484
(define-function event_source_client_add_listener_full
 
485
  (c-name "bonobo_event_source_client_add_listener_full")
 
486
  (return-type "Bonobo_Listener")
 
487
  (caller-owns-return #f)
 
488
  (parameters
 
489
    '("Bonobo_Unknown" "object")
 
490
    '("GClosure*" "callback")
 
491
    '("const-char*" "opt_mask")
 
492
    '("CORBA_Environment*" "opt_ev")
 
493
  )
 
494
)
 
495
 
 
496
(define-method ignore_listeners
 
497
  (of-object "BonoboEventSource")
 
498
  (c-name "bonobo_event_source_ignore_listeners")
 
499
  (return-type "none")
 
500
)
 
501
 
 
502
 
 
503
 
 
504
;; From /home/james/cvs/gnome2/libbonobo/bonobo/bonobo-exception.h
 
505
 
 
506
(define-function exception_repoid_to_text
 
507
  (c-name "bonobo_exception_repoid_to_text")
 
508
  (return-type "char*")
 
509
  (parameters
 
510
    '("const-char*" "repo_id")
 
511
  )
 
512
)
 
513
 
 
514
(define-function exception_add_handler_str
 
515
  (c-name "bonobo_exception_add_handler_str")
 
516
  (return-type "none")
 
517
  (parameters
 
518
    '("const-char*" "repo_id")
 
519
    '("const-char*" "str")
 
520
  )
 
521
)
 
522
 
 
523
(define-function exception_add_handler_fn
 
524
  (c-name "bonobo_exception_add_handler_fn")
 
525
  (return-type "none")
 
526
  (parameters
 
527
    '("const-char*" "repo_id")
 
528
    '("BonoboExceptionFn" "fn")
 
529
    '("gpointer" "user_data")
 
530
    '("GDestroyNotify" "destroy_fn")
 
531
  )
 
532
)
 
533
 
 
534
(define-function exception_general_error_set
 
535
  (c-name "bonobo_exception_general_error_set")
 
536
  (return-type "none")
 
537
  (parameters
 
538
    '("CORBA_Environment*" "ev")
 
539
    '("CORBA_TypeCode" "opt_deriv")
 
540
    '("const-char*" "format")
 
541
  )
 
542
  (varargs #t)
 
543
)
 
544
 
 
545
(define-function exception_general_error_get
 
546
  (c-name "bonobo_exception_general_error_get")
 
547
  (return-type "const-char*")
 
548
  (parameters
 
549
    '("CORBA_Environment*" "ev")
 
550
  )
 
551
)
 
552
 
 
553
 
 
554
 
 
555
;; From /home/james/cvs/gnome2/libbonobo/bonobo/bonobo-generic-factory.h
 
556
 
 
557
(define-function generic_factory_get_type
 
558
  (c-name "bonobo_generic_factory_get_type")
 
559
  (return-type "GType")
 
560
)
 
561
 
 
562
(define-function generic_factory_new
 
563
  (c-name "bonobo_generic_factory_new")
 
564
  (is-constructor-of BonoboGenericFactory)
 
565
  (return-type "BonoboGenericFactory*")
 
566
  (caller-owns-return #f)
 
567
  (parameters
 
568
    '("const-char*" "act_iid")
 
569
    '("BonoboFactoryCallback" "factory_cb")
 
570
    '("gpointer" "user_data")
 
571
  )
 
572
)
 
573
 
 
574
(define-function generic_factory_new_closure
 
575
  (c-name "bonobo_generic_factory_new_closure")
 
576
  (is-constructor-of BonoboGenericFactory)  
 
577
  (return-type "BonoboGenericFactory*")
 
578
  (caller-owns-return #f)
 
579
  (parameters
 
580
    '("const-char*" "act_iid")
 
581
    '("GClosure*" "factory_closure")
 
582
  )
 
583
)
 
584
 
 
585
(define-method construct
 
586
  (of-object "BonoboGenericFactory")
 
587
  (c-name "bonobo_generic_factory_construct")
 
588
  (return-type "BonoboGenericFactory*")
 
589
  (parameters
 
590
    '("const-char*" "act_iid")
 
591
    '("GClosure*" "factory_cb")
 
592
  )
 
593
)
 
594
 
 
595
(define-method construct_noreg
 
596
  (of-object "BonoboGenericFactory")
 
597
  (c-name "bonobo_generic_factory_construct_noreg")
 
598
  (return-type "none")
 
599
  (parameters
 
600
    '("const-char*" "act_iid")
 
601
    '("GClosure*" "factory_cb")
 
602
  )
 
603
)
 
604
 
 
605
(define-function generic_factory_main
 
606
  (c-name "bonobo_generic_factory_main")
 
607
  (return-type "int")
 
608
  (parameters
 
609
    '("const-char*" "act_iid")
 
610
    '("BonoboFactoryCallback" "factory_cb")
 
611
    '("gpointer" "user_data")
 
612
  )
 
613
)
 
614
 
 
615
 
 
616
 
 
617
;; From /home/james/cvs/gnome2/libbonobo/bonobo/bonobo-i18n.h
 
618
 
 
619
 
 
620
 
 
621
;; From /home/james/cvs/gnome2/libbonobo/bonobo/bonobo-item-container.h
 
622
 
 
623
(define-function item_container_get_type
 
624
  (c-name "bonobo_item_container_get_type")
 
625
  (return-type "GType")
 
626
)
 
627
 
 
628
(define-function item_container_new
 
629
  (c-name "bonobo_item_container_new")
 
630
  (is-constructor-of BonoboItemContainer)
 
631
  (return-type "BonoboItemContainer*")
 
632
  (caller-owns-return #f)
 
633
)
 
634
 
 
635
(define-method add
 
636
  (of-object "BonoboItemContainer")
 
637
  (c-name "bonobo_item_container_add")
 
638
  (return-type "none")
 
639
  (parameters
 
640
    '("const-char*" "name")
 
641
    '("BonoboObject*" "object")
 
642
  )
 
643
)
 
644
 
 
645
(define-method remove_by_name
 
646
  (of-object "BonoboItemContainer")
 
647
  (c-name "bonobo_item_container_remove_by_name")
 
648
  (return-type "none")
 
649
  (parameters
 
650
    '("const-char*" "name")
 
651
  )
 
652
)
 
653
 
 
654
 
 
655
 
 
656
;; From /home/james/cvs/gnome2/libbonobo/bonobo/bonobo-listener.h
 
657
 
 
658
(define-function listener_get_type
 
659
  (c-name "bonobo_listener_get_type")
 
660
  (return-type "GType")
 
661
)
 
662
 
 
663
(define-function listener_new
 
664
  (c-name "bonobo_listener_new")
 
665
  (is-constructor-of BonoboListener)
 
666
  (return-type "BonoboListener*")
 
667
  (caller-owns-return #f)
 
668
  (parameters
 
669
    '("BonoboListenerCallbackFn" "event_cb")
 
670
    '("gpointer" "user_data")
 
671
  )
 
672
)
 
673
 
 
674
(define-function listener_new_closure
 
675
  (c-name "bonobo_listener_new_closure")
 
676
  (is-constructor-of BonoboListener)  
 
677
  (return-type "BonoboListener*")
 
678
  (caller-owns-return #f)
 
679
  (parameters
 
680
    '("GClosure*" "event_closure")
 
681
  )
 
682
)
 
683
 
 
684
(define-function event_make_name
 
685
  (c-name "bonobo_event_make_name")
 
686
  (return-type "char*")
 
687
  (parameters
 
688
    '("const-char*" "idl_path")
 
689
    '("const-char*" "kind")
 
690
    '("const-char*" "subtype")
 
691
  )
 
692
)
 
693
 
 
694
(define-function event_type
 
695
  (c-name "bonobo_event_type")
 
696
  (return-type "char*")
 
697
  (parameters
 
698
    '("const-char*" "event_name")
 
699
  )
 
700
)
 
701
 
 
702
(define-function event_subtype
 
703
  (c-name "bonobo_event_subtype")
 
704
  (return-type "char*")
 
705
  (parameters
 
706
    '("const-char*" "event_name")
 
707
  )
 
708
)
 
709
 
 
710
(define-function event_kind
 
711
  (c-name "bonobo_event_kind")
 
712
  (return-type "char*")
 
713
  (parameters
 
714
    '("const-char*" "event_name")
 
715
  )
 
716
)
 
717
 
 
718
(define-function event_idl_path
 
719
  (c-name "bonobo_event_idl_path")
 
720
  (return-type "char*")
 
721
  (parameters
 
722
    '("const-char*" "event_name")
 
723
  )
 
724
)
 
725
 
 
726
 
 
727
 
 
728
;; From /home/james/cvs/gnome2/libbonobo/bonobo/bonobo-macros.h
 
729
 
 
730
 
 
731
 
 
732
;; From /home/james/cvs/gnome2/libbonobo/bonobo/bonobo-main.h
 
733
 
 
734
(define-function init
 
735
  (c-name "bonobo_init")
 
736
  (return-type "gboolean")
 
737
  (parameters
 
738
    '("int*" "argc")
 
739
    '("char**" "argv")
 
740
  )
 
741
)
 
742
 
 
743
(define-function init_full
 
744
  (c-name "bonobo_init_full")
 
745
  (return-type "gboolean")
 
746
  (parameters
 
747
    '("int*" "argc")
 
748
    '("char**" "argv")
 
749
    '("CORBA_ORB" "orb")
 
750
    '("PortableServer_POA" "poa")
 
751
    '("PortableServer_POAManager" "manager")
 
752
  )
 
753
)
 
754
 
 
755
(define-function debug_shutdown
 
756
  (c-name "bonobo_debug_shutdown")
 
757
  (return-type "int")
 
758
)
 
759
 
 
760
(define-function main
 
761
  (c-name "bonobo_main")
 
762
  (return-type "none")
 
763
)
 
764
 
 
765
(define-function main_quit
 
766
  (c-name "bonobo_main_quit")
 
767
  (return-type "none")
 
768
)
 
769
 
 
770
(define-function activate
 
771
  (c-name "bonobo_activate")
 
772
  (return-type "gboolean")
 
773
)
 
774
 
 
775
(define-function setup_x_error_handler
 
776
  (c-name "bonobo_setup_x_error_handler")
 
777
  (return-type "none")
 
778
)
 
779
 
 
780
(define-function orb
 
781
  (c-name "bonobo_orb")
 
782
  (return-type "CORBA_ORB")
 
783
)
 
784
 
 
785
(define-function poa
 
786
  (c-name "bonobo_poa")
 
787
  (return-type "PortableServer_POA")
 
788
)
 
789
 
 
790
(define-function poa_manager
 
791
  (c-name "bonobo_poa_manager")
 
792
  (return-type "PortableServer_POAManager")
 
793
)
 
794
 
 
795
 
 
796
 
 
797
;; From /home/james/cvs/gnome2/libbonobo/bonobo/bonobo-moniker.h
 
798
 
 
799
(define-function moniker_get_type
 
800
  (c-name "bonobo_moniker_get_type")
 
801
  (return-type "GType")
 
802
)
 
803
 
 
804
(define-method construct
 
805
  (of-object "BonoboMoniker")
 
806
  (c-name "bonobo_moniker_construct")
 
807
  (return-type "BonoboMoniker*")
 
808
  (parameters
 
809
    '("const-char*" "prefix")
 
810
  )
 
811
)
 
812
 
 
813
(define-method get_parent
 
814
  (of-object "BonoboMoniker")
 
815
  (c-name "bonobo_moniker_get_parent")
 
816
  (return-type "Bonobo_Moniker")
 
817
  (caller-owns-return #f)
 
818
  (parameters
 
819
    '("CORBA_Environment*" "opt_ev")
 
820
  )
 
821
)
 
822
 
 
823
(define-method set_parent
 
824
  (of-object "BonoboMoniker")
 
825
  (c-name "bonobo_moniker_set_parent")
 
826
  (return-type "none")
 
827
  (parameters
 
828
    '("Bonobo_Moniker" "parent")
 
829
    '("CORBA_Environment*" "opt_ev")
 
830
  )
 
831
)
 
832
 
 
833
(define-method get_name
 
834
  (of-object "BonoboMoniker")
 
835
  (c-name "bonobo_moniker_get_name")
 
836
  (return-type "const-char*")
 
837
)
 
838
 
 
839
(define-method get_name_full
 
840
  (of-object "BonoboMoniker")
 
841
  (c-name "bonobo_moniker_get_name_full")
 
842
  (return-type "const-char*")
 
843
)
 
844
 
 
845
(define-method get_name_escaped
 
846
  (of-object "BonoboMoniker")
 
847
  (c-name "bonobo_moniker_get_name_escaped")
 
848
  (return-type "char*")
 
849
)
 
850
 
 
851
(define-method set_name
 
852
  (of-object "BonoboMoniker")
 
853
  (c-name "bonobo_moniker_set_name")
 
854
  (return-type "none")
 
855
  (parameters
 
856
    '("const-char*" "unescaped_name")
 
857
  )
 
858
)
 
859
 
 
860
(define-method get_prefix
 
861
  (of-object "BonoboMoniker")
 
862
  (c-name "bonobo_moniker_get_prefix")
 
863
  (return-type "const-char*")
 
864
)
 
865
 
 
866
(define-method set_case_sensitive
 
867
  (of-object "BonoboMoniker")
 
868
  (c-name "bonobo_moniker_set_case_sensitive")
 
869
  (return-type "none")
 
870
  (parameters
 
871
    '("gboolean" "sensitive")
 
872
  )
 
873
)
 
874
 
 
875
(define-method get_case_sensitive
 
876
  (of-object "BonoboMoniker")
 
877
  (c-name "bonobo_moniker_get_case_sensitive")
 
878
  (return-type "gboolean")
 
879
)
 
880
 
 
881
 
 
882
 
 
883
;; From /home/james/cvs/gnome2/libbonobo/bonobo/bonobo-moniker-simple.h
 
884
 
 
885
(define-function moniker_simple_get_type
 
886
  (c-name "bonobo_moniker_simple_get_type")
 
887
  (return-type "GType")
 
888
)
 
889
 
 
890
(define-method construct
 
891
  (of-object "BonoboMonikerSimple")
 
892
  (c-name "bonobo_moniker_simple_construct")
 
893
  (return-type "BonoboMoniker*")
 
894
  (parameters
 
895
    '("const-char*" "name")
 
896
    '("GClosure*" "resolve_closure")
 
897
  )
 
898
)
 
899
 
 
900
(define-function moniker_simple_new
 
901
  (c-name "bonobo_moniker_simple_new")
 
902
  (is-constructor-of BonoboMoniker)
 
903
  (return-type "BonoboMoniker*")
 
904
  (caller-owns-return #f)
 
905
  (parameters
 
906
    '("const-char*" "name")
 
907
    '("BonoboMonikerSimpleResolveFn" "resolve_fn")
 
908
  )
 
909
)
 
910
 
 
911
(define-function moniker_simple_new_closure
 
912
  (c-name "bonobo_moniker_simple_new_closure")
 
913
  (is-constructor-of BonoboMoniker)
 
914
  (return-type "BonoboMoniker*")
 
915
  (caller-owns-return #f)
 
916
  (parameters
 
917
    '("const-char*" "name")
 
918
    '("GClosure*" "resolve_closure")
 
919
  )
 
920
)
 
921
 
 
922
 
 
923
 
 
924
;; From /home/james/cvs/gnome2/libbonobo/bonobo/bonobo-moniker-util.h
 
925
 
 
926
 
 
927
(define-function get_object
 
928
  (c-name "bonobo_get_object")
 
929
  (return-type "Bonobo_Unknown")
 
930
  (caller-owns-return #f)
 
931
  (parameters
 
932
    '("const-CORBA_char*" "name")
 
933
    '("const-char*" "interface_name")
 
934
    '("CORBA_Environment*" "opt_ev")
 
935
  )
 
936
)
 
937
 
 
938
(define-function moniker_client_new_from_name
 
939
  (c-name "bonobo_moniker_client_new_from_name")
 
940
  (return-type "Bonobo_Moniker")
 
941
  (caller-owns-return #f)
 
942
  (parameters
 
943
    '("const-CORBA_char*" "name")
 
944
    '("CORBA_Environment*" "opt_ev")
 
945
  )
 
946
)
 
947
 
 
948
(define-function moniker_client_get_name
 
949
  (c-name "bonobo_moniker_client_get_name")
 
950
  (return-type "CORBA_char*")
 
951
  (parameters
 
952
    '("Bonobo_Moniker" "moniker")
 
953
    '("CORBA_Environment*" "opt_ev")
 
954
  )
 
955
)
 
956
 
 
957
(define-function moniker_client_resolve_default
 
958
  (c-name "bonobo_moniker_client_resolve_default")
 
959
  (return-type "Bonobo_Unknown")
 
960
  (caller-owns-return #f)
 
961
  (parameters
 
962
    '("Bonobo_Moniker" "moniker")
 
963
    '("const-char*" "interface_name")
 
964
    '("CORBA_Environment*" "opt_ev")
 
965
  )
 
966
)
 
967
 
 
968
(define-function moniker_client_equal
 
969
  (c-name "bonobo_moniker_client_equal")
 
970
  (return-type "gboolean")
 
971
  (parameters
 
972
    '("Bonobo_Moniker" "moniker")
 
973
    '("const-CORBA_char*" "name")
 
974
    '("CORBA_Environment*" "opt_ev")
 
975
  )
 
976
)
 
977
 
 
978
(define-function get_object_async
 
979
  (c-name "bonobo_get_object_async")
 
980
  (return-type "none")
 
981
  (parameters
 
982
    '("const-CORBA_char*" "name")
 
983
    '("const-char*" "interface_name")
 
984
    '("CORBA_Environment*" "ev")
 
985
    '("BonoboMonikerAsyncFn" "cb")
 
986
    '("gpointer" "user_data")
 
987
  )
 
988
)
 
989
 
 
990
(define-function moniker_client_new_from_name_async
 
991
  (c-name "bonobo_moniker_client_new_from_name_async")
 
992
  (return-type "none")
 
993
  (parameters
 
994
    '("const-CORBA_char*" "name")
 
995
    '("CORBA_Environment*" "ev")
 
996
    '("BonoboMonikerAsyncFn" "cb")
 
997
    '("gpointer" "user_data")
 
998
  )
 
999
)
 
1000
 
 
1001
(define-function moniker_resolve_async
 
1002
  (c-name "bonobo_moniker_resolve_async")
 
1003
  (return-type "none")
 
1004
  (parameters
 
1005
    '("Bonobo_Moniker" "moniker")
 
1006
    '("Bonobo_ResolveOptions*" "options")
 
1007
    '("const-char*" "interface_name")
 
1008
    '("CORBA_Environment*" "ev")
 
1009
    '("BonoboMonikerAsyncFn" "cb")
 
1010
    '("gpointer" "user_data")
 
1011
  )
 
1012
)
 
1013
 
 
1014
(define-function moniker_resolve_async_default
 
1015
  (c-name "bonobo_moniker_resolve_async_default")
 
1016
  (return-type "none")
 
1017
  (parameters
 
1018
    '("Bonobo_Moniker" "moniker")
 
1019
    '("const-char*" "interface_name")
 
1020
    '("CORBA_Environment*" "ev")
 
1021
    '("BonoboMonikerAsyncFn" "cb")
 
1022
    '("gpointer" "user_data")
 
1023
  )
 
1024
)
 
1025
 
 
1026
(define-function moniker_util_get_parent_name
 
1027
  (c-name "bonobo_moniker_util_get_parent_name")
 
1028
  (return-type "CORBA_char*")
 
1029
  (parameters
 
1030
    '("Bonobo_Moniker" "moniker")
 
1031
    '("CORBA_Environment*" "opt_ev")
 
1032
  )
 
1033
)
 
1034
 
 
1035
(define-function moniker_util_qi_return
 
1036
  (c-name "bonobo_moniker_util_qi_return")
 
1037
  (return-type "Bonobo_Unknown")
 
1038
  (caller-owns-return #f)
 
1039
  (parameters
 
1040
    '("Bonobo_Unknown" "object")
 
1041
    '("const-CORBA_char*" "requested_interface")
 
1042
    '("CORBA_Environment*" "ev")
 
1043
  )
 
1044
)
 
1045
 
 
1046
(define-function moniker_util_parse_name
 
1047
  (c-name "bonobo_moniker_util_parse_name")
 
1048
  (return-type "const-char*")
 
1049
  (parameters
 
1050
    '("const-char*" "name")
 
1051
    '("int*" "plen")
 
1052
  )
 
1053
)
 
1054
 
 
1055
(define-function moniker_util_seek_std_separator
 
1056
  (c-name "bonobo_moniker_util_seek_std_separator")
 
1057
  (return-type "int")
 
1058
  (parameters
 
1059
    '("const-CORBA_char*" "str")
 
1060
    '("int" "min_idx")
 
1061
  )
 
1062
)
 
1063
 
 
1064
(define-function moniker_util_escape
 
1065
  (c-name "bonobo_moniker_util_escape")
 
1066
  (return-type "char*")
 
1067
  (parameters
 
1068
    '("const-char*" "string")
 
1069
    '("int" "offset")
 
1070
  )
 
1071
)
 
1072
 
 
1073
(define-function moniker_util_unescape
 
1074
  (c-name "bonobo_moniker_util_unescape")
 
1075
  (return-type "char*")
 
1076
  (parameters
 
1077
    '("const-char*" "string")
 
1078
    '("int" "num_chars")
 
1079
  )
 
1080
)
 
1081
 
 
1082
(define-function url_register
 
1083
  (c-name "bonobo_url_register")
 
1084
  (return-type "none")
 
1085
  (parameters
 
1086
    '("char*" "oafiid")
 
1087
    '("char*" "url")
 
1088
    '("char*" "mime_type")
 
1089
    '("Bonobo_Unknown" "object")
 
1090
    '("CORBA_Environment*" "ev")
 
1091
  )
 
1092
)
 
1093
 
 
1094
(define-function url_unregister
 
1095
  (c-name "bonobo_url_unregister")
 
1096
  (return-type "none")
 
1097
  (parameters
 
1098
    '("char*" "oafiid")
 
1099
    '("char*" "url")
 
1100
    '("CORBA_Environment*" "ev")
 
1101
  )
 
1102
)
 
1103
 
 
1104
(define-function url_lookup
 
1105
  (c-name "bonobo_url_lookup")
 
1106
  (return-type "Bonobo_Unknown")
 
1107
  (caller-owns-return #f)
 
1108
  (parameters
 
1109
    '("char*" "oafiid")
 
1110
    '("char*" "url")
 
1111
    '("CORBA_Environment*" "ev")
 
1112
  )
 
1113
)
 
1114
 
 
1115
 
 
1116
 
 
1117
;; From /home/james/cvs/gnome2/libbonobo/bonobo/bonobo-object.h
 
1118
 
 
1119
(define-function object_get_type
 
1120
  (c-name "bonobo_object_get_type")
 
1121
  (return-type "GType")
 
1122
)
 
1123
 
 
1124
(define-method add_interface
 
1125
  (of-object "BonoboObject")
 
1126
  (c-name "bonobo_object_add_interface")
 
1127
  (return-type "none")
 
1128
  (parameters
 
1129
    '("BonoboObject*" "newobj")
 
1130
  )
 
1131
)
 
1132
 
 
1133
(define-method query_local_interface
 
1134
  (of-object "BonoboObject")
 
1135
  (c-name "bonobo_object_query_local_interface")
 
1136
  (return-type "BonoboObject*")
 
1137
  (parameters
 
1138
    '("const-char*" "repo_id")
 
1139
  )
 
1140
)
 
1141
 
 
1142
(define-method ref
 
1143
  (of-object "BonoboObject")
 
1144
  (c-name "bonobo_object_ref")
 
1145
  (return-type "none")
 
1146
)
 
1147
 
 
1148
(define-method unref
 
1149
  (of-object "BonoboObject")
 
1150
  (c-name "bonobo_object_unref")
 
1151
  (return-type "none")
 
1152
)
 
1153
 
 
1154
(define-method query_interface
 
1155
  (of-object "BonoboObject")
 
1156
  (c-name "bonobo_object_query_interface")
 
1157
  (return-type "Bonobo_Unknown")
 
1158
  (caller-owns-return #f)
 
1159
  (parameters
 
1160
    '("const-char*" "repo_id")
 
1161
    '("CORBA_Environment*" "opt_ev")
 
1162
  )
 
1163
)
 
1164
 
 
1165
(define-method corba_objref
 
1166
  (of-object "BonoboObject")
 
1167
  (c-name "bonobo_object_corba_objref")
 
1168
  (return-type "Bonobo_Unknown")
 
1169
  (caller-owns-return #f)
 
1170
)
 
1171
 
 
1172
(define-function object_dup_ref
 
1173
  (c-name "bonobo_object_dup_ref")
 
1174
  (return-type "Bonobo_Unknown")
 
1175
  (caller-owns-return #f)
 
1176
  (parameters
 
1177
    '("Bonobo_Unknown" "object")
 
1178
    '("CORBA_Environment*" "opt_ev")
 
1179
  )
 
1180
)
 
1181
 
 
1182
(define-function object_release_unref
 
1183
  (c-name "bonobo_object_release_unref")
 
1184
  (return-type "Bonobo_Unknown")
 
1185
  (caller-owns-return #f)
 
1186
  (parameters
 
1187
    '("Bonobo_Unknown" "object")
 
1188
    '("CORBA_Environment*" "opt_ev")
 
1189
  )
 
1190
)
 
1191
 
 
1192
(define-method ref
 
1193
  (of-object "BonoboObject")
 
1194
  (c-name "bonobo_object_ref")
 
1195
  (return-type "gpointer")
 
1196
)
 
1197
 
 
1198
(define-method idle_unref
 
1199
  (of-object "BonoboObject")
 
1200
  (c-name "bonobo_object_idle_unref")
 
1201
  (return-type "none")
 
1202
)
 
1203
 
 
1204
(define-method unref
 
1205
  (of-object "BonoboObject")
 
1206
  (c-name "bonobo_object_unref")
 
1207
  (return-type "gpointer")
 
1208
)
 
1209
 
 
1210
(define-method set_immortal
 
1211
  (of-object "BonoboObject")
 
1212
  (c-name "bonobo_object_set_immortal")
 
1213
  (return-type "none")
 
1214
  (parameters
 
1215
    '("gboolean" "immortal")
 
1216
  )
 
1217
)
 
1218
 
 
1219
(define-method trace_refs
 
1220
  (of-object "BonoboObject")
 
1221
  (c-name "bonobo_object_trace_refs")
 
1222
  (return-type "gpointer")
 
1223
  (parameters
 
1224
    '("const-char*" "fn")
 
1225
    '("int" "line")
 
1226
    '("gboolean" "ref")
 
1227
  )
 
1228
)
 
1229
 
 
1230
(define-method dump_interfaces
 
1231
  (of-object "BonoboObject")
 
1232
  (c-name "bonobo_object_dump_interfaces")
 
1233
  (return-type "none")
 
1234
)
 
1235
 
 
1236
(define-method check_env
 
1237
  (of-object "BonoboObject")
 
1238
  (c-name "bonobo_object_check_env")
 
1239
  (return-type "none")
 
1240
  (parameters
 
1241
    '("CORBA_Object" "corba_object")
 
1242
    '("CORBA_Environment*" "ev")
 
1243
  )
 
1244
)
 
1245
 
 
1246
(define-function object_list_unref_all
 
1247
  (c-name "bonobo_object_list_unref_all")
 
1248
  (return-type "none")
 
1249
  (parameters
 
1250
    '("GList**" "list")
 
1251
  )
 
1252
)
 
1253
 
 
1254
(define-function object_slist_unref_all
 
1255
  (c-name "bonobo_object_slist_unref_all")
 
1256
  (return-type "none")
 
1257
  (parameters
 
1258
    '("GSList**" "list")
 
1259
  )
 
1260
)
 
1261
 
 
1262
(define-function object
 
1263
  (c-name "bonobo_object")
 
1264
  (return-type "BonoboObject*")
 
1265
  (parameters
 
1266
    '("gpointer" "p")
 
1267
  )
 
1268
)
 
1269
 
 
1270
(define-function type_setup
 
1271
  (c-name "bonobo_type_setup")
 
1272
  (return-type "gboolean")
 
1273
  (parameters
 
1274
    '("GType" "type")
 
1275
    '("BonoboObjectPOAFn" "init_fn")
 
1276
    '("BonoboObjectPOAFn" "fini_fn")
 
1277
    '("int" "epv_struct_offset")
 
1278
  )
 
1279
)
 
1280
 
 
1281
 
 
1282
 
 
1283
;; From /home/james/cvs/gnome2/libbonobo/bonobo/bonobo-persist-client.h
 
1284
 
 
1285
(define-function object_from_stream
 
1286
  (c-name "bonobo_object_from_stream")
 
1287
  (return-type "Bonobo_Unknown")
 
1288
  (caller-owns-return #f)
 
1289
  (parameters
 
1290
    '("Bonobo_Stream" "stream")
 
1291
    '("CORBA_Environment*" "opt_ev")
 
1292
  )
 
1293
)
 
1294
 
 
1295
 
 
1296
 
 
1297
;; From /home/james/cvs/gnome2/libbonobo/bonobo/bonobo-persist-file.h
 
1298
 
 
1299
(define-function persist_file_get_type
 
1300
  (c-name "bonobo_persist_file_get_type")
 
1301
  (return-type "GType")
 
1302
)
 
1303
 
 
1304
(define-function persist_file_new
 
1305
  (c-name "bonobo_persist_file_new")
 
1306
  (is-constructor-of BonoboPersistFile)
 
1307
  (return-type "BonoboPersistFile*")
 
1308
  (caller-owns-return #f)
 
1309
  (parameters
 
1310
    '("BonoboPersistFileIOFn" "load_fn")
 
1311
    '("BonoboPersistFileIOFn" "save_fn")
 
1312
    '("const-gchar*" "iid")
 
1313
    '("void*" "closure")
 
1314
  )
 
1315
)
 
1316
 
 
1317
(define-method construct
 
1318
  (of-object "BonoboPersistFile")
 
1319
  (c-name "bonobo_persist_file_construct")
 
1320
  (return-type "BonoboPersistFile*")
 
1321
  (parameters
 
1322
    '("BonoboPersistFileIOFn" "load_fn")
 
1323
    '("BonoboPersistFileIOFn" "save_fn")
 
1324
    '("const-gchar*" "iid")
 
1325
    '("void*" "closure")
 
1326
  )
 
1327
)
 
1328
 
 
1329
 
 
1330
 
 
1331
;; From /home/james/cvs/gnome2/libbonobo/bonobo/bonobo-persist.h
 
1332
 
 
1333
(define-function persist_get_type
 
1334
  (c-name "bonobo_persist_get_type")
 
1335
  (return-type "GType")
 
1336
)
 
1337
 
 
1338
(define-function persist_generate_content_types
 
1339
  (c-name "bonobo_persist_generate_content_types")
 
1340
  (return-type "Bonobo_Persist_ContentTypeList*")
 
1341
  (caller-owns-return #f)
 
1342
  (parameters
 
1343
    '("int" "num")
 
1344
  )
 
1345
  (varargs #t)
 
1346
)
 
1347
 
 
1348
(define-method construct
 
1349
  (of-object "BonoboPersist")
 
1350
  (c-name "bonobo_persist_construct")
 
1351
  (return-type "BonoboPersist*")
 
1352
  (parameters
 
1353
    '("const-gchar*" "iid")
 
1354
  )
 
1355
)
 
1356
 
 
1357
(define-method set_dirty
 
1358
  (of-object "BonoboPersist")
 
1359
  (c-name "bonobo_persist_set_dirty")
 
1360
  (return-type "none")
 
1361
  (parameters
 
1362
    '("gboolean" "dirty")
 
1363
  )
 
1364
)
 
1365
 
 
1366
 
 
1367
 
 
1368
;; From /home/james/cvs/gnome2/libbonobo/bonobo/bonobo-persist-stream.h
 
1369
 
 
1370
(define-function persist_stream_get_type
 
1371
  (c-name "bonobo_persist_stream_get_type")
 
1372
  (return-type "GType")
 
1373
)
 
1374
 
 
1375
(define-function persist_stream_new
 
1376
  (c-name "bonobo_persist_stream_new")
 
1377
  (is-constructor-of BonoboPersistStream)  
 
1378
  (return-type "BonoboPersistStream*")
 
1379
  (caller-owns-return #f)
 
1380
  (parameters
 
1381
    '("BonoboPersistStreamIOFn" "load_fn")
 
1382
    '("BonoboPersistStreamIOFn" "save_fn")
 
1383
    '("BonoboPersistStreamTypesFn" "types_fn")
 
1384
    '("const-gchar*" "iid")
 
1385
    '("void*" "closure")
 
1386
  )
 
1387
)
 
1388
 
 
1389
(define-method construct
 
1390
  (of-object "BonoboPersistStream")
 
1391
  (c-name "bonobo_persist_stream_construct")
 
1392
  (return-type "BonoboPersistStream*")
 
1393
  (parameters
 
1394
    '("BonoboPersistStreamIOFn" "load_fn")
 
1395
    '("BonoboPersistStreamIOFn" "save_fn")
 
1396
    '("BonoboPersistStreamTypesFn" "types_fn")
 
1397
    '("const-gchar*" "iid")
 
1398
    '("void*" "closure")
 
1399
  )
 
1400
)
 
1401
 
 
1402
 
 
1403
 
 
1404
;; From /home/james/cvs/gnome2/libbonobo/bonobo/bonobo-property-bag-client.h
 
1405
 
 
1406
(define-function pbclient_get_string
 
1407
  (c-name "bonobo_pbclient_get_string")
 
1408
  (return-type "gchar*")
 
1409
  (parameters
 
1410
    '("Bonobo_PropertyBag" "bag")
 
1411
    '("const-char*" "key")
 
1412
    '("CORBA_Environment*" "opt_ev")
 
1413
  )
 
1414
)
 
1415
 
 
1416
(define-function pbclient_get_default_string
 
1417
  (c-name "bonobo_pbclient_get_default_string")
 
1418
  (return-type "gchar*")
 
1419
  (parameters
 
1420
    '("Bonobo_PropertyBag" "bag")
 
1421
    '("const-char*" "key")
 
1422
    '("CORBA_Environment*" "opt_ev")
 
1423
  )
 
1424
)
 
1425
 
 
1426
(define-function pbclient_get_string_with_default
 
1427
  (c-name "bonobo_pbclient_get_string_with_default")
 
1428
  (return-type "gchar*")
 
1429
  (parameters
 
1430
    '("Bonobo_PropertyBag" "bag")
 
1431
    '("const-char*" "key")
 
1432
    '("gchar*" "defval")
 
1433
    '("gboolean*" "def")
 
1434
  )
 
1435
)
 
1436
 
 
1437
(define-function pbclient_get_short
 
1438
  (c-name "bonobo_pbclient_get_short")
 
1439
  (return-type "gint16")
 
1440
  (parameters
 
1441
    '("Bonobo_PropertyBag" "bag")
 
1442
    '("const-char*" "key")
 
1443
    '("CORBA_Environment*" "opt_ev")
 
1444
  )
 
1445
)
 
1446
 
 
1447
(define-function pbclient_get_default_short
 
1448
  (c-name "bonobo_pbclient_get_default_short")
 
1449
  (return-type "gint16")
 
1450
  (parameters
 
1451
    '("Bonobo_PropertyBag" "bag")
 
1452
    '("const-char*" "key")
 
1453
    '("CORBA_Environment*" "opt_ev")
 
1454
  )
 
1455
)
 
1456
 
 
1457
(define-function pbclient_get_short_with_default
 
1458
  (c-name "bonobo_pbclient_get_short_with_default")
 
1459
  (return-type "gint16")
 
1460
  (parameters
 
1461
    '("Bonobo_PropertyBag" "bag")
 
1462
    '("const-char*" "key")
 
1463
    '("gint16" "defval")
 
1464
    '("gboolean*" "def")
 
1465
  )
 
1466
)
 
1467
 
 
1468
(define-function pbclient_get_ushort
 
1469
  (c-name "bonobo_pbclient_get_ushort")
 
1470
  (return-type "guint16")
 
1471
  (parameters
 
1472
    '("Bonobo_PropertyBag" "bag")
 
1473
    '("const-char*" "key")
 
1474
    '("CORBA_Environment*" "opt_ev")
 
1475
  )
 
1476
)
 
1477
 
 
1478
(define-function pbclient_get_default_ushort
 
1479
  (c-name "bonobo_pbclient_get_default_ushort")
 
1480
  (return-type "guint16")
 
1481
  (parameters
 
1482
    '("Bonobo_PropertyBag" "bag")
 
1483
    '("const-char*" "key")
 
1484
    '("CORBA_Environment*" "opt_ev")
 
1485
  )
 
1486
)
 
1487
 
 
1488
(define-function pbclient_get_ushort_with_default
 
1489
  (c-name "bonobo_pbclient_get_ushort_with_default")
 
1490
  (return-type "guint16")
 
1491
  (parameters
 
1492
    '("Bonobo_PropertyBag" "bag")
 
1493
    '("const-char*" "key")
 
1494
    '("guint16" "defval")
 
1495
    '("gboolean*" "def")
 
1496
  )
 
1497
)
 
1498
 
 
1499
(define-function pbclient_get_long
 
1500
  (c-name "bonobo_pbclient_get_long")
 
1501
  (return-type "gint32")
 
1502
  (parameters
 
1503
    '("Bonobo_PropertyBag" "bag")
 
1504
    '("const-char*" "key")
 
1505
    '("CORBA_Environment*" "opt_ev")
 
1506
  )
 
1507
)
 
1508
 
 
1509
(define-function pbclient_get_default_long
 
1510
  (c-name "bonobo_pbclient_get_default_long")
 
1511
  (return-type "gint32")
 
1512
  (parameters
 
1513
    '("Bonobo_PropertyBag" "bag")
 
1514
    '("const-char*" "key")
 
1515
    '("CORBA_Environment*" "opt_ev")
 
1516
  )
 
1517
)
 
1518
 
 
1519
(define-function pbclient_get_long_with_default
 
1520
  (c-name "bonobo_pbclient_get_long_with_default")
 
1521
  (return-type "gint32")
 
1522
  (parameters
 
1523
    '("Bonobo_PropertyBag" "bag")
 
1524
    '("const-char*" "key")
 
1525
    '("gint32" "defval")
 
1526
    '("gboolean*" "def")
 
1527
  )
 
1528
)
 
1529
 
 
1530
(define-function pbclient_get_ulong
 
1531
  (c-name "bonobo_pbclient_get_ulong")
 
1532
  (return-type "guint32")
 
1533
  (parameters
 
1534
    '("Bonobo_PropertyBag" "bag")
 
1535
    '("const-char*" "key")
 
1536
    '("CORBA_Environment*" "opt_ev")
 
1537
  )
 
1538
)
 
1539
 
 
1540
(define-function pbclient_get_default_ulong
 
1541
  (c-name "bonobo_pbclient_get_default_ulong")
 
1542
  (return-type "guint32")
 
1543
  (parameters
 
1544
    '("Bonobo_PropertyBag" "bag")
 
1545
    '("const-char*" "key")
 
1546
    '("CORBA_Environment*" "opt_ev")
 
1547
  )
 
1548
)
 
1549
 
 
1550
(define-function pbclient_get_ulong_with_default
 
1551
  (c-name "bonobo_pbclient_get_ulong_with_default")
 
1552
  (return-type "guint32")
 
1553
  (parameters
 
1554
    '("Bonobo_PropertyBag" "bag")
 
1555
    '("const-char*" "key")
 
1556
    '("guint32" "defval")
 
1557
    '("gboolean*" "def")
 
1558
  )
 
1559
)
 
1560
 
 
1561
(define-function pbclient_get_float
 
1562
  (c-name "bonobo_pbclient_get_float")
 
1563
  (return-type "gfloat")
 
1564
  (parameters
 
1565
    '("Bonobo_PropertyBag" "bag")
 
1566
    '("const-char*" "key")
 
1567
    '("CORBA_Environment*" "opt_ev")
 
1568
  )
 
1569
)
 
1570
 
 
1571
(define-function pbclient_get_default_float
 
1572
  (c-name "bonobo_pbclient_get_default_float")
 
1573
  (return-type "gfloat")
 
1574
  (parameters
 
1575
    '("Bonobo_PropertyBag" "bag")
 
1576
    '("const-char*" "key")
 
1577
    '("CORBA_Environment*" "opt_ev")
 
1578
  )
 
1579
)
 
1580
 
 
1581
(define-function pbclient_get_float_with_default
 
1582
  (c-name "bonobo_pbclient_get_float_with_default")
 
1583
  (return-type "gfloat")
 
1584
  (parameters
 
1585
    '("Bonobo_PropertyBag" "bag")
 
1586
    '("const-char*" "key")
 
1587
    '("gfloat" "defval")
 
1588
    '("gboolean*" "def")
 
1589
  )
 
1590
)
 
1591
 
 
1592
(define-function pbclient_get_double
 
1593
  (c-name "bonobo_pbclient_get_double")
 
1594
  (return-type "gdouble")
 
1595
  (parameters
 
1596
    '("Bonobo_PropertyBag" "bag")
 
1597
    '("const-char*" "key")
 
1598
    '("CORBA_Environment*" "opt_ev")
 
1599
  )
 
1600
)
 
1601
 
 
1602
(define-function pbclient_get_default_double
 
1603
  (c-name "bonobo_pbclient_get_default_double")
 
1604
  (return-type "gdouble")
 
1605
  (parameters
 
1606
    '("Bonobo_PropertyBag" "bag")
 
1607
    '("const-char*" "key")
 
1608
    '("CORBA_Environment*" "opt_ev")
 
1609
  )
 
1610
)
 
1611
 
 
1612
(define-function pbclient_get_double_with_default
 
1613
  (c-name "bonobo_pbclient_get_double_with_default")
 
1614
  (return-type "gdouble")
 
1615
  (parameters
 
1616
    '("Bonobo_PropertyBag" "bag")
 
1617
    '("const-char*" "key")
 
1618
    '("gdouble" "defval")
 
1619
    '("gboolean*" "def")
 
1620
  )
 
1621
)
 
1622
 
 
1623
(define-function pbclient_get_boolean
 
1624
  (c-name "bonobo_pbclient_get_boolean")
 
1625
  (return-type "gboolean")
 
1626
  (parameters
 
1627
    '("Bonobo_PropertyBag" "bag")
 
1628
    '("const-char*" "key")
 
1629
    '("CORBA_Environment*" "opt_ev")
 
1630
  )
 
1631
)
 
1632
 
 
1633
(define-function pbclient_get_default_boolean
 
1634
  (c-name "bonobo_pbclient_get_default_boolean")
 
1635
  (return-type "gboolean")
 
1636
  (parameters
 
1637
    '("Bonobo_PropertyBag" "bag")
 
1638
    '("const-char*" "key")
 
1639
    '("CORBA_Environment*" "opt_ev")
 
1640
  )
 
1641
)
 
1642
 
 
1643
(define-function pbclient_get_boolean_with_default
 
1644
  (c-name "bonobo_pbclient_get_boolean_with_default")
 
1645
  (return-type "gboolean")
 
1646
  (parameters
 
1647
    '("Bonobo_PropertyBag" "bag")
 
1648
    '("const-char*" "key")
 
1649
    '("gboolean" "defval")
 
1650
    '("gboolean*" "def")
 
1651
  )
 
1652
)
 
1653
 
 
1654
(define-function pbclient_get_char
 
1655
  (c-name "bonobo_pbclient_get_char")
 
1656
  (return-type "gchar")
 
1657
  (parameters
 
1658
    '("Bonobo_PropertyBag" "bag")
 
1659
    '("const-char*" "key")
 
1660
    '("CORBA_Environment*" "opt_ev")
 
1661
  )
 
1662
)
 
1663
 
 
1664
(define-function pbclient_get_default_char
 
1665
  (c-name "bonobo_pbclient_get_default_char")
 
1666
  (return-type "gchar")
 
1667
  (parameters
 
1668
    '("Bonobo_PropertyBag" "bag")
 
1669
    '("const-char*" "key")
 
1670
    '("CORBA_Environment*" "opt_ev")
 
1671
  )
 
1672
)
 
1673
 
 
1674
(define-function pbclient_get_char_with_default
 
1675
  (c-name "bonobo_pbclient_get_char_with_default")
 
1676
  (return-type "gchar")
 
1677
  (parameters
 
1678
    '("Bonobo_PropertyBag" "bag")
 
1679
    '("const-char*" "key")
 
1680
    '("gchar" "defval")
 
1681
    '("gboolean*" "def")
 
1682
  )
 
1683
)
 
1684
 
 
1685
(define-function pbclient_get_value
 
1686
  (c-name "bonobo_pbclient_get_value")
 
1687
  (return-type "CORBA_any*")
 
1688
  (parameters
 
1689
    '("Bonobo_PropertyBag" "bag")
 
1690
    '("const-char*" "key")
 
1691
    '("CORBA_TypeCode" "opt_tc")
 
1692
    '("CORBA_Environment*" "opt_ev")
 
1693
  )
 
1694
)
 
1695
 
 
1696
(define-function pbclient_get_default_value
 
1697
  (c-name "bonobo_pbclient_get_default_value")
 
1698
  (return-type "CORBA_any*")
 
1699
  (parameters
 
1700
    '("Bonobo_PropertyBag" "bag")
 
1701
    '("const-char*" "key")
 
1702
    '("CORBA_TypeCode" "opt_tc")
 
1703
    '("CORBA_Environment*" "opt_ev")
 
1704
  )
 
1705
)
 
1706
 
 
1707
(define-function pbclient_set_string
 
1708
  (c-name "bonobo_pbclient_set_string")
 
1709
  (return-type "none")
 
1710
  (parameters
 
1711
    '("Bonobo_PropertyBag" "bag")
 
1712
    '("const-char*" "key")
 
1713
    '("const-char*" "value")
 
1714
    '("CORBA_Environment*" "opt_ev")
 
1715
  )
 
1716
)
 
1717
 
 
1718
(define-function pbclient_set_short
 
1719
  (c-name "bonobo_pbclient_set_short")
 
1720
  (return-type "none")
 
1721
  (parameters
 
1722
    '("Bonobo_PropertyBag" "bag")
 
1723
    '("const-char*" "key")
 
1724
    '("gint16" "value")
 
1725
    '("CORBA_Environment*" "opt_ev")
 
1726
  )
 
1727
)
 
1728
 
 
1729
(define-function pbclient_set_ushort
 
1730
  (c-name "bonobo_pbclient_set_ushort")
 
1731
  (return-type "none")
 
1732
  (parameters
 
1733
    '("Bonobo_PropertyBag" "bag")
 
1734
    '("const-char*" "key")
 
1735
    '("guint16" "value")
 
1736
    '("CORBA_Environment*" "opt_ev")
 
1737
  )
 
1738
)
 
1739
 
 
1740
(define-function pbclient_set_long
 
1741
  (c-name "bonobo_pbclient_set_long")
 
1742
  (return-type "none")
 
1743
  (parameters
 
1744
    '("Bonobo_PropertyBag" "bag")
 
1745
    '("const-char*" "key")
 
1746
    '("gint32" "value")
 
1747
    '("CORBA_Environment*" "opt_ev")
 
1748
  )
 
1749
)
 
1750
 
 
1751
(define-function pbclient_set_ulong
 
1752
  (c-name "bonobo_pbclient_set_ulong")
 
1753
  (return-type "none")
 
1754
  (parameters
 
1755
    '("Bonobo_PropertyBag" "bag")
 
1756
    '("const-char*" "key")
 
1757
    '("guint32" "value")
 
1758
    '("CORBA_Environment*" "opt_ev")
 
1759
  )
 
1760
)
 
1761
 
 
1762
(define-function pbclient_set_float
 
1763
  (c-name "bonobo_pbclient_set_float")
 
1764
  (return-type "none")
 
1765
  (parameters
 
1766
    '("Bonobo_PropertyBag" "bag")
 
1767
    '("const-char*" "key")
 
1768
    '("gfloat" "value")
 
1769
    '("CORBA_Environment*" "opt_ev")
 
1770
  )
 
1771
)
 
1772
 
 
1773
(define-function pbclient_set_double
 
1774
  (c-name "bonobo_pbclient_set_double")
 
1775
  (return-type "none")
 
1776
  (parameters
 
1777
    '("Bonobo_PropertyBag" "bag")
 
1778
    '("const-char*" "key")
 
1779
    '("gdouble" "value")
 
1780
    '("CORBA_Environment*" "opt_ev")
 
1781
  )
 
1782
)
 
1783
 
 
1784
(define-function pbclient_set_boolean
 
1785
  (c-name "bonobo_pbclient_set_boolean")
 
1786
  (return-type "none")
 
1787
  (parameters
 
1788
    '("Bonobo_PropertyBag" "bag")
 
1789
    '("const-char*" "key")
 
1790
    '("gboolean" "value")
 
1791
    '("CORBA_Environment*" "opt_ev")
 
1792
  )
 
1793
)
 
1794
 
 
1795
(define-function pbclient_set_char
 
1796
  (c-name "bonobo_pbclient_set_char")
 
1797
  (return-type "none")
 
1798
  (parameters
 
1799
    '("Bonobo_PropertyBag" "bag")
 
1800
    '("const-char*" "key")
 
1801
    '("gchar" "value")
 
1802
    '("CORBA_Environment*" "opt_ev")
 
1803
  )
 
1804
)
 
1805
 
 
1806
(define-function pbclient_set_value
 
1807
  (c-name "bonobo_pbclient_set_value")
 
1808
  (return-type "none")
 
1809
  (parameters
 
1810
    '("Bonobo_PropertyBag" "bag")
 
1811
    '("const-char*" "key")
 
1812
    '("CORBA_any*" "value")
 
1813
    '("CORBA_Environment*" "opt_ev")
 
1814
  )
 
1815
)
 
1816
 
 
1817
(define-function pbclient_get_doc_title
 
1818
  (c-name "bonobo_pbclient_get_doc_title")
 
1819
  (return-type "char*")
 
1820
  (parameters
 
1821
    '("Bonobo_PropertyBag" "bag")
 
1822
    '("const-char*" "key")
 
1823
    '("CORBA_Environment*" "opt_ev")
 
1824
  )
 
1825
)
 
1826
 
 
1827
(define-function pbclient_get_doc
 
1828
  (c-name "bonobo_pbclient_get_doc")
 
1829
  (return-type "char*")
 
1830
  (parameters
 
1831
    '("Bonobo_PropertyBag" "bag")
 
1832
    '("const-char*" "key")
 
1833
    '("CORBA_Environment*" "opt_ev")
 
1834
  )
 
1835
)
 
1836
 
 
1837
(define-function pbclient_get_keys
 
1838
  (c-name "bonobo_pbclient_get_keys")
 
1839
  (return-type "GList*")
 
1840
  (parameters
 
1841
    '("Bonobo_PropertyBag" "bag")
 
1842
    '("CORBA_Environment*" "opt_ev")
 
1843
  )
 
1844
)
 
1845
 
 
1846
(define-function pbclient_free_keys
 
1847
  (c-name "bonobo_pbclient_free_keys")
 
1848
  (return-type "none")
 
1849
  (parameters
 
1850
    '("GList*" "key_list")
 
1851
  )
 
1852
)
 
1853
 
 
1854
(define-function pbclient_get_flags
 
1855
  (c-name "bonobo_pbclient_get_flags")
 
1856
  (return-type "Bonobo_PropertyFlags")
 
1857
  (caller-owns-return #f)
 
1858
  (parameters
 
1859
    '("Bonobo_PropertyBag" "bag")
 
1860
    '("const-char*" "key")
 
1861
    '("CORBA_Environment*" "opt_ev")
 
1862
  )
 
1863
)
 
1864
 
 
1865
(define-function pbclient_set
 
1866
  (c-name "bonobo_pbclient_set")
 
1867
  (return-type "none")
 
1868
  (parameters
 
1869
    '("Bonobo_PropertyBag" "bag")
 
1870
    '("CORBA_Environment*" "opt_ev")
 
1871
    '("const-char*" "first_prop")
 
1872
  )
 
1873
  (varargs #t)
 
1874
)
 
1875
 
 
1876
(define-function pbclient_get
 
1877
  (c-name "bonobo_pbclient_get")
 
1878
  (return-type "none")
 
1879
  (parameters
 
1880
    '("Bonobo_PropertyBag" "bag")
 
1881
    '("CORBA_Environment*" "opt_ev")
 
1882
    '("const-char*" "first_prop")
 
1883
  )
 
1884
  (varargs #t)
 
1885
)
 
1886
 
 
1887
(define-function pbclient_setv
 
1888
  (c-name "bonobo_pbclient_setv")
 
1889
  (return-type "char*")
 
1890
  (parameters
 
1891
    '("Bonobo_PropertyBag" "bag")
 
1892
    '("CORBA_Environment*" "ev")
 
1893
    '("const-char*" "first_prop")
 
1894
    '("va_list" "var_args")
 
1895
  )
 
1896
)
 
1897
 
 
1898
(define-function pbclient_getv
 
1899
  (c-name "bonobo_pbclient_getv")
 
1900
  (return-type "char*")
 
1901
  (parameters
 
1902
    '("Bonobo_PropertyBag" "bag")
 
1903
    '("CORBA_Environment*" "ev")
 
1904
    '("const-char*" "first_prop")
 
1905
    '("va_list" "var_args")
 
1906
  )
 
1907
)
 
1908
 
 
1909
 
 
1910
 
 
1911
;; From /home/james/cvs/gnome2/libbonobo/bonobo/bonobo-property-bag.h
 
1912
 
 
1913
(define-function property_bag_get_type
 
1914
  (c-name "bonobo_property_bag_get_type")
 
1915
  (return-type "GType")
 
1916
)
 
1917
 
 
1918
(define-function property_bag_new
 
1919
  (c-name "bonobo_property_bag_new")
 
1920
  (is-constructor-of BonoboPropertyBag)
 
1921
  (return-type "BonoboPropertyBag*")
 
1922
  (caller-owns-return #f)
 
1923
  (parameters
 
1924
    '("BonoboPropertyGetFn" "get_prop_cb")
 
1925
    '("BonoboPropertySetFn" "set_prop_cb")
 
1926
    '("gpointer" "user_data")
 
1927
  )
 
1928
)
 
1929
 
 
1930
(define-function property_bag_new_closure
 
1931
  (c-name "bonobo_property_bag_new_closure")
 
1932
  (is-constructor-of BonoboPropertyBag)    
 
1933
  (return-type "BonoboPropertyBag*")
 
1934
  (caller-owns-return #f)
 
1935
  (parameters
 
1936
    '("GClosure*" "get_prop")
 
1937
    '("GClosure*" "set_prop")
 
1938
  )
 
1939
)
 
1940
 
 
1941
(define-function property_bag_new_full
 
1942
  (c-name "bonobo_property_bag_new_full")
 
1943
  (return-type "BonoboPropertyBag*")
 
1944
  (caller-owns-return #f)
 
1945
  (parameters
 
1946
    '("GClosure*" "get_prop")
 
1947
    '("GClosure*" "set_prop")
 
1948
    '("BonoboEventSource*" "event_source")
 
1949
  )
 
1950
)
 
1951
 
 
1952
(define-method construct
 
1953
  (of-object "BonoboPropertyBag")
 
1954
  (c-name "bonobo_property_bag_construct")
 
1955
  (return-type "BonoboPropertyBag*")
 
1956
  (parameters
 
1957
    '("GClosure*" "get_prop")
 
1958
    '("GClosure*" "set_prop")
 
1959
    '("BonoboEventSource*" "event_source")
 
1960
  )
 
1961
)
 
1962
 
 
1963
(define-method add
 
1964
  (of-object "BonoboPropertyBag")
 
1965
  (c-name "bonobo_property_bag_add")
 
1966
  (return-type "none")
 
1967
  (parameters
 
1968
    '("const-char*" "name")
 
1969
    '("int" "idx")
 
1970
    '("BonoboArgType" "type")
 
1971
    '("BonoboArg*" "default_value")
 
1972
    '("const-char*" "doctitle")
 
1973
    '("Bonobo_PropertyFlags" "flags")
 
1974
  )
 
1975
)
 
1976
 
 
1977
(define-method add_full
 
1978
  (of-object "BonoboPropertyBag")
 
1979
  (c-name "bonobo_property_bag_add_full")
 
1980
  (return-type "none")
 
1981
  (parameters
 
1982
    '("const-char*" "name")
 
1983
    '("int" "idx")
 
1984
    '("BonoboArgType" "type")
 
1985
    '("BonoboArg*" "default_value")
 
1986
    '("const-char*" "doctitle")
 
1987
    '("const-char*" "docstring")
 
1988
    '("Bonobo_PropertyFlags" "flags")
 
1989
    '("GClosure*" "get_prop")
 
1990
    '("GClosure*" "set_prop")
 
1991
  )
 
1992
)
 
1993
 
 
1994
(define-method remove
 
1995
  (of-object "BonoboPropertyBag")
 
1996
  (c-name "bonobo_property_bag_remove")
 
1997
  (return-type "none")
 
1998
  (parameters
 
1999
    '("const-char*" "name")
 
2000
  )
 
2001
)
 
2002
 
 
2003
(define-method map_params
 
2004
  (of-object "BonoboPropertyBag")
 
2005
  (c-name "bonobo_property_bag_map_params")
 
2006
  (return-type "none")
 
2007
  (parameters
 
2008
    '("GObject*" "on_instance")
 
2009
    '("const-GParamSpec**" "pspecs")
 
2010
    '("guint" "n_params")
 
2011
  )
 
2012
)
 
2013
 
 
2014
(define-method get_prop_list
 
2015
  (of-object "BonoboPropertyBag")
 
2016
  (c-name "bonobo_property_bag_get_prop_list")
 
2017
  (return-type "GList*")
 
2018
)
 
2019
 
 
2020
 
 
2021
 
 
2022
;; From /home/james/cvs/gnome2/libbonobo/bonobo/bonobo-shlib-factory.h
 
2023
 
 
2024
(define-function shlib_factory_get_type
 
2025
  (c-name "bonobo_shlib_factory_get_type")
 
2026
  (return-type "GType")
 
2027
)
 
2028
 
 
2029
(define-method construct
 
2030
  (of-object "BonoboShlibFactory")
 
2031
  (c-name "bonobo_shlib_factory_construct")
 
2032
  (return-type "BonoboShlibFactory*")
 
2033
  (parameters
 
2034
    '("const-char*" "component_id")
 
2035
    '("PortableServer_POA" "poa")
 
2036
    '("gpointer" "act_impl_ptr")
 
2037
    '("GClosure*" "closure")
 
2038
  )
 
2039
)
 
2040
 
 
2041
(define-function shlib_factory_new
 
2042
  (c-name "bonobo_shlib_factory_new")
 
2043
  (is-constructor-of BonoboShlibFactory)
 
2044
  (return-type "BonoboShlibFactory*")
 
2045
  (caller-owns-return #f)
 
2046
  (parameters
 
2047
    '("const-char*" "component_id")
 
2048
    '("PortableServer_POA" "poa")
 
2049
    '("gpointer" "act_impl_ptr")
 
2050
    '("BonoboFactoryCallback" "factory_cb")
 
2051
    '("gpointer" "user_data")
 
2052
  )
 
2053
)
 
2054
 
 
2055
(define-function shlib_factory_new_closure
 
2056
  (c-name "bonobo_shlib_factory_new_closure")
 
2057
  (is-constructor-of BonoboShlibFactory)
 
2058
  (return-type "BonoboShlibFactory*")
 
2059
  (caller-owns-return #f)
 
2060
  (parameters
 
2061
    '("const-char*" "component_id")
 
2062
    '("PortableServer_POA" "poa")
 
2063
    '("gpointer" "act_impl_ptr")
 
2064
    '("GClosure*" "factory_closure")
 
2065
  )
 
2066
)
 
2067
 
 
2068
(define-function shlib_factory_std
 
2069
  (c-name "bonobo_shlib_factory_std")
 
2070
  (return-type "Bonobo_Unknown")
 
2071
  (caller-owns-return #f)
 
2072
  (parameters
 
2073
    '("const-char*" "component_id")
 
2074
    '("PortableServer_POA" "poa")
 
2075
    '("gpointer" "act_impl_ptr")
 
2076
    '("BonoboFactoryCallback" "factory_cb")
 
2077
    '("gpointer" "user_data")
 
2078
    '("CORBA_Environment*" "ev")
 
2079
  )
 
2080
)
 
2081
 
 
2082
 
 
2083
 
 
2084
;; From /home/james/cvs/gnome2/libbonobo/bonobo/bonobo-storage.h
 
2085
 
 
2086
 
 
2087
 
 
2088
;; From /home/james/cvs/gnome2/libbonobo/bonobo/bonobo-storage-memory.h
 
2089
 
 
2090
(define-function storage_mem_get_type
 
2091
  (c-name "bonobo_storage_mem_get_type")
 
2092
  (return-type "GType")
 
2093
)
 
2094
 
 
2095
(define-function storage_mem_create
 
2096
  (c-name "bonobo_storage_mem_create")
 
2097
  (return-type "BonoboObject*")
 
2098
)
 
2099
 
 
2100
 
 
2101
 
 
2102
;; From /home/james/cvs/gnome2/libbonobo/bonobo/bonobo-stream-client.h
 
2103
 
 
2104
(define-function stream_client_read
 
2105
  (c-name "bonobo_stream_client_read")
 
2106
  (return-type "guint8*")
 
2107
  (parameters
 
2108
    '("const-Bonobo_Stream" "stream")
 
2109
    '("const-size_t" "size")
 
2110
    '("CORBA_long*" "length_read")
 
2111
    '("CORBA_Environment*" "ev")
 
2112
  )
 
2113
)
 
2114
 
 
2115
(define-function stream_client_write_string
 
2116
  (c-name "bonobo_stream_client_write_string")
 
2117
  (return-type "none")
 
2118
  (parameters
 
2119
    '("const-Bonobo_Stream" "stream")
 
2120
    '("const-char*" "str")
 
2121
    '("const-gboolean" "terminate")
 
2122
    '("CORBA_Environment*" "ev")
 
2123
  )
 
2124
)
 
2125
 
 
2126
(define-function stream_client_printf
 
2127
  (c-name "bonobo_stream_client_printf")
 
2128
  (return-type "none")
 
2129
  (parameters
 
2130
    '("const-Bonobo_Stream" "stream")
 
2131
    '("const-gboolean" "terminate")
 
2132
    '("CORBA_Environment*" "ev")
 
2133
    '("const-char*" "fmt")
 
2134
  )
 
2135
  (varargs #t)
 
2136
)
 
2137
 
 
2138
(define-function stream_client_read_string
 
2139
  (c-name "bonobo_stream_client_read_string")
 
2140
  (return-type "CORBA_long")
 
2141
  (parameters
 
2142
    '("const-Bonobo_Stream" "stream")
 
2143
    '("char**" "str")
 
2144
    '("CORBA_Environment*" "ev")
 
2145
  )
 
2146
)
 
2147
 
 
2148
(define-function stream_client_get_length
 
2149
  (c-name "bonobo_stream_client_get_length")
 
2150
  (return-type "CORBA_long")
 
2151
  (parameters
 
2152
    '("const-Bonobo_Stream" "stream")
 
2153
    '("CORBA_Environment*" "ev")
 
2154
  )
 
2155
)
 
2156
 
 
2157
 
 
2158
 
 
2159
;; From /home/james/cvs/gnome2/libbonobo/bonobo/bonobo-stream.h
 
2160
 
 
2161
 
 
2162
 
 
2163
;; From /home/james/cvs/gnome2/libbonobo/bonobo/bonobo-stream-memory.h
 
2164
 
 
2165
(define-function stream_mem_get_type
 
2166
  (c-name "bonobo_stream_mem_get_type")
 
2167
  (return-type "GType")
 
2168
)
 
2169
 
 
2170
(define-method construct
 
2171
  (of-object "BonoboStreamMem")
 
2172
  (c-name "bonobo_stream_mem_construct")
 
2173
  (return-type "BonoboStreamMem*")
 
2174
  (parameters
 
2175
    '("const-char*" "buffer")
 
2176
    '("size_t" "size")
 
2177
    '("gboolean" "read_only")
 
2178
    '("gboolean" "resizable")
 
2179
  )
 
2180
)
 
2181
 
 
2182
(define-function stream_mem_create
 
2183
  (c-name "bonobo_stream_mem_create")
 
2184
  (is-constructor-of "BonoboStreamMem")
 
2185
  (return-type "BonoboStream*")
 
2186
  (parameters
 
2187
    '("const-char*" "buffer")
 
2188
    '("gboolean" "read_only")
 
2189
    '("gboolean" "resizable")
 
2190
  )
 
2191
)
 
2192
 
 
2193
(define-method get_buffer
 
2194
  (of-object "BonoboStreamMem")
 
2195
  (c-name "bonobo_stream_mem_get_buffer")
 
2196
  (return-type "const-char*")
 
2197
)
 
2198
 
 
2199
;(define-method get_size
 
2200
;  (of-object "BonoboStreamMem")
 
2201
;  (c-name "bonobo_stream_mem_get_size")
 
2202
;  (return-type "size_t")
 
2203
;)
 
2204
 
 
2205
 
 
2206
 
 
2207
;; From /home/james/cvs/gnome2/libbonobo/bonobo/bonobo-types.h
 
2208
 
 
2209
(define-function unknown_get_type
 
2210
  (c-name "bonobo_unknown_get_type")
 
2211
  (return-type "GType")
 
2212
)
 
2213
 
 
2214
(define-function corba_any_get_type
 
2215
  (c-name "bonobo_corba_any_get_type")
 
2216
  (return-type "GType")
 
2217
)
 
2218
 
 
2219
(define-function corba_object_get_type
 
2220
  (c-name "bonobo_corba_object_get_type")
 
2221
  (return-type "GType")
 
2222
)
 
2223
 
 
2224
(define-function corba_typecode_get_type
 
2225
  (c-name "bonobo_corba_typecode_get_type")
 
2226
  (return-type "GType")
 
2227
)
 
2228
 
 
2229
(define-function corba_exception_get_type
 
2230
  (c-name "bonobo_corba_exception_get_type")
 
2231
  (return-type "GType")
 
2232
)
 
2233
 
 
2234
(define-function value_get_unknown
 
2235
  (c-name "bonobo_value_get_unknown")
 
2236
  (return-type "Bonobo_Unknown")
 
2237
  (caller-owns-return #f)
 
2238
  (parameters
 
2239
    '("const-GValue*" "value")
 
2240
  )
 
2241
)
 
2242
 
 
2243
(define-function value_get_corba_any
 
2244
  (c-name "bonobo_value_get_corba_any")
 
2245
  (return-type "BonoboArg*")
 
2246
  (parameters
 
2247
    '("const-GValue*" "value")
 
2248
  )
 
2249
)
 
2250
 
 
2251
(define-function value_get_corba_object
 
2252
  (c-name "bonobo_value_get_corba_object")
 
2253
  (return-type "CORBA_Object")
 
2254
  (parameters
 
2255
    '("const-GValue*" "value")
 
2256
  )
 
2257
)
 
2258
 
 
2259
(define-function value_get_corba_typecode
 
2260
  (c-name "bonobo_value_get_corba_typecode")
 
2261
  (return-type "CORBA_TypeCode")
 
2262
  (parameters
 
2263
    '("const-GValue*" "value")
 
2264
  )
 
2265
)
 
2266
 
 
2267
(define-function value_get_corba_exception
 
2268
  (c-name "bonobo_value_get_corba_exception")
 
2269
  (return-type "const-CORBA_Environment*")
 
2270
  (parameters
 
2271
    '("const-GValue*" "value")
 
2272
  )
 
2273
)
 
2274
 
 
2275
(define-function value_set_corba_object
 
2276
  (c-name "bonobo_value_set_corba_object")
 
2277
  (return-type "none")
 
2278
  (parameters
 
2279
    '("GValue*" "value")
 
2280
    '("const-CORBA_Object" "object")
 
2281
  )
 
2282
)
 
2283
 
 
2284
(define-function value_set_unknown
 
2285
  (c-name "bonobo_value_set_unknown")
 
2286
  (return-type "none")
 
2287
  (parameters
 
2288
    '("GValue*" "value")
 
2289
    '("const-Bonobo_Unknown" "unknown")
 
2290
  )
 
2291
)
 
2292
 
 
2293
(define-function value_set_corba_any
 
2294
  (c-name "bonobo_value_set_corba_any")
 
2295
  (return-type "none")
 
2296
  (parameters
 
2297
    '("GValue*" "value")
 
2298
    '("const-CORBA_any*" "any")
 
2299
  )
 
2300
)
 
2301
 
 
2302
(define-function value_set_corba_typecode
 
2303
  (c-name "bonobo_value_set_corba_typecode")
 
2304
  (return-type "none")
 
2305
  (parameters
 
2306
    '("GValue*" "value")
 
2307
    '("const-CORBA_TypeCode" "tc")
 
2308
  )
 
2309
)
 
2310
 
 
2311
(define-function value_set_corba_environment
 
2312
  (c-name "bonobo_value_set_corba_environment")
 
2313
  (return-type "none")
 
2314
  (parameters
 
2315
    '("GValue*" "value")
 
2316
    '("const-CORBA_Environment*" "ev")
 
2317
  )
 
2318
)
 
2319
 
 
2320
(define-function closure_invoke_va_list
 
2321
  (c-name "bonobo_closure_invoke_va_list")
 
2322
  (return-type "none")
 
2323
  (parameters
 
2324
    '("GClosure*" "closure")
 
2325
    '("GValue*" "return_value")
 
2326
    '("va_list" "var_args")
 
2327
  )
 
2328
)
 
2329
 
 
2330
(define-function closure_invoke
 
2331
  (c-name "bonobo_closure_invoke")
 
2332
  (return-type "none")
 
2333
  (parameters
 
2334
    '("GClosure*" "closure")
 
2335
    '("GType" "return_type")
 
2336
  )
 
2337
  (varargs #t)
 
2338
)
 
2339
 
 
2340
(define-function closure_store
 
2341
  (c-name "bonobo_closure_store")
 
2342
  (return-type "GClosure*")
 
2343
  (parameters
 
2344
    '("GClosure*" "closure")
 
2345
    '("GClosureMarshal" "default_marshal")
 
2346
  )
 
2347
)
 
2348
 
 
2349
 
 
2350
 
 
2351
;; From /home/james/cvs/gnome2/libbonobo/bonobo/bonobo-xobject.h
 
2352
 
 
2353
;; From bonobo-item-handler.h
 
2354
 
 
2355
(define-function item_handler_get_type
 
2356
  (c-name "bonobo_item_handler_get_type")
 
2357
  (return-type "GType")
 
2358
)
 
2359
 
 
2360
(define-function item_handler_new
 
2361
  (c-name "bonobo_item_handler_new")
 
2362
  (is-constructor-of BonoboItemHandler)  
 
2363
  (return-type "BonoboItemHandler*")
 
2364
  (caller-owns-return #f)
 
2365
  (parameters
 
2366
    '("BonoboItemHandlerEnumObjectsFn" "enum_objects")
 
2367
    '("BonoboItemHandlerGetObjectFn" "get_object")
 
2368
    '("gpointer" "user_data")
 
2369
  )
 
2370
)
 
2371
 
 
2372
(define-function item_handler_new_closure
 
2373
  (c-name "bonobo_item_handler_new_closure")
 
2374
  (is-constructor-of BonoboItemHandler)  
 
2375
  (return-type "BonoboItemHandler*")
 
2376
  (caller-owns-return #f)
 
2377
  (parameters
 
2378
    '("GClosure*" "enum_objects")
 
2379
    '("GClosure*" "get_object")
 
2380
  )
 
2381
)
 
2382
 
 
2383
(define-method construct
 
2384
  (of-object "BonoboItemHandler")
 
2385
  (c-name "bonobo_item_handler_construct")
 
2386
  (return-type "BonoboItemHandler*")
 
2387
  (parameters
 
2388
    '("GClosure*" "enum_objects")
 
2389
    '("GClosure*" "get_object")
 
2390
  )
 
2391
)
 
2392
 
 
2393
(define-function item_option_parse
 
2394
  (c-name "bonobo_item_option_parse")
 
2395
  (return-type "GSList*")
 
2396
  (parameters
 
2397
    '("const-char*" "option_string")
 
2398
  )
 
2399
)
 
2400
 
 
2401
(define-function item_options_free
 
2402
  (c-name "bonobo_item_options_free")
 
2403
  (return-type "none")
 
2404
  (parameters
 
2405
    '("GSList*" "options")
 
2406
  )
 
2407
)
 
2408
 
 
2409
;; From bonobo-foreign-object.h
 
2410
(define-function foreign_object_new
 
2411
  (c-name "bonobo_foreign_object_new")
 
2412
  (is-constructor-of BonoboForeignObject)
 
2413
  (return-type "BonoboObject*")
 
2414
  (caller-owns-return #f)
 
2415
  (parameters
 
2416
   '("CORBA_Object" "corba_objref")
 
2417
   )
 
2418
)
 
2419
 
 
2420
;; From bonobo-application.h
 
2421
(define-function application_new
 
2422
  (c-name "bonobo_application_new")
 
2423
  (is-constructor-of BonoboApplication)
 
2424
  (return-type "BonoboObject*")
 
2425
  (caller-owns-return #f)
 
2426
  (parameters
 
2427
   '("const-gchar*" "name")
 
2428
   )
 
2429
)
 
2430
 
 
2431
(define-method register_message
 
2432
  (of-object "BonoboApplication")
 
2433
  (c-name "bonobo_application_register_message_v")
 
2434
  (return-type "none")
 
2435
  (parameters
 
2436
   '("const-gchar*" "name")
 
2437
   '("const-gchar*" "description")
 
2438
   '("GClosure*"    "closure")
 
2439
   '("GType"        "return_type")
 
2440
   '("GType*"       "arg_types")
 
2441
  )
 
2442
)
 
2443
 
 
2444
(define-method create_serverinfo
 
2445
  (of-object "BonoboApplication")
 
2446
  (c-name "bonobo_application_create_serverinfo")
 
2447
  (parameters
 
2448
   '("const-gchar*" "envp"))
 
2449
  (return-type "gchar*")
 
2450
)
 
2451
 
 
2452
(define-method register_unique
 
2453
  (of-object "BonoboApplication")
 
2454
  (c-name "bonobo_application_register_unique")
 
2455
  (parameters
 
2456
   '("const-gchar*" "serverinfo"))
 
2457
  (return-type "BonoboAppClient*")
 
2458
)
 
2459
 
 
2460
(define-method new_instance
 
2461
  (of-object "BonoboApplication")
 
2462
  (c-name "bonobo_application_new_instance")
 
2463
  (return-type "gint")
 
2464
  (parameters
 
2465
   '("gint" "argc")
 
2466
   '("gchar*" "argv")
 
2467
   )
 
2468
)
 
2469
 
 
2470
;; From bonobo-app-client.h
 
2471
 
 
2472
 
 
2473
(define-function app_client_new
 
2474
  (c-name "bonobo_app_client_new")
 
2475
  (is-constructor-of BonoboAppClient)
 
2476
  (return-type "BonoboAppClient*")
 
2477
  (parameters
 
2478
   '("CORBA_Object" "app_server")
 
2479
   )
 
2480
)
 
2481
 
 
2482
(define-method msg_send
 
2483
  (of-object "BonoboAppClient")
 
2484
  (c-name "bonobo_app_client_msg_send_argv")
 
2485
  (return-type "GValue*")
 
2486
  (parameters
 
2487
   '("const-gchar*"       "message")
 
2488
   '("const-GValue**"     "argv")
 
2489
   '("CORBA_Environment*" "ev")
 
2490
   )
 
2491
)
 
2492
 
 
2493
(define-method new_instance
 
2494
  (of-object "BonoboAppClient")
 
2495
  (c-name "bonobo_app_client_new_instance")
 
2496
  (return-type "gint")
 
2497
  (parameters
 
2498
   '("gint" "argc")
 
2499
   '("gchar*" "argv")
 
2500
   '("CORBA_Environment*" "ev")
 
2501
   )
 
2502
)
 
2503
 
 
2504
(define-method msg_list
 
2505
  (of-object "BonoboAppClient")
 
2506
  (c-name "bonobo_app_client_msg_list")
 
2507
  ;(return-type "BonoboAppClientMsgDesc const *")
 
2508
)
 
2509