]> git.0d.be Git - empathy.git/blob - python/pyempathy/pyempathy.defs
Update python bindings
[empathy.git] / python / pyempathy / pyempathy.defs
1 ;; -*- scheme -*-
2 ; object definitions ...
3 (define-object AccountManager
4   (in-module "Empathy")
5   (parent "GObject")
6   (c-name "EmpathyAccountManager")
7   (gtype-id "EMPATHY_TYPE_ACCOUNT_MANAGER")
8 )
9
10 (define-object Chatroom
11   (in-module "Empathy")
12   (parent "GObject")
13   (c-name "EmpathyChatroom")
14   (gtype-id "EMPATHY_TYPE_CHATROOM")
15 )
16
17 (define-object ChatroomManager
18   (in-module "Empathy")
19   (parent "GObject")
20   (c-name "EmpathyChatroomManager")
21   (gtype-id "EMPATHY_TYPE_CHATROOM_MANAGER")
22 )
23
24 (define-object Contact
25   (in-module "Empathy")
26   (parent "GObject")
27   (c-name "EmpathyContact")
28   (gtype-id "EMPATHY_TYPE_CONTACT")
29 )
30
31 (define-object ContactFactory
32   (in-module "Empathy")
33   (parent "GObject")
34   (c-name "EmpathyContactFactory")
35   (gtype-id "EMPATHY_TYPE_CONTACT_FACTORY")
36 )
37
38 (define-interface ContactList
39   (in-module "Empathy")
40   (c-name "EmpathyContactList")
41   (gtype-id "EMPATHY_TYPE_CONTACT_LIST")
42 )
43
44 (define-object ContactManager
45   (in-module "Empathy")
46   (parent "GObject")
47   (implements "EmpathyContactList")
48   (c-name "EmpathyContactManager")
49   (gtype-id "EMPATHY_TYPE_CONTACT_MANAGER")
50 )
51
52 (define-object ContactMonitor
53   (in-module "Empathy")
54   (parent "GObject")
55   (c-name "EmpathyContactMonitor")
56   (gtype-id "EMPATHY_TYPE_CONTACT_MONITOR")
57 )
58
59 (define-object DispatchOperation
60   (in-module "Empathy")
61   (parent "GObject")
62   (c-name "EmpathyDispatchOperation")
63   (gtype-id "EMPATHY_TYPE_DISPATCH_OPERATION")
64 )
65
66 (define-object Dispatcher
67   (in-module "Empathy")
68   (parent "GObject")
69   (c-name "EmpathyDispatcher")
70   (gtype-id "EMPATHY_TYPE_DISPATCHER")
71 )
72
73 (define-object Idle
74   (in-module "Empathy")
75   (parent "GObject")
76   (c-name "EmpathyIdle")
77   (gtype-id "EMPATHY_TYPE_IDLE")
78 )
79
80 (define-object IrcNetwork
81   (in-module "Empathy")
82   (parent "GObject")
83   (c-name "EmpathyIrcNetwork")
84   (gtype-id "EMPATHY_TYPE_IRC_NETWORK")
85 )
86
87 (define-object IrcNetworkManager
88   (in-module "Empathy")
89   (parent "GObject")
90   (c-name "EmpathyIrcNetworkManager")
91   (gtype-id "EMPATHY_TYPE_IRC_NETWORK_MANAGER")
92 )
93
94 (define-object IrcServer
95   (in-module "Empathy")
96   (parent "GObject")
97   (c-name "EmpathyIrcServer")
98   (gtype-id "EMPATHY_TYPE_IRC_SERVER")
99 )
100
101 (define-object LogManager
102   (in-module "Empathy")
103   (parent "GObject")
104   (c-name "EmpathyLogManager")
105   (gtype-id "EMPATHY_TYPE_LOG_MANAGER")
106 )
107
108 (define-object Message
109   (in-module "Empathy")
110   (parent "GObject")
111   (c-name "EmpathyMessage")
112   (gtype-id "EMPATHY_TYPE_MESSAGE")
113 )
114
115 (define-object TpCall
116   (in-module "Empathy")
117   (parent "GObject")
118   (c-name "EmpathyTpCall")
119   (gtype-id "EMPATHY_TYPE_TP_CALL")
120 )
121
122 (define-object TpChat
123   (in-module "Empathy")
124   (parent "GObject")
125   (c-name "EmpathyTpChat")
126   (gtype-id "EMPATHY_TYPE_TP_CHAT")
127 )
128
129 (define-object TpContactFactory
130   (in-module "Empathy")
131   (parent "GObject")
132   (c-name "EmpathyTpContactFactory")
133   (gtype-id "EMPATHY_TYPE_TP_CONTACT_FACTORY")
134 )
135
136 (define-object TpContactList
137   (in-module "Empathy")
138   (parent "GObject")
139   (implements "EmpathyContactList")
140   (c-name "EmpathyTpContactList")
141   (gtype-id "EMPATHY_TYPE_TP_CONTACT_LIST")
142 )
143
144 (define-object TpFile
145   (in-module "Empathy")
146   (parent "GObject")
147   (c-name "EmpathyTpFile")
148   (gtype-id "EMPATHY_TYPE_TP_FILE")
149 )
150
151 (define-object TpGroup
152   (in-module "Empathy")
153   (parent "GObject")
154   (c-name "EmpathyTpGroup")
155   (gtype-id "EMPATHY_TYPE_TP_GROUP")
156 )
157
158 (define-object TpRoomlist
159   (in-module "Empathy")
160   (parent "GObject")
161   (c-name "EmpathyTpRoomlist")
162   (gtype-id "EMPATHY_TYPE_TP_ROOMLIST")
163 )
164
165 (define-object TpTube
166   (in-module "Empathy")
167   (parent "GObject")
168   (c-name "EmpathyTpTube")
169   (gtype-id "EMPATHY_TYPE_TP_TUBE")
170 )
171
172 (define-object TubeHandler
173   (in-module "Empathy")
174   (parent "GObject")
175   (c-name "EmpathyTubeHandler")
176   (gtype-id "EMPATHY_TYPE_TUBE_HANDLER")
177 )
178
179 ;; Enumerations and flags ...
180
181 (define-flags Capabilities
182   (in-module "Empathy")
183   (c-name "EmpathyCapabilities")
184   (gtype-id "EMPATHY_TYPE_CAPABILITIES")
185   (values
186     '("none" "EMPATHY_CAPABILITIES_NONE")
187     '("audio" "EMPATHY_CAPABILITIES_AUDIO")
188     '("video" "EMPATHY_CAPABILITIES_VIDEO")
189     '("ft" "EMPATHY_CAPABILITIES_FT")
190     '("unknown" "EMPATHY_CAPABILITIES_UNKNOWN")
191   )
192 )
193
194 (define-flags ContactReady
195   (in-module "Empathy")
196   (c-name "EmpathyContactReady")
197   (gtype-id "EMPATHY_TYPE_CONTACT_READY")
198   (values
199     '("none" "EMPATHY_CONTACT_READY_NONE")
200     '("id" "EMPATHY_CONTACT_READY_ID")
201     '("handle" "EMPATHY_CONTACT_READY_HANDLE")
202     '("name" "EMPATHY_CONTACT_READY_NAME")
203     '("all" "EMPATHY_CONTACT_READY_ALL")
204   )
205 )
206
207 (define-flags DebugFlags
208   (in-module "Empathy")
209   (c-name "EmpathyDebugFlags")
210   (gtype-id "EMPATHY_TYPE_DEBUG_FLAGS")
211   (values
212     '("tp" "EMPATHY_DEBUG_TP")
213     '("chat" "EMPATHY_DEBUG_CHAT")
214     '("contact" "EMPATHY_DEBUG_CONTACT")
215     '("account" "EMPATHY_DEBUG_ACCOUNT")
216     '("irc" "EMPATHY_DEBUG_IRC")
217     '("dispatcher" "EMPATHY_DEBUG_DISPATCHER")
218     '("ft" "EMPATHY_DEBUG_FT")
219     '("other" "EMPATHY_DEBUG_OTHER")
220   )
221 )
222
223 (define-enum DispatchOperationState
224   (in-module "Empathy")
225   (c-name "EmpathyDispatchOperationState")
226   (gtype-id "EMPATHY_TYPE_DISPATCH_OPERATION_STATE")
227   (values
228     '("preparing" "EMPATHY_DISPATCHER_OPERATION_STATE_PREPARING")
229     '("pending" "EMPATHY_DISPATCHER_OPERATION_STATE_PENDING")
230     '("approving" "EMPATHY_DISPATCHER_OPERATION_STATE_APPROVING")
231     '("dispatching" "EMPATHY_DISPATCHER_OPERATION_STATE_DISPATCHING")
232     '("claimed" "EMPATHY_DISPATCHER_OPERATION_STATE_CLAIMED")
233     '("invalidated" "EMPATHY_DISPATCHER_OPERATION_STATE_INVALIDATED")
234   )
235 )
236
237 (define-enum TpCallStatus
238   (in-module "Empathy")
239   (c-name "EmpathyTpCallStatus")
240   (gtype-id "EMPATHY_TYPE_TP_CALL_STATUS")
241   (values
242     '("readying" "EMPATHY_TP_CALL_STATUS_READYING")
243     '("pending" "EMPATHY_TP_CALL_STATUS_PENDING")
244     '("accepted" "EMPATHY_TP_CALL_STATUS_ACCEPTED")
245     '("closed" "EMPATHY_TP_CALL_STATUS_CLOSED")
246   )
247 )
248
249 (define-enum TubeType
250   (in-module "Empathy")
251   (c-name "EmpathyTubeType")
252   (gtype-id "EMPATHY_TYPE_TUBE_TYPE")
253   (values
254     '("stream-tube" "EMPATHY_TYPE_STREAM_TUBE")
255     '("dbus-tube" "EMPATHY_TYPE_DBUS_TUBE")
256   )
257 )
258
259
260 ;; From empathy-account-manager.h
261
262 (define-function account_manager_get_type
263   (c-name "empathy_account_manager_get_type")
264   (return-type "GType")
265 )
266
267 (define-function account_manager_dup_singleton
268   (c-name "empathy_account_manager_dup_singleton")
269   (return-type "EmpathyAccountManager*")
270 )
271
272 (define-method get_connected_accounts
273   (of-object "EmpathyAccountManager")
274   (c-name "empathy_account_manager_get_connected_accounts")
275   (return-type "int")
276 )
277
278 (define-method get_connecting_accounts
279   (of-object "EmpathyAccountManager")
280   (c-name "empathy_account_manager_get_connecting_accounts")
281   (return-type "int")
282 )
283
284 (define-method is_account_just_connected
285   (of-object "EmpathyAccountManager")
286   (c-name "empathy_account_manager_is_account_just_connected")
287   (return-type "gboolean")
288   (parameters
289     '("McAccount*" "account")
290   )
291 )
292
293 (define-method get_count
294   (of-object "EmpathyAccountManager")
295   (c-name "empathy_account_manager_get_count")
296   (return-type "int")
297 )
298
299
300
301 ;; From empathy-chatroom.h
302
303 (define-function chatroom_get_type
304   (c-name "empathy_chatroom_get_type")
305   (return-type "GType")
306 )
307
308 (define-function chatroom_new
309   (c-name "empathy_chatroom_new")
310   (is-constructor-of "EmpathyChatroom")
311   (return-type "EmpathyChatroom*")
312   (parameters
313     '("McAccount*" "account")
314   )
315 )
316
317 (define-function chatroom_new_full
318   (c-name "empathy_chatroom_new_full")
319   (return-type "EmpathyChatroom*")
320   (parameters
321     '("McAccount*" "account")
322     '("const-gchar*" "room")
323     '("const-gchar*" "name")
324     '("gboolean" "auto_connect")
325   )
326 )
327
328 (define-method get_account
329   (of-object "EmpathyChatroom")
330   (c-name "empathy_chatroom_get_account")
331   (return-type "McAccount*")
332 )
333
334 (define-method set_account
335   (of-object "EmpathyChatroom")
336   (c-name "empathy_chatroom_set_account")
337   (return-type "none")
338   (parameters
339     '("McAccount*" "account")
340   )
341 )
342
343 (define-method get_room
344   (of-object "EmpathyChatroom")
345   (c-name "empathy_chatroom_get_room")
346   (return-type "const-gchar*")
347 )
348
349 (define-method set_room
350   (of-object "EmpathyChatroom")
351   (c-name "empathy_chatroom_set_room")
352   (return-type "none")
353   (parameters
354     '("const-gchar*" "room")
355   )
356 )
357
358 (define-method get_name
359   (of-object "EmpathyChatroom")
360   (c-name "empathy_chatroom_get_name")
361   (return-type "const-gchar*")
362 )
363
364 (define-method set_name
365   (of-object "EmpathyChatroom")
366   (c-name "empathy_chatroom_set_name")
367   (return-type "none")
368   (parameters
369     '("const-gchar*" "name")
370   )
371 )
372
373 (define-method get_auto_connect
374   (of-object "EmpathyChatroom")
375   (c-name "empathy_chatroom_get_auto_connect")
376   (return-type "gboolean")
377 )
378
379 (define-method set_auto_connect
380   (of-object "EmpathyChatroom")
381   (c-name "empathy_chatroom_set_auto_connect")
382   (return-type "none")
383   (parameters
384     '("gboolean" "auto_connect")
385   )
386 )
387
388 (define-function chatroom_equal
389   (c-name "empathy_chatroom_equal")
390   (return-type "gboolean")
391   (parameters
392     '("gconstpointer" "v1")
393     '("gconstpointer" "v2")
394   )
395 )
396
397 (define-method get_tp_chat
398   (of-object "EmpathyChatroom")
399   (c-name "empathy_chatroom_get_tp_chat")
400   (return-type "EmpathyTpChat*")
401 )
402
403
404
405 ;; From empathy-chatroom-manager.h
406
407 (define-function chatroom_manager_get_type
408   (c-name "empathy_chatroom_manager_get_type")
409   (return-type "GType")
410 )
411
412 (define-function chatroom_manager_dup_singleton
413   (c-name "empathy_chatroom_manager_dup_singleton")
414   (return-type "EmpathyChatroomManager*")
415   (parameters
416     '("const-gchar*" "file")
417   )
418 )
419
420 (define-method add
421   (of-object "EmpathyChatroomManager")
422   (c-name "empathy_chatroom_manager_add")
423   (return-type "gboolean")
424   (parameters
425     '("EmpathyChatroom*" "chatroom")
426   )
427 )
428
429 (define-method remove
430   (of-object "EmpathyChatroomManager")
431   (c-name "empathy_chatroom_manager_remove")
432   (return-type "none")
433   (parameters
434     '("EmpathyChatroom*" "chatroom")
435   )
436 )
437
438 (define-method find
439   (of-object "EmpathyChatroomManager")
440   (c-name "empathy_chatroom_manager_find")
441   (return-type "EmpathyChatroom*")
442   (parameters
443     '("McAccount*" "account")
444     '("const-gchar*" "room")
445   )
446 )
447
448 (define-method get_chatrooms
449   (of-object "EmpathyChatroomManager")
450   (c-name "empathy_chatroom_manager_get_chatrooms")
451   (return-type "GList*")
452   (parameters
453     '("McAccount*" "account")
454   )
455 )
456
457 (define-method get_count
458   (of-object "EmpathyChatroomManager")
459   (c-name "empathy_chatroom_manager_get_count")
460   (return-type "guint")
461   (parameters
462     '("McAccount*" "account")
463   )
464 )
465
466 (define-method observe
467   (of-object "EmpathyChatroomManager")
468   (c-name "empathy_chatroom_manager_observe")
469   (return-type "none")
470   (parameters
471     '("EmpathyDispatcher*" "dispatcher")
472   )
473 )
474
475
476
477 ;; From empathy-contact.h
478
479 (define-function contact_get_type
480   (c-name "empathy_contact_get_type")
481   (return-type "GType")
482 )
483
484 (define-function contact_new
485   (c-name "empathy_contact_new")
486   (is-constructor-of "EmpathyContact")
487   (return-type "EmpathyContact*")
488   (parameters
489     '("McAccount*" "account")
490   )
491 )
492
493 (define-function contact_new_full
494   (c-name "empathy_contact_new_full")
495   (return-type "EmpathyContact*")
496   (parameters
497     '("McAccount*" "account")
498     '("const-gchar*" "id")
499     '("const-gchar*" "name")
500   )
501 )
502
503 (define-method get_id
504   (of-object "EmpathyContact")
505   (c-name "empathy_contact_get_id")
506   (return-type "const-gchar*")
507 )
508
509 (define-method set_id
510   (of-object "EmpathyContact")
511   (c-name "empathy_contact_set_id")
512   (return-type "none")
513   (parameters
514     '("const-gchar*" "id")
515   )
516 )
517
518 (define-method get_name
519   (of-object "EmpathyContact")
520   (c-name "empathy_contact_get_name")
521   (return-type "const-gchar*")
522 )
523
524 (define-method set_name
525   (of-object "EmpathyContact")
526   (c-name "empathy_contact_set_name")
527   (return-type "none")
528   (parameters
529     '("const-gchar*" "name")
530   )
531 )
532
533 (define-method get_avatar
534   (of-object "EmpathyContact")
535   (c-name "empathy_contact_get_avatar")
536   (return-type "EmpathyAvatar*")
537 )
538
539 (define-method set_avatar
540   (of-object "EmpathyContact")
541   (c-name "empathy_contact_set_avatar")
542   (return-type "none")
543   (parameters
544     '("EmpathyAvatar*" "avatar")
545   )
546 )
547
548 (define-method get_account
549   (of-object "EmpathyContact")
550   (c-name "empathy_contact_get_account")
551   (return-type "McAccount*")
552 )
553
554 (define-method set_account
555   (of-object "EmpathyContact")
556   (c-name "empathy_contact_set_account")
557   (return-type "none")
558   (parameters
559     '("McAccount*" "account")
560   )
561 )
562
563 (define-method get_presence
564   (of-object "EmpathyContact")
565   (c-name "empathy_contact_get_presence")
566   (return-type "McPresence")
567 )
568
569 (define-method set_presence
570   (of-object "EmpathyContact")
571   (c-name "empathy_contact_set_presence")
572   (return-type "none")
573   (parameters
574     '("McPresence" "presence")
575   )
576 )
577
578 (define-method get_presence_message
579   (of-object "EmpathyContact")
580   (c-name "empathy_contact_get_presence_message")
581   (return-type "const-gchar*")
582 )
583
584 (define-method set_presence_message
585   (of-object "EmpathyContact")
586   (c-name "empathy_contact_set_presence_message")
587   (return-type "none")
588   (parameters
589     '("const-gchar*" "message")
590   )
591 )
592
593 (define-method get_handle
594   (of-object "EmpathyContact")
595   (c-name "empathy_contact_get_handle")
596   (return-type "guint")
597 )
598
599 (define-method set_handle
600   (of-object "EmpathyContact")
601   (c-name "empathy_contact_set_handle")
602   (return-type "none")
603   (parameters
604     '("guint" "handle")
605   )
606 )
607
608 (define-method get_capabilities
609   (of-object "EmpathyContact")
610   (c-name "empathy_contact_get_capabilities")
611   (return-type "EmpathyCapabilities")
612 )
613
614 (define-method set_capabilities
615   (of-object "EmpathyContact")
616   (c-name "empathy_contact_set_capabilities")
617   (return-type "none")
618   (parameters
619     '("EmpathyCapabilities" "capabilities")
620   )
621 )
622
623 (define-method get_ready
624   (of-object "EmpathyContact")
625   (c-name "empathy_contact_get_ready")
626   (return-type "EmpathyContactReady")
627 )
628
629 (define-method is_user
630   (of-object "EmpathyContact")
631   (c-name "empathy_contact_is_user")
632   (return-type "gboolean")
633 )
634
635 (define-method set_is_user
636   (of-object "EmpathyContact")
637   (c-name "empathy_contact_set_is_user")
638   (return-type "none")
639   (parameters
640     '("gboolean" "is_user")
641   )
642 )
643
644 (define-method is_online
645   (of-object "EmpathyContact")
646   (c-name "empathy_contact_is_online")
647   (return-type "gboolean")
648 )
649
650 (define-method get_status
651   (of-object "EmpathyContact")
652   (c-name "empathy_contact_get_status")
653   (return-type "const-gchar*")
654 )
655
656 (define-method can_voip
657   (of-object "EmpathyContact")
658   (c-name "empathy_contact_can_voip")
659   (return-type "gboolean")
660 )
661
662 (define-method can_send_files
663   (of-object "EmpathyContact")
664   (c-name "empathy_contact_can_send_files")
665   (return-type "gboolean")
666 )
667
668 (define-function contact_equal
669   (c-name "empathy_contact_equal")
670   (return-type "gboolean")
671   (parameters
672     '("gconstpointer" "v1")
673     '("gconstpointer" "v2")
674   )
675 )
676
677 (define-function contact_hash
678   (c-name "empathy_contact_hash")
679   (return-type "guint")
680   (parameters
681     '("gconstpointer" "key")
682   )
683 )
684
685 (define-method call_when_ready
686   (of-object "EmpathyContact")
687   (c-name "empathy_contact_call_when_ready")
688   (return-type "none")
689   (parameters
690     '("EmpathyContactReady" "ready")
691     '("EmpathyContactReadyCb*" "callback")
692     '("gpointer" "user_data")
693     '("GDestroyNotify" "destroy")
694     '("GObject*" "weak_object")
695   )
696 )
697
698 (define-method run_until_ready
699   (of-object "EmpathyContact")
700   (c-name "empathy_contact_run_until_ready")
701   (return-type "none")
702   (parameters
703     '("EmpathyContactReady" "ready")
704     '("GMainLoop**" "loop")
705   )
706 )
707
708 (define-method load_avatar_data
709   (of-object "EmpathyContact")
710   (c-name "empathy_contact_load_avatar_data")
711   (return-type "none")
712   (parameters
713     '("const-guchar*" "data")
714     '("const-gsize" "len")
715     '("const-gchar*" "format")
716     '("const-gchar*" "token")
717   )
718 )
719
720 (define-method load_avatar_cache
721   (of-object "EmpathyContact")
722   (c-name "empathy_contact_load_avatar_cache")
723   (return-type "gboolean")
724   (parameters
725     '("const-gchar*" "token")
726   )
727 )
728
729 (define-function avatar_get_type
730   (c-name "empathy_avatar_get_type")
731   (return-type "GType")
732 )
733
734 (define-function avatar_new
735   (c-name "empathy_avatar_new")
736   (is-constructor-of "EmpathyAvatar")
737   (return-type "EmpathyAvatar*")
738   (parameters
739     '("guchar*" "data")
740     '("gsize" "len")
741     '("gchar*" "format")
742     '("gchar*" "token")
743   )
744 )
745
746 (define-method ref
747   (of-object "EmpathyAvatar")
748   (c-name "empathy_avatar_ref")
749   (return-type "EmpathyAvatar*")
750 )
751
752 (define-method unref
753   (of-object "EmpathyAvatar")
754   (c-name "empathy_avatar_unref")
755   (return-type "none")
756 )
757
758 (define-method save_to_file
759   (of-object "EmpathyAvatar")
760   (c-name "empathy_avatar_save_to_file")
761   (return-type "gboolean")
762   (parameters
763     '("const-gchar*" "filename")
764     '("GError**" "error")
765   )
766 )
767
768
769
770 ;; From empathy-contact-factory.h
771
772 (define-function contact_factory_get_type
773   (c-name "empathy_contact_factory_get_type")
774   (return-type "GType")
775 )
776
777 (define-function contact_factory_dup_singleton
778   (c-name "empathy_contact_factory_dup_singleton")
779   (return-type "EmpathyContactFactory*")
780 )
781
782 (define-method get_tp_factory
783   (of-object "EmpathyContactFactory")
784   (c-name "empathy_contact_factory_get_tp_factory")
785   (return-type "EmpathyTpContactFactory*")
786   (parameters
787     '("McAccount*" "account")
788   )
789 )
790
791 (define-method get_user
792   (of-object "EmpathyContactFactory")
793   (c-name "empathy_contact_factory_get_user")
794   (return-type "EmpathyContact*")
795   (parameters
796     '("McAccount*" "account")
797   )
798 )
799
800 (define-method get_from_id
801   (of-object "EmpathyContactFactory")
802   (c-name "empathy_contact_factory_get_from_id")
803   (return-type "EmpathyContact*")
804   (parameters
805     '("McAccount*" "account")
806     '("const-gchar*" "id")
807   )
808 )
809
810 (define-method get_from_handle
811   (of-object "EmpathyContactFactory")
812   (c-name "empathy_contact_factory_get_from_handle")
813   (return-type "EmpathyContact*")
814   (parameters
815     '("McAccount*" "account")
816     '("guint" "handle")
817   )
818 )
819
820 (define-method get_from_handles
821   (of-object "EmpathyContactFactory")
822   (c-name "empathy_contact_factory_get_from_handles")
823   (return-type "GList*")
824   (parameters
825     '("McAccount*" "account")
826     '("const-GArray*" "handles")
827   )
828 )
829
830 (define-method set_alias
831   (of-object "EmpathyContactFactory")
832   (c-name "empathy_contact_factory_set_alias")
833   (return-type "none")
834   (parameters
835     '("EmpathyContact*" "contact")
836     '("const-gchar*" "alias")
837   )
838 )
839
840 (define-method set_avatar
841   (of-object "EmpathyContactFactory")
842   (c-name "empathy_contact_factory_set_avatar")
843   (return-type "none")
844   (parameters
845     '("McAccount*" "account")
846     '("const-gchar*" "data")
847     '("gsize" "size")
848     '("const-gchar*" "mime_type")
849   )
850 )
851
852
853
854 ;; From empathy-contact-groups.h
855
856 (define-function contact_groups_get_all
857   (c-name "empathy_contact_groups_get_all")
858   (return-type "none")
859 )
860
861 (define-function contact_group_get_expanded
862   (c-name "empathy_contact_group_get_expanded")
863   (return-type "gboolean")
864   (parameters
865     '("const-gchar*" "group")
866   )
867 )
868
869 (define-function contact_group_set_expanded
870   (c-name "empathy_contact_group_set_expanded")
871   (return-type "none")
872   (parameters
873     '("const-gchar*" "group")
874     '("gboolean" "expanded")
875   )
876 )
877
878
879
880 ;; From empathy-contact-list.h
881
882 (define-function contact_list_get_type
883   (c-name "empathy_contact_list_get_type")
884   (return-type "GType")
885 )
886
887 (define-method add
888   (of-object "EmpathyContactList")
889   (c-name "empathy_contact_list_add")
890   (return-type "none")
891   (parameters
892     '("EmpathyContact*" "contact")
893     '("const-gchar*" "message")
894   )
895 )
896
897 (define-method remove
898   (of-object "EmpathyContactList")
899   (c-name "empathy_contact_list_remove")
900   (return-type "none")
901   (parameters
902     '("EmpathyContact*" "contact")
903     '("const-gchar*" "message")
904   )
905 )
906
907 (define-method get_members
908   (of-object "EmpathyContactList")
909   (c-name "empathy_contact_list_get_members")
910   (return-type "GList*")
911 )
912
913 (define-method get_pendings
914   (of-object "EmpathyContactList")
915   (c-name "empathy_contact_list_get_pendings")
916   (return-type "GList*")
917 )
918
919 (define-method get_all_groups
920   (of-object "EmpathyContactList")
921   (c-name "empathy_contact_list_get_all_groups")
922   (return-type "GList*")
923 )
924
925 (define-method get_groups
926   (of-object "EmpathyContactList")
927   (c-name "empathy_contact_list_get_groups")
928   (return-type "GList*")
929   (parameters
930     '("EmpathyContact*" "contact")
931   )
932 )
933
934 (define-method add_to_group
935   (of-object "EmpathyContactList")
936   (c-name "empathy_contact_list_add_to_group")
937   (return-type "none")
938   (parameters
939     '("EmpathyContact*" "contact")
940     '("const-gchar*" "group")
941   )
942 )
943
944 (define-method remove_from_group
945   (of-object "EmpathyContactList")
946   (c-name "empathy_contact_list_remove_from_group")
947   (return-type "none")
948   (parameters
949     '("EmpathyContact*" "contact")
950     '("const-gchar*" "group")
951   )
952 )
953
954 (define-method rename_group
955   (of-object "EmpathyContactList")
956   (c-name "empathy_contact_list_rename_group")
957   (return-type "none")
958   (parameters
959     '("const-gchar*" "old_group")
960     '("const-gchar*" "new_group")
961   )
962 )
963
964 (define-method remove_group
965   (of-object "EmpathyContactList")
966   (c-name "empathy_contact_list_remove_group")
967   (return-type "none")
968   (parameters
969     '("const-gchar*" "group")
970   )
971 )
972
973 (define-method get_monitor
974   (of-object "EmpathyContactList")
975   (c-name "empathy_contact_list_get_monitor")
976   (return-type "EmpathyContactMonitor*")
977 )
978
979
980
981 ;; From empathy-contact-manager.h
982
983 (define-function contact_manager_get_type
984   (c-name "empathy_contact_manager_get_type")
985   (return-type "GType")
986 )
987
988 (define-function contact_manager_dup_singleton
989   (c-name "empathy_contact_manager_dup_singleton")
990   (return-type "EmpathyContactManager*")
991 )
992
993 (define-method get_list
994   (of-object "EmpathyContactManager")
995   (c-name "empathy_contact_manager_get_list")
996   (return-type "EmpathyTpContactList*")
997   (parameters
998     '("McAccount*" "account")
999   )
1000 )
1001
1002 (define-method can_add
1003   (of-object "EmpathyContactManager")
1004   (c-name "empathy_contact_manager_can_add")
1005   (return-type "gboolean")
1006   (parameters
1007     '("McAccount*" "account")
1008   )
1009 )
1010
1011
1012
1013 ;; From empathy-contact-monitor.h
1014
1015 (define-function contact_monitor_get_type
1016   (c-name "empathy_contact_monitor_get_type")
1017   (return-type "GType")
1018 )
1019
1020 (define-method set_iface
1021   (of-object "EmpathyContactMonitor")
1022   (c-name "empathy_contact_monitor_set_iface")
1023   (return-type "none")
1024   (parameters
1025     '("EmpathyContactList*" "iface")
1026   )
1027 )
1028
1029 (define-function contact_monitor_new_for_iface
1030   (c-name "empathy_contact_monitor_new_for_iface")
1031   (return-type "EmpathyContactMonitor*")
1032   (parameters
1033     '("EmpathyContactList*" "iface")
1034   )
1035 )
1036
1037
1038
1039 ;; From empathy-debug.h
1040
1041 (define-function debug_flag_is_set
1042   (c-name "empathy_debug_flag_is_set")
1043   (return-type "gboolean")
1044   (parameters
1045     '("EmpathyDebugFlags" "flag")
1046   )
1047 )
1048
1049 (define-function debug
1050   (c-name "empathy_debug")
1051   (return-type "none")
1052   (parameters
1053     '("EmpathyDebugFlags" "flag")
1054     '("const-gchar*" "format")
1055   )
1056   (varargs #t)
1057 )
1058
1059 (define-function debug_set_flags
1060   (c-name "empathy_debug_set_flags")
1061   (return-type "none")
1062   (parameters
1063     '("const-gchar*" "flags_string")
1064   )
1065 )
1066
1067
1068
1069 ;; From empathy-dispatcher.h
1070
1071 (define-function dispatcher_get_type
1072   (c-name "empathy_dispatcher_get_type")
1073   (return-type "GType")
1074 )
1075
1076 (define-method create_channel
1077   (of-object "EmpathyDispatcher")
1078   (c-name "empathy_dispatcher_create_channel")
1079   (return-type "none")
1080   (parameters
1081     '("McAccount*" "account")
1082     '("GHashTable*" "request")
1083     '("EmpathyDispatcherRequestCb*" "callback")
1084     '("gpointer" "user_data")
1085   )
1086 )
1087
1088 (define-function dispatcher_call_with_contact
1089   (c-name "empathy_dispatcher_call_with_contact")
1090   (return-type "none")
1091   (parameters
1092     '("EmpathyContact*" "contact")
1093     '("EmpathyDispatcherRequestCb*" "callback")
1094     '("gpointer" "user_data")
1095   )
1096 )
1097
1098 (define-function dispatcher_chat_with_contact_id
1099   (c-name "empathy_dispatcher_chat_with_contact_id")
1100   (return-type "none")
1101   (parameters
1102     '("McAccount*" "account")
1103     '("const-gchar*" "contact_id")
1104     '("EmpathyDispatcherRequestCb*" "callback")
1105     '("gpointer" "user_data")
1106   )
1107 )
1108
1109 (define-function dispatcher_chat_with_contact
1110   (c-name "empathy_dispatcher_chat_with_contact")
1111   (return-type "none")
1112   (parameters
1113     '("EmpathyContact*" "contact")
1114     '("EmpathyDispatcherRequestCb*" "callback")
1115     '("gpointer" "user_data")
1116   )
1117 )
1118
1119 (define-function dispatcher_send_file_to_contact
1120   (c-name "empathy_dispatcher_send_file_to_contact")
1121   (return-type "none")
1122   (parameters
1123     '("EmpathyContact*" "contact")
1124     '("const-gchar*" "filename")
1125     '("guint64" "size")
1126     '("guint64" "date")
1127     '("const-gchar*" "content_type")
1128     '("EmpathyDispatcherRequestCb*" "callback")
1129     '("gpointer" "user_data")
1130   )
1131 )
1132
1133 (define-function dispatcher_join_muc
1134   (c-name "empathy_dispatcher_join_muc")
1135   (return-type "none")
1136   (parameters
1137     '("McAccount*" "account")
1138     '("const-gchar*" "roomname")
1139     '("EmpathyDispatcherRequestCb*" "callback")
1140     '("gpointer" "user_data")
1141   )
1142 )
1143
1144 (define-method find_channel_class
1145   (of-object "EmpathyDispatcher")
1146   (c-name "empathy_dispatcher_find_channel_class")
1147   (return-type "GStrv")
1148   (parameters
1149     '("McAccount*" "account")
1150     '("const-gchar*" "channel_type")
1151     '("guint" "handle_type")
1152   )
1153 )
1154
1155 (define-function dispatcher_dup_singleton
1156   (c-name "empathy_dispatcher_dup_singleton")
1157   (return-type "EmpathyDispatcher*")
1158 )
1159
1160
1161
1162 ;; From empathy-dispatch-operation.h
1163
1164 (define-function dispatch_operation_get_type
1165   (c-name "empathy_dispatch_operation_get_type")
1166   (return-type "GType")
1167 )
1168
1169 (define-function dispatch_operation_new
1170   (c-name "empathy_dispatch_operation_new")
1171   (is-constructor-of "EmpathyDispatchOperation")
1172   (return-type "EmpathyDispatchOperation*")
1173   (parameters
1174     '("TpConnection*" "connection")
1175     '("TpChannel*" "channel")
1176     '("EmpathyContact*" "contact")
1177     '("gboolean" "incoming")
1178   )
1179 )
1180
1181 (define-function dispatch_operation_new_with_wrapper
1182   (c-name "empathy_dispatch_operation_new_with_wrapper")
1183   (return-type "EmpathyDispatchOperation*")
1184   (parameters
1185     '("TpConnection*" "connection")
1186     '("TpChannel*" "channel")
1187     '("EmpathyContact*" "contact")
1188     '("gboolean" "incoming")
1189     '("GObject*" "channel_wrapper")
1190   )
1191 )
1192
1193 (define-method start
1194   (of-object "EmpathyDispatchOperation")
1195   (c-name "empathy_dispatch_operation_start")
1196   (return-type "none")
1197 )
1198
1199 (define-method approve
1200   (of-object "EmpathyDispatchOperation")
1201   (c-name "empathy_dispatch_operation_approve")
1202   (return-type "none")
1203 )
1204
1205 (define-method claim
1206   (of-object "EmpathyDispatchOperation")
1207   (c-name "empathy_dispatch_operation_claim")
1208   (return-type "gboolean")
1209 )
1210
1211 (define-method get_channel
1212   (of-object "EmpathyDispatchOperation")
1213   (c-name "empathy_dispatch_operation_get_channel")
1214   (return-type "TpChannel*")
1215 )
1216
1217 (define-method get_channel_wrapper
1218   (of-object "EmpathyDispatchOperation")
1219   (c-name "empathy_dispatch_operation_get_channel_wrapper")
1220   (return-type "GObject*")
1221 )
1222
1223 (define-method get_tp_connection
1224   (of-object "EmpathyDispatchOperation")
1225   (c-name "empathy_dispatch_operation_get_tp_connection")
1226   (return-type "TpConnection*")
1227 )
1228
1229 (define-method get_channel_type
1230   (of-object "EmpathyDispatchOperation")
1231   (c-name "empathy_dispatch_operation_get_channel_type")
1232   (return-type "const-gchar*")
1233 )
1234
1235 (define-method get_channel_type_id
1236   (of-object "EmpathyDispatchOperation")
1237   (c-name "empathy_dispatch_operation_get_channel_type_id")
1238   (return-type "GQuark")
1239 )
1240
1241 (define-method get_object_path
1242   (of-object "EmpathyDispatchOperation")
1243   (c-name "empathy_dispatch_operation_get_object_path")
1244   (return-type "const-gchar*")
1245 )
1246
1247 (define-method get_status
1248   (of-object "EmpathyDispatchOperation")
1249   (c-name "empathy_dispatch_operation_get_status")
1250   (return-type "EmpathyDispatchOperationState")
1251 )
1252
1253 (define-method is_incoming
1254   (of-object "EmpathyDispatchOperation")
1255   (c-name "empathy_dispatch_operation_is_incoming")
1256   (return-type "gboolean")
1257 )
1258
1259
1260
1261 ;; From empathy-idle.h
1262
1263 (define-function idle_get_type
1264   (c-name "empathy_idle_get_type")
1265   (return-type "GType")
1266 )
1267
1268 (define-function idle_dup_singleton
1269   (c-name "empathy_idle_dup_singleton")
1270   (return-type "EmpathyIdle*")
1271 )
1272
1273 (define-method get_state
1274   (of-object "EmpathyIdle")
1275   (c-name "empathy_idle_get_state")
1276   (return-type "McPresence")
1277 )
1278
1279 (define-method set_state
1280   (of-object "EmpathyIdle")
1281   (c-name "empathy_idle_set_state")
1282   (return-type "none")
1283   (parameters
1284     '("McPresence" "state")
1285   )
1286 )
1287
1288 (define-method get_status
1289   (of-object "EmpathyIdle")
1290   (c-name "empathy_idle_get_status")
1291   (return-type "const-gchar*")
1292 )
1293
1294 (define-method set_status
1295   (of-object "EmpathyIdle")
1296   (c-name "empathy_idle_set_status")
1297   (return-type "none")
1298   (parameters
1299     '("const-gchar*" "status")
1300   )
1301 )
1302
1303 (define-method get_flash_state
1304   (of-object "EmpathyIdle")
1305   (c-name "empathy_idle_get_flash_state")
1306   (return-type "McPresence")
1307 )
1308
1309 (define-method set_flash_state
1310   (of-object "EmpathyIdle")
1311   (c-name "empathy_idle_set_flash_state")
1312   (return-type "none")
1313   (parameters
1314     '("McPresence" "state")
1315   )
1316 )
1317
1318 (define-method set_presence
1319   (of-object "EmpathyIdle")
1320   (c-name "empathy_idle_set_presence")
1321   (return-type "none")
1322   (parameters
1323     '("McPresence" "state")
1324     '("const-gchar*" "status")
1325   )
1326 )
1327
1328 (define-method get_auto_away
1329   (of-object "EmpathyIdle")
1330   (c-name "empathy_idle_get_auto_away")
1331   (return-type "gboolean")
1332 )
1333
1334 (define-method set_auto_away
1335   (of-object "EmpathyIdle")
1336   (c-name "empathy_idle_set_auto_away")
1337   (return-type "none")
1338   (parameters
1339     '("gboolean" "auto_away")
1340   )
1341 )
1342
1343 (define-method get_use_nm
1344   (of-object "EmpathyIdle")
1345   (c-name "empathy_idle_get_use_nm")
1346   (return-type "gboolean")
1347 )
1348
1349 (define-method set_use_nm
1350   (of-object "EmpathyIdle")
1351   (c-name "empathy_idle_set_use_nm")
1352   (return-type "none")
1353   (parameters
1354     '("gboolean" "use_nm")
1355   )
1356 )
1357
1358
1359
1360 ;; From empathy-irc-network.h
1361
1362 (define-function irc_network_get_type
1363   (c-name "empathy_irc_network_get_type")
1364   (return-type "GType")
1365 )
1366
1367 (define-function irc_network_new
1368   (c-name "empathy_irc_network_new")
1369   (is-constructor-of "EmpathyIrcNetwork")
1370   (return-type "EmpathyIrcNetwork*")
1371   (parameters
1372     '("const-gchar*" "name")
1373   )
1374 )
1375
1376 (define-method get_servers
1377   (of-object "EmpathyIrcNetwork")
1378   (c-name "empathy_irc_network_get_servers")
1379   (return-type "GSList*")
1380 )
1381
1382 (define-method append_server
1383   (of-object "EmpathyIrcNetwork")
1384   (c-name "empathy_irc_network_append_server")
1385   (return-type "none")
1386   (parameters
1387     '("EmpathyIrcServer*" "server")
1388   )
1389 )
1390
1391 (define-method remove_server
1392   (of-object "EmpathyIrcNetwork")
1393   (c-name "empathy_irc_network_remove_server")
1394   (return-type "none")
1395   (parameters
1396     '("EmpathyIrcServer*" "server")
1397   )
1398 )
1399
1400 (define-method set_server_position
1401   (of-object "EmpathyIrcNetwork")
1402   (c-name "empathy_irc_network_set_server_position")
1403   (return-type "none")
1404   (parameters
1405     '("EmpathyIrcServer*" "server")
1406     '("gint" "pos")
1407   )
1408 )
1409
1410
1411
1412 ;; From empathy-irc-network-manager.h
1413
1414 (define-function irc_network_manager_get_type
1415   (c-name "empathy_irc_network_manager_get_type")
1416   (return-type "GType")
1417 )
1418
1419 (define-function irc_network_manager_new
1420   (c-name "empathy_irc_network_manager_new")
1421   (is-constructor-of "EmpathyIrcNetworkManager")
1422   (return-type "EmpathyIrcNetworkManager*")
1423   (parameters
1424     '("const-gchar*" "global_file")
1425     '("const-gchar*" "user_file")
1426   )
1427 )
1428
1429 (define-method add
1430   (of-object "EmpathyIrcNetworkManager")
1431   (c-name "empathy_irc_network_manager_add")
1432   (return-type "none")
1433   (parameters
1434     '("EmpathyIrcNetwork*" "network")
1435   )
1436 )
1437
1438 (define-method remove
1439   (of-object "EmpathyIrcNetworkManager")
1440   (c-name "empathy_irc_network_manager_remove")
1441   (return-type "none")
1442   (parameters
1443     '("EmpathyIrcNetwork*" "network")
1444   )
1445 )
1446
1447 (define-method get_networks
1448   (of-object "EmpathyIrcNetworkManager")
1449   (c-name "empathy_irc_network_manager_get_networks")
1450   (return-type "GSList*")
1451 )
1452
1453 (define-method find_network_by_address
1454   (of-object "EmpathyIrcNetworkManager")
1455   (c-name "empathy_irc_network_manager_find_network_by_address")
1456   (return-type "EmpathyIrcNetwork*")
1457   (parameters
1458     '("const-gchar*" "address")
1459   )
1460 )
1461
1462
1463
1464 ;; From empathy-irc-server.h
1465
1466 (define-function irc_server_get_type
1467   (c-name "empathy_irc_server_get_type")
1468   (return-type "GType")
1469 )
1470
1471 (define-function irc_server_new
1472   (c-name "empathy_irc_server_new")
1473   (is-constructor-of "EmpathyIrcServer")
1474   (return-type "EmpathyIrcServer*")
1475   (parameters
1476     '("const-gchar*" "address")
1477     '("guint" "port")
1478     '("gboolean" "ssl")
1479   )
1480 )
1481
1482
1483
1484 ;; From empathy-log-manager.h
1485
1486 (define-function log_manager_get_type
1487   (c-name "empathy_log_manager_get_type")
1488   (return-type "GType")
1489 )
1490
1491 (define-function log_manager_dup_singleton
1492   (c-name "empathy_log_manager_dup_singleton")
1493   (return-type "EmpathyLogManager*")
1494 )
1495
1496 (define-method add_message
1497   (of-object "EmpathyLogManager")
1498   (c-name "empathy_log_manager_add_message")
1499   (return-type "none")
1500   (parameters
1501     '("const-gchar*" "chat_id")
1502     '("gboolean" "chatroom")
1503     '("EmpathyMessage*" "message")
1504   )
1505 )
1506
1507 (define-method exists
1508   (of-object "EmpathyLogManager")
1509   (c-name "empathy_log_manager_exists")
1510   (return-type "gboolean")
1511   (parameters
1512     '("McAccount*" "account")
1513     '("const-gchar*" "chat_id")
1514     '("gboolean" "chatroom")
1515   )
1516 )
1517
1518 (define-method get_dates
1519   (of-object "EmpathyLogManager")
1520   (c-name "empathy_log_manager_get_dates")
1521   (return-type "GList*")
1522   (parameters
1523     '("McAccount*" "account")
1524     '("const-gchar*" "chat_id")
1525     '("gboolean" "chatroom")
1526   )
1527 )
1528
1529 (define-method get_messages_for_file
1530   (of-object "EmpathyLogManager")
1531   (c-name "empathy_log_manager_get_messages_for_file")
1532   (return-type "GList*")
1533   (parameters
1534     '("const-gchar*" "filename")
1535   )
1536 )
1537
1538 (define-method get_messages_for_date
1539   (of-object "EmpathyLogManager")
1540   (c-name "empathy_log_manager_get_messages_for_date")
1541   (return-type "GList*")
1542   (parameters
1543     '("McAccount*" "account")
1544     '("const-gchar*" "chat_id")
1545     '("gboolean" "chatroom")
1546     '("const-gchar*" "date")
1547   )
1548 )
1549
1550 (define-method get_last_messages
1551   (of-object "EmpathyLogManager")
1552   (c-name "empathy_log_manager_get_last_messages")
1553   (return-type "GList*")
1554   (parameters
1555     '("McAccount*" "account")
1556     '("const-gchar*" "chat_id")
1557     '("gboolean" "chatroom")
1558   )
1559 )
1560
1561 (define-method get_messages_for_file
1562   (of-object "EmpathyLogManager")
1563   (c-name "empathy_log_manager_get_messages_for_file")
1564   (return-type "GList*")
1565   (parameters
1566     '("const-gchar*" "filename")
1567   )
1568 )
1569
1570 (define-method get_chats
1571   (of-object "EmpathyLogManager")
1572   (c-name "empathy_log_manager_get_chats")
1573   (return-type "GList*")
1574   (parameters
1575     '("McAccount*" "account")
1576   )
1577 )
1578
1579 (define-method search_new
1580   (of-object "EmpathyLogManager")
1581   (c-name "empathy_log_manager_search_new")
1582   (return-type "GList*")
1583   (parameters
1584     '("const-gchar*" "text")
1585   )
1586 )
1587
1588 (define-function log_manager_search_free
1589   (c-name "empathy_log_manager_search_free")
1590   (return-type "none")
1591   (parameters
1592     '("GList*" "hits")
1593   )
1594 )
1595
1596 (define-function log_manager_get_date_readable
1597   (c-name "empathy_log_manager_get_date_readable")
1598   (return-type "gchar*")
1599   (parameters
1600     '("const-gchar*" "date")
1601   )
1602 )
1603
1604
1605
1606 ;; From empathy-message.h
1607
1608 (define-function message_get_type
1609   (c-name "empathy_message_get_type")
1610   (return-type "GType")
1611 )
1612
1613 (define-function message_new
1614   (c-name "empathy_message_new")
1615   (is-constructor-of "EmpathyMessage")
1616   (return-type "EmpathyMessage*")
1617   (parameters
1618     '("const-gchar*" "body")
1619   )
1620 )
1621
1622 (define-method get_tptype
1623   (of-object "EmpathyMessage")
1624   (c-name "empathy_message_get_tptype")
1625   (return-type "TpChannelTextMessageType")
1626 )
1627
1628 (define-method set_tptype
1629   (of-object "EmpathyMessage")
1630   (c-name "empathy_message_set_tptype")
1631   (return-type "none")
1632   (parameters
1633     '("TpChannelTextMessageType" "type")
1634   )
1635 )
1636
1637 (define-method get_sender
1638   (of-object "EmpathyMessage")
1639   (c-name "empathy_message_get_sender")
1640   (return-type "EmpathyContact*")
1641 )
1642
1643 (define-method set_sender
1644   (of-object "EmpathyMessage")
1645   (c-name "empathy_message_set_sender")
1646   (return-type "none")
1647   (parameters
1648     '("EmpathyContact*" "contact")
1649   )
1650 )
1651
1652 (define-method get_receiver
1653   (of-object "EmpathyMessage")
1654   (c-name "empathy_message_get_receiver")
1655   (return-type "EmpathyContact*")
1656 )
1657
1658 (define-method set_receiver
1659   (of-object "EmpathyMessage")
1660   (c-name "empathy_message_set_receiver")
1661   (return-type "none")
1662   (parameters
1663     '("EmpathyContact*" "contact")
1664   )
1665 )
1666
1667 (define-method get_body
1668   (of-object "EmpathyMessage")
1669   (c-name "empathy_message_get_body")
1670   (return-type "const-gchar*")
1671 )
1672
1673 (define-method set_body
1674   (of-object "EmpathyMessage")
1675   (c-name "empathy_message_set_body")
1676   (return-type "none")
1677   (parameters
1678     '("const-gchar*" "body")
1679   )
1680 )
1681
1682 (define-method get_timestamp
1683   (of-object "EmpathyMessage")
1684   (c-name "empathy_message_get_timestamp")
1685   (return-type "time_t")
1686 )
1687
1688 (define-method set_timestamp
1689   (of-object "EmpathyMessage")
1690   (c-name "empathy_message_set_timestamp")
1691   (return-type "none")
1692   (parameters
1693     '("time_t" "timestamp")
1694   )
1695 )
1696
1697 (define-method should_highlight
1698   (of-object "EmpathyMessage")
1699   (c-name "empathy_message_should_highlight")
1700   (return-type "gboolean")
1701 )
1702
1703 (define-function message_type_from_str
1704   (c-name "empathy_message_type_from_str")
1705   (return-type "TpChannelTextMessageType")
1706   (parameters
1707     '("const-gchar*" "type_str")
1708   )
1709 )
1710
1711 (define-function message_type_to_str
1712   (c-name "empathy_message_type_to_str")
1713   (return-type "const-gchar*")
1714   (parameters
1715     '("TpChannelTextMessageType" "type")
1716   )
1717 )
1718
1719 (define-method get_id
1720   (of-object "EmpathyMessage")
1721   (c-name "empathy_message_get_id")
1722   (return-type "guint")
1723 )
1724
1725 (define-method set_id
1726   (of-object "EmpathyMessage")
1727   (c-name "empathy_message_set_id")
1728   (return-type "none")
1729   (parameters
1730     '("guint" "id")
1731   )
1732 )
1733
1734
1735
1736 ;; From empathy-status-presets.h
1737
1738 (define-function status_presets_get_all
1739   (c-name "empathy_status_presets_get_all")
1740   (return-type "none")
1741 )
1742
1743 (define-function status_presets_get
1744   (c-name "empathy_status_presets_get")
1745   (return-type "GList*")
1746   (parameters
1747     '("McPresence" "state")
1748     '("gint" "max_number")
1749   )
1750 )
1751
1752 (define-function status_presets_set_last
1753   (c-name "empathy_status_presets_set_last")
1754   (return-type "none")
1755   (parameters
1756     '("McPresence" "state")
1757     '("const-gchar*" "status")
1758   )
1759 )
1760
1761 (define-function status_presets_remove
1762   (c-name "empathy_status_presets_remove")
1763   (return-type "none")
1764   (parameters
1765     '("McPresence" "state")
1766     '("const-gchar*" "status")
1767   )
1768 )
1769
1770 (define-function status_presets_reset
1771   (c-name "empathy_status_presets_reset")
1772   (return-type "none")
1773 )
1774
1775 (define-function status_presets_get_default_state
1776   (c-name "empathy_status_presets_get_default_state")
1777   (return-type "McPresence")
1778 )
1779
1780 (define-function status_presets_get_default_status
1781   (c-name "empathy_status_presets_get_default_status")
1782   (return-type "const-gchar*")
1783 )
1784
1785 (define-function status_presets_set_default
1786   (c-name "empathy_status_presets_set_default")
1787   (return-type "none")
1788   (parameters
1789     '("McPresence" "state")
1790     '("const-gchar*" "status")
1791   )
1792 )
1793
1794 (define-function status_presets_clear_default
1795   (c-name "empathy_status_presets_clear_default")
1796   (return-type "none")
1797 )
1798
1799
1800
1801 ;; From empathy-time.h
1802
1803 (define-function time_get_current
1804   (c-name "empathy_time_get_current")
1805   (return-type "time_t")
1806 )
1807
1808 (define-function time_get_local_time
1809   (c-name "empathy_time_get_local_time")
1810   (return-type "time_t")
1811   (parameters
1812     '("struct-tm*" "tm")
1813   )
1814 )
1815
1816 (define-function time_parse
1817   (c-name "empathy_time_parse")
1818   (return-type "time_t")
1819   (parameters
1820     '("const-gchar*" "str")
1821   )
1822 )
1823
1824 (define-function time_to_string_utc
1825   (c-name "empathy_time_to_string_utc")
1826   (return-type "gchar*")
1827   (parameters
1828     '("time_t" "t")
1829     '("const-gchar*" "format")
1830   )
1831 )
1832
1833 (define-function time_to_string_local
1834   (c-name "empathy_time_to_string_local")
1835   (return-type "gchar*")
1836   (parameters
1837     '("time_t" "t")
1838     '("const-gchar*" "format")
1839   )
1840 )
1841
1842
1843
1844 ;; From empathy-tp-call.h
1845
1846 (define-function tp_call_get_type
1847   (c-name "empathy_tp_call_get_type")
1848   (return-type "GType")
1849 )
1850
1851 (define-function tp_call_new
1852   (c-name "empathy_tp_call_new")
1853   (is-constructor-of "EmpathyTpCall")
1854   (return-type "EmpathyTpCall*")
1855   (parameters
1856     '("TpChannel*" "channel")
1857   )
1858 )
1859
1860 (define-method close
1861   (of-object "EmpathyTpCall")
1862   (c-name "empathy_tp_call_close")
1863   (return-type "none")
1864 )
1865
1866 (define-method to
1867   (of-object "EmpathyTpCall")
1868   (c-name "empathy_tp_call_to")
1869   (return-type "none")
1870   (parameters
1871     '("EmpathyContact*" "contact")
1872   )
1873 )
1874
1875 (define-method accept_incoming_call
1876   (of-object "EmpathyTpCall")
1877   (c-name "empathy_tp_call_accept_incoming_call")
1878   (return-type "none")
1879 )
1880
1881 (define-method request_video_stream_direction
1882   (of-object "EmpathyTpCall")
1883   (c-name "empathy_tp_call_request_video_stream_direction")
1884   (return-type "none")
1885   (parameters
1886     '("gboolean" "is_sending")
1887   )
1888 )
1889
1890 (define-method add_preview_video
1891   (of-object "EmpathyTpCall")
1892   (c-name "empathy_tp_call_add_preview_video")
1893   (return-type "none")
1894   (parameters
1895     '("guint" "preview_video_socket_id")
1896   )
1897 )
1898
1899 (define-method remove_preview_video
1900   (of-object "EmpathyTpCall")
1901   (c-name "empathy_tp_call_remove_preview_video")
1902   (return-type "none")
1903   (parameters
1904     '("guint" "preview_video_socket_id")
1905   )
1906 )
1907
1908 (define-method add_output_video
1909   (of-object "EmpathyTpCall")
1910   (c-name "empathy_tp_call_add_output_video")
1911   (return-type "none")
1912   (parameters
1913     '("guint" "output_video_socket_id")
1914   )
1915 )
1916
1917 (define-method set_output_volume
1918   (of-object "EmpathyTpCall")
1919   (c-name "empathy_tp_call_set_output_volume")
1920   (return-type "none")
1921   (parameters
1922     '("guint" "volume")
1923   )
1924 )
1925
1926 (define-method mute_output
1927   (of-object "EmpathyTpCall")
1928   (c-name "empathy_tp_call_mute_output")
1929   (return-type "none")
1930   (parameters
1931     '("gboolean" "is_muted")
1932   )
1933 )
1934
1935 (define-method mute_input
1936   (of-object "EmpathyTpCall")
1937   (c-name "empathy_tp_call_mute_input")
1938   (return-type "none")
1939   (parameters
1940     '("gboolean" "is_muted")
1941   )
1942 )
1943
1944 (define-method start_tone
1945   (of-object "EmpathyTpCall")
1946   (c-name "empathy_tp_call_start_tone")
1947   (return-type "none")
1948   (parameters
1949     '("TpDTMFEvent" "event")
1950   )
1951 )
1952
1953 (define-method stop_tone
1954   (of-object "EmpathyTpCall")
1955   (c-name "empathy_tp_call_stop_tone")
1956   (return-type "none")
1957 )
1958
1959 (define-method has_dtmf
1960   (of-object "EmpathyTpCall")
1961   (c-name "empathy_tp_call_has_dtmf")
1962   (return-type "gboolean")
1963 )
1964
1965
1966
1967 ;; From empathy-tp-chat.h
1968
1969 (define-function tp_chat_get_type
1970   (c-name "empathy_tp_chat_get_type")
1971   (return-type "GType")
1972 )
1973
1974 (define-function tp_chat_new
1975   (c-name "empathy_tp_chat_new")
1976   (is-constructor-of "EmpathyTpChat")
1977   (return-type "EmpathyTpChat*")
1978   (parameters
1979     '("TpChannel*" "channel")
1980   )
1981 )
1982
1983 (define-method close
1984   (of-object "EmpathyTpChat")
1985   (c-name "empathy_tp_chat_close")
1986   (return-type "none")
1987 )
1988
1989 (define-method get_id
1990   (of-object "EmpathyTpChat")
1991   (c-name "empathy_tp_chat_get_id")
1992   (return-type "const-gchar*")
1993 )
1994
1995 (define-method get_remote_contact
1996   (of-object "EmpathyTpChat")
1997   (c-name "empathy_tp_chat_get_remote_contact")
1998   (return-type "EmpathyContact*")
1999 )
2000
2001 (define-method get_account
2002   (of-object "EmpathyTpChat")
2003   (c-name "empathy_tp_chat_get_account")
2004   (return-type "McAccount*")
2005 )
2006
2007 (define-method get_channel
2008   (of-object "EmpathyTpChat")
2009   (c-name "empathy_tp_chat_get_channel")
2010   (return-type "TpChannel*")
2011 )
2012
2013 (define-method is_ready
2014   (of-object "EmpathyTpChat")
2015   (c-name "empathy_tp_chat_is_ready")
2016   (return-type "gboolean")
2017 )
2018
2019 (define-method get_members_count
2020   (of-object "EmpathyTpChat")
2021   (c-name "empathy_tp_chat_get_members_count")
2022   (return-type "guint")
2023 )
2024
2025 (define-method send
2026   (of-object "EmpathyTpChat")
2027   (c-name "empathy_tp_chat_send")
2028   (return-type "none")
2029   (parameters
2030     '("EmpathyMessage*" "message")
2031   )
2032 )
2033
2034 (define-method set_state
2035   (of-object "EmpathyTpChat")
2036   (c-name "empathy_tp_chat_set_state")
2037   (return-type "none")
2038   (parameters
2039     '("TpChannelChatState" "state")
2040   )
2041 )
2042
2043 (define-method set_property
2044   (of-object "EmpathyTpChat")
2045   (c-name "empathy_tp_chat_set_property")
2046   (return-type "none")
2047   (parameters
2048     '("const-gchar*" "name")
2049     '("const-GValue*" "value")
2050   )
2051 )
2052
2053 (define-method get_pending_messages
2054   (of-object "EmpathyTpChat")
2055   (c-name "empathy_tp_chat_get_pending_messages")
2056   (return-type "const-GList*")
2057 )
2058
2059 (define-method acknowledge_message
2060   (of-object "EmpathyTpChat")
2061   (c-name "empathy_tp_chat_acknowledge_message")
2062   (return-type "none")
2063   (parameters
2064     '("EmpathyMessage*" "message")
2065   )
2066 )
2067
2068 (define-method acknowledge_messages
2069   (of-object "EmpathyTpChat")
2070   (c-name "empathy_tp_chat_acknowledge_messages")
2071   (return-type "none")
2072   (parameters
2073     '("const-GList*" "messages")
2074   )
2075 )
2076
2077
2078
2079 ;; From empathy-tp-contact-factory.h
2080
2081 (define-function tp_contact_factory_get_type
2082   (c-name "empathy_tp_contact_factory_get_type")
2083   (return-type "GType")
2084 )
2085
2086 (define-function tp_contact_factory_new
2087   (c-name "empathy_tp_contact_factory_new")
2088   (is-constructor-of "EmpathyTpContactFactory")
2089   (return-type "EmpathyTpContactFactory*")
2090   (parameters
2091     '("McAccount*" "account")
2092   )
2093 )
2094
2095 (define-method get_user
2096   (of-object "EmpathyTpContactFactory")
2097   (c-name "empathy_tp_contact_factory_get_user")
2098   (return-type "EmpathyContact*")
2099 )
2100
2101 (define-method get_from_id
2102   (of-object "EmpathyTpContactFactory")
2103   (c-name "empathy_tp_contact_factory_get_from_id")
2104   (return-type "EmpathyContact*")
2105   (parameters
2106     '("const-gchar*" "id")
2107   )
2108 )
2109
2110 (define-method get_from_handle
2111   (of-object "EmpathyTpContactFactory")
2112   (c-name "empathy_tp_contact_factory_get_from_handle")
2113   (return-type "EmpathyContact*")
2114   (parameters
2115     '("guint" "handle")
2116   )
2117 )
2118
2119 (define-method get_from_handles
2120   (of-object "EmpathyTpContactFactory")
2121   (c-name "empathy_tp_contact_factory_get_from_handles")
2122   (return-type "GList*")
2123   (parameters
2124     '("const-GArray*" "handles")
2125   )
2126 )
2127
2128 (define-method set_alias
2129   (of-object "EmpathyTpContactFactory")
2130   (c-name "empathy_tp_contact_factory_set_alias")
2131   (return-type "none")
2132   (parameters
2133     '("EmpathyContact*" "contact")
2134     '("const-gchar*" "alias")
2135   )
2136 )
2137
2138 (define-method set_avatar
2139   (of-object "EmpathyTpContactFactory")
2140   (c-name "empathy_tp_contact_factory_set_avatar")
2141   (return-type "none")
2142   (parameters
2143     '("const-gchar*" "data")
2144     '("gsize" "size")
2145     '("const-gchar*" "mime_type")
2146   )
2147 )
2148
2149 (define-method is_ready
2150   (of-object "EmpathyTpContactFactory")
2151   (c-name "empathy_tp_contact_factory_is_ready")
2152   (return-type "gboolean")
2153 )
2154
2155
2156
2157 ;; From empathy-tp-contact-list.h
2158
2159 (define-function tp_contact_list_get_type
2160   (c-name "empathy_tp_contact_list_get_type")
2161   (return-type "GType")
2162 )
2163
2164 (define-function tp_contact_list_new
2165   (c-name "empathy_tp_contact_list_new")
2166   (is-constructor-of "EmpathyTpContactList")
2167   (return-type "EmpathyTpContactList*")
2168   (parameters
2169     '("McAccount*" "account")
2170   )
2171 )
2172
2173 (define-method get_account
2174   (of-object "EmpathyTpContactList")
2175   (c-name "empathy_tp_contact_list_get_account")
2176   (return-type "McAccount*")
2177 )
2178
2179 (define-method can_add
2180   (of-object "EmpathyTpContactList")
2181   (c-name "empathy_tp_contact_list_can_add")
2182   (return-type "gboolean")
2183 )
2184
2185
2186
2187 ;; From empathy-tp-file.h
2188
2189 (define-function tp_file_get_type
2190   (c-name "empathy_tp_file_get_type")
2191   (return-type "GType")
2192 )
2193
2194 (define-function tp_file_new
2195   (c-name "empathy_tp_file_new")
2196   (is-constructor-of "EmpathyTpFile")
2197   (return-type "EmpathyTpFile*")
2198   (parameters
2199     '("TpChannel*" "channel")
2200   )
2201 )
2202
2203 (define-method get_channel
2204   (of-object "EmpathyTpFile")
2205   (c-name "empathy_tp_file_get_channel")
2206   (return-type "TpChannel*")
2207 )
2208
2209 (define-method accept
2210   (of-object "EmpathyTpFile")
2211   (c-name "empathy_tp_file_accept")
2212   (return-type "none")
2213   (parameters
2214     '("guint64" "offset")
2215     '("GFile*" "gfile")
2216     '("GError**" "error")
2217   )
2218 )
2219
2220 (define-method cancel
2221   (of-object "EmpathyTpFile")
2222   (c-name "empathy_tp_file_cancel")
2223   (return-type "none")
2224 )
2225
2226 (define-method close
2227   (of-object "EmpathyTpFile")
2228   (c-name "empathy_tp_file_close")
2229   (return-type "none")
2230 )
2231
2232 (define-method offer
2233   (of-object "EmpathyTpFile")
2234   (c-name "empathy_tp_file_offer")
2235   (return-type "none")
2236   (parameters
2237     '("GFile*" "gfile")
2238     '("GError**" "error")
2239   )
2240 )
2241
2242 (define-method get_contact
2243   (of-object "EmpathyTpFile")
2244   (c-name "empathy_tp_file_get_contact")
2245   (return-type "EmpathyContact*")
2246 )
2247
2248 (define-method get_filename
2249   (of-object "EmpathyTpFile")
2250   (c-name "empathy_tp_file_get_filename")
2251   (return-type "const-gchar*")
2252 )
2253
2254 (define-method is_incoming
2255   (of-object "EmpathyTpFile")
2256   (c-name "empathy_tp_file_is_incoming")
2257   (return-type "gboolean")
2258 )
2259
2260 (define-method get_state
2261   (of-object "EmpathyTpFile")
2262   (c-name "empathy_tp_file_get_state")
2263   (return-type "guint")
2264   (parameters
2265     '("guint*" "reason")
2266   )
2267 )
2268
2269 (define-method get_size
2270   (of-object "EmpathyTpFile")
2271   (c-name "empathy_tp_file_get_size")
2272   (return-type "guint64")
2273 )
2274
2275 (define-method get_transferred_bytes
2276   (of-object "EmpathyTpFile")
2277   (c-name "empathy_tp_file_get_transferred_bytes")
2278   (return-type "guint64")
2279 )
2280
2281 (define-method get_remaining_time
2282   (of-object "EmpathyTpFile")
2283   (c-name "empathy_tp_file_get_remaining_time")
2284   (return-type "gint")
2285 )
2286
2287 (define-method get_content_type
2288   (of-object "EmpathyTpFile")
2289   (c-name "empathy_tp_file_get_content_type")
2290   (return-type "const-gchar*")
2291 )
2292
2293
2294
2295 ;; From empathy-tp-group.h
2296
2297 (define-function tp_group_get_type
2298   (c-name "empathy_tp_group_get_type")
2299   (return-type "GType")
2300 )
2301
2302 (define-function tp_group_new
2303   (c-name "empathy_tp_group_new")
2304   (is-constructor-of "EmpathyTpGroup")
2305   (return-type "EmpathyTpGroup*")
2306   (parameters
2307     '("TpChannel*" "channel")
2308   )
2309 )
2310
2311 (define-method close
2312   (of-object "EmpathyTpGroup")
2313   (c-name "empathy_tp_group_close")
2314   (return-type "none")
2315 )
2316
2317 (define-method add_members
2318   (of-object "EmpathyTpGroup")
2319   (c-name "empathy_tp_group_add_members")
2320   (return-type "none")
2321   (parameters
2322     '("GList*" "contacts")
2323     '("const-gchar*" "message")
2324   )
2325 )
2326
2327 (define-method add_member
2328   (of-object "EmpathyTpGroup")
2329   (c-name "empathy_tp_group_add_member")
2330   (return-type "none")
2331   (parameters
2332     '("EmpathyContact*" "contact")
2333     '("const-gchar*" "message")
2334   )
2335 )
2336
2337 (define-method remove_members
2338   (of-object "EmpathyTpGroup")
2339   (c-name "empathy_tp_group_remove_members")
2340   (return-type "none")
2341   (parameters
2342     '("GList*" "contacts")
2343     '("const-gchar*" "message")
2344   )
2345 )
2346
2347 (define-method remove_member
2348   (of-object "EmpathyTpGroup")
2349   (c-name "empathy_tp_group_remove_member")
2350   (return-type "none")
2351   (parameters
2352     '("EmpathyContact*" "contact")
2353     '("const-gchar*" "message")
2354   )
2355 )
2356
2357 (define-method get_members
2358   (of-object "EmpathyTpGroup")
2359   (c-name "empathy_tp_group_get_members")
2360   (return-type "GList*")
2361 )
2362
2363 (define-method get_local_pendings
2364   (of-object "EmpathyTpGroup")
2365   (c-name "empathy_tp_group_get_local_pendings")
2366   (return-type "GList*")
2367 )
2368
2369 (define-method get_remote_pendings
2370   (of-object "EmpathyTpGroup")
2371   (c-name "empathy_tp_group_get_remote_pendings")
2372   (return-type "GList*")
2373 )
2374
2375 (define-method get_name
2376   (of-object "EmpathyTpGroup")
2377   (c-name "empathy_tp_group_get_name")
2378   (return-type "const-gchar*")
2379 )
2380
2381 (define-method get_self_contact
2382   (of-object "EmpathyTpGroup")
2383   (c-name "empathy_tp_group_get_self_contact")
2384   (return-type "EmpathyContact*")
2385 )
2386
2387 (define-method is_member
2388   (of-object "EmpathyTpGroup")
2389   (c-name "empathy_tp_group_is_member")
2390   (return-type "gboolean")
2391   (parameters
2392     '("EmpathyContact*" "contact")
2393   )
2394 )
2395
2396 (define-method is_ready
2397   (of-object "EmpathyTpGroup")
2398   (c-name "empathy_tp_group_is_ready")
2399   (return-type "gboolean")
2400 )
2401
2402 (define-method get_invitation
2403   (of-object "EmpathyTpGroup")
2404   (c-name "empathy_tp_group_get_invitation")
2405   (return-type "EmpathyPendingInfo*")
2406   (parameters
2407     '("EmpathyContact**" "remote_contact")
2408   )
2409 )
2410
2411 (define-function pending_info_new
2412   (c-name "empathy_pending_info_new")
2413   (is-constructor-of "EmpathyPendingInfo")
2414   (return-type "EmpathyPendingInfo*")
2415   (parameters
2416     '("EmpathyContact*" "member")
2417     '("EmpathyContact*" "actor")
2418     '("const-gchar*" "message")
2419   )
2420 )
2421
2422 (define-method free
2423   (of-object "EmpathyPendingInfo")
2424   (c-name "empathy_pending_info_free")
2425   (return-type "none")
2426 )
2427
2428 (define-method get_flags
2429   (of-object "EmpathyTpGroup")
2430   (c-name "empathy_tp_group_get_flags")
2431   (return-type "TpChannelGroupFlags")
2432 )
2433
2434
2435
2436 ;; From empathy-tp-roomlist.h
2437
2438 (define-function tp_roomlist_get_type
2439   (c-name "empathy_tp_roomlist_get_type")
2440   (return-type "GType")
2441 )
2442
2443 (define-function tp_roomlist_new
2444   (c-name "empathy_tp_roomlist_new")
2445   (is-constructor-of "EmpathyTpRoomlist")
2446   (return-type "EmpathyTpRoomlist*")
2447   (parameters
2448     '("McAccount*" "account")
2449   )
2450 )
2451
2452 (define-method is_listing
2453   (of-object "EmpathyTpRoomlist")
2454   (c-name "empathy_tp_roomlist_is_listing")
2455   (return-type "gboolean")
2456 )
2457
2458 (define-method start
2459   (of-object "EmpathyTpRoomlist")
2460   (c-name "empathy_tp_roomlist_start")
2461   (return-type "none")
2462 )
2463
2464 (define-method stop
2465   (of-object "EmpathyTpRoomlist")
2466   (c-name "empathy_tp_roomlist_stop")
2467   (return-type "none")
2468 )
2469
2470
2471
2472 ;; From empathy-tp-tube.h
2473
2474 (define-function tp_tube_get_type
2475   (c-name "empathy_tp_tube_get_type")
2476   (return-type "GType")
2477 )
2478
2479 (define-function tp_tube_new
2480   (c-name "empathy_tp_tube_new")
2481   (is-constructor-of "EmpathyTpTube")
2482   (return-type "EmpathyTpTube*")
2483   (parameters
2484     '("TpChannel*" "channel")
2485   )
2486 )
2487
2488 (define-function tp_tube_new_stream_tube
2489   (c-name "empathy_tp_tube_new_stream_tube")
2490   (return-type "EmpathyTpTube*")
2491   (parameters
2492     '("EmpathyContact*" "contact")
2493     '("TpSocketAddressType" "type")
2494     '("const-gchar*" "hostname")
2495     '("guint" "port")
2496     '("const-gchar*" "service")
2497   )
2498 )
2499
2500 (define-method accept_stream_tube
2501   (of-object "EmpathyTpTube")
2502   (c-name "empathy_tp_tube_accept_stream_tube")
2503   (return-type "none")
2504   (parameters
2505     '("TpSocketAddressType" "type")
2506     '("EmpatyTpTubeAcceptStreamTubeCb*" "callback")
2507     '("gpointer" "user_data")
2508   )
2509 )
2510
2511
2512
2513 ;; From empathy-tube-handler.h
2514
2515 (define-function tube_handler_get_type
2516   (c-name "empathy_tube_handler_get_type")
2517   (return-type "GType")
2518 )
2519
2520 (define-function tube_handler_new
2521   (c-name "empathy_tube_handler_new")
2522   (is-constructor-of "EmpathyTubeHandler")
2523   (return-type "EmpathyTubeHandler*")
2524   (parameters
2525     '("EmpathyTubeType" "type")
2526     '("const-gchar*" "service")
2527   )
2528 )
2529
2530 (define-function tube_handler_build_bus_name
2531   (c-name "empathy_tube_handler_build_bus_name")
2532   (return-type "gchar*")
2533   (parameters
2534     '("EmpathyTubeType" "type")
2535     '("const-gchar*" "service")
2536   )
2537 )
2538
2539 (define-function tube_handler_build_object_path
2540   (c-name "empathy_tube_handler_build_object_path")
2541   (return-type "gchar*")
2542   (parameters
2543     '("EmpathyTubeType" "type")
2544     '("const-gchar*" "service")
2545   )
2546 )
2547
2548
2549
2550 ;; From empathy-types.h
2551
2552
2553
2554 ;; From empathy-utils.h
2555
2556 (define-function init
2557   (c-name "empathy_init")
2558   (return-type "none")
2559 )
2560
2561 (define-function substring
2562   (c-name "empathy_substring")
2563   (return-type "gchar*")
2564   (parameters
2565     '("const-gchar*" "str")
2566     '("gint" "start")
2567     '("gint" "end")
2568   )
2569 )
2570
2571 (define-function strcasecmp
2572   (c-name "empathy_strcasecmp")
2573   (return-type "gint")
2574   (parameters
2575     '("const-gchar*" "s1")
2576     '("const-gchar*" "s2")
2577   )
2578 )
2579
2580 (define-function strncasecmp
2581   (c-name "empathy_strncasecmp")
2582   (return-type "gint")
2583   (parameters
2584     '("const-gchar*" "s1")
2585     '("const-gchar*" "s2")
2586     '("gsize" "n")
2587   )
2588 )
2589
2590 (define-function xml_validate
2591   (c-name "empathy_xml_validate")
2592   (return-type "gboolean")
2593   (parameters
2594     '("xmlDoc*" "doc")
2595     '("const-gchar*" "dtd_filename")
2596   )
2597 )
2598
2599 (define-function xml_node_get_child
2600   (c-name "empathy_xml_node_get_child")
2601   (return-type "xmlNodePtr")
2602   (parameters
2603     '("xmlNodePtr" "node")
2604     '("const-gchar*" "child_name")
2605   )
2606 )
2607
2608 (define-function xml_node_get_child_content
2609   (c-name "empathy_xml_node_get_child_content")
2610   (return-type "xmlChar*")
2611   (parameters
2612     '("xmlNodePtr" "node")
2613     '("const-gchar*" "child_name")
2614   )
2615 )
2616
2617 (define-function xml_node_find_child_prop_value
2618   (c-name "empathy_xml_node_find_child_prop_value")
2619   (return-type "xmlNodePtr")
2620   (parameters
2621     '("xmlNodePtr" "node")
2622     '("const-gchar*" "prop_name")
2623     '("const-gchar*" "prop_value")
2624   )
2625 )
2626
2627 (define-function account_hash
2628   (c-name "empathy_account_hash")
2629   (return-type "guint")
2630   (parameters
2631     '("gconstpointer" "key")
2632   )
2633 )
2634
2635 (define-function account_equal
2636   (c-name "empathy_account_equal")
2637   (return-type "gboolean")
2638   (parameters
2639     '("gconstpointer" "a")
2640     '("gconstpointer" "b")
2641   )
2642 )
2643
2644 (define-function mission_control_dup_singleton
2645   (c-name "empathy_mission_control_dup_singleton")
2646   (return-type "MissionControl*")
2647 )
2648
2649 (define-function presence_get_default_message
2650   (c-name "empathy_presence_get_default_message")
2651   (return-type "const-gchar*")
2652   (parameters
2653     '("McPresence" "presence")
2654   )
2655 )
2656
2657 (define-function presence_to_str
2658   (c-name "empathy_presence_to_str")
2659   (return-type "const-gchar*")
2660   (parameters
2661     '("McPresence" "presence")
2662   )
2663 )
2664
2665 (define-function presence_from_str
2666   (c-name "empathy_presence_from_str")
2667   (return-type "McPresence")
2668   (parameters
2669     '("const-gchar*" "str")
2670   )
2671 )
2672
2673 (define-function file_lookup
2674   (c-name "empathy_file_lookup")
2675   (return-type "gchar*")
2676   (parameters
2677     '("const-gchar*" "filename")
2678     '("const-gchar*" "subdir")
2679   )
2680 )
2681
2682 (define-function run_until_ready
2683   (c-name "empathy_run_until_ready")
2684   (return-type "none")
2685   (parameters
2686     '("gpointer" "object")
2687   )
2688 )
2689
2690 (define-function run_until_ready_full
2691   (c-name "empathy_run_until_ready_full")
2692   (return-type "none")
2693   (parameters
2694     '("gpointer" "object")
2695     '("const-gchar*" "signal")
2696     '("EmpathyRunUntilReadyFunc" "func")
2697     '("gpointer" "user_data")
2698     '("GMainLoop**" "loop")
2699   )
2700 )
2701
2702 (define-function channel_get_account
2703   (c-name "empathy_channel_get_account")
2704   (return-type "McAccount*")
2705   (parameters
2706     '("TpChannel*" "channel")
2707   )
2708 )
2709
2710 (define-function proxy_equal
2711   (c-name "empathy_proxy_equal")
2712   (return-type "gboolean")
2713   (parameters
2714     '("gconstpointer" "a")
2715     '("gconstpointer" "b")
2716   )
2717 )
2718
2719 (define-function proxy_hash
2720   (c-name "empathy_proxy_hash")
2721   (return-type "guint")
2722   (parameters
2723     '("gconstpointer" "key")
2724   )
2725 )
2726
2727 (define-function check_available_state
2728   (c-name "empathy_check_available_state")
2729   (return-type "gboolean")
2730 )
2731
2732