]> git.0d.be Git - empathy.git/blob - python/pyempathy/pyempathy.defs
Update python binding
[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-function dispatcher_call_with_contact
1077   (c-name "empathy_dispatcher_call_with_contact")
1078   (return-type "none")
1079   (parameters
1080     '("EmpathyContact*" "contact")
1081     '("EmpathyDispatcherRequestCb*" "callback")
1082     '("gpointer" "user_data")
1083   )
1084 )
1085
1086 (define-function dispatcher_chat_with_contact_id
1087   (c-name "empathy_dispatcher_chat_with_contact_id")
1088   (return-type "none")
1089   (parameters
1090     '("McAccount*" "account")
1091     '("const-gchar*" "contact_id")
1092     '("EmpathyDispatcherRequestCb*" "callback")
1093     '("gpointer" "user_data")
1094   )
1095 )
1096
1097 (define-function dispatcher_chat_with_contact
1098   (c-name "empathy_dispatcher_chat_with_contact")
1099   (return-type "none")
1100   (parameters
1101     '("EmpathyContact*" "contact")
1102     '("EmpathyDispatcherRequestCb*" "callback")
1103     '("gpointer" "user_data")
1104   )
1105 )
1106
1107 (define-function dispatcher_send_file_to_contact
1108   (c-name "empathy_dispatcher_send_file_to_contact")
1109   (return-type "none")
1110   (parameters
1111     '("EmpathyContact*" "contact")
1112     '("const-gchar*" "filename")
1113     '("guint64" "size")
1114     '("guint64" "date")
1115     '("const-gchar*" "content_type")
1116     '("EmpathyDispatcherRequestCb*" "callback")
1117     '("gpointer" "user_data")
1118   )
1119 )
1120
1121 (define-function dispatcher_join_muc
1122   (c-name "empathy_dispatcher_join_muc")
1123   (return-type "none")
1124   (parameters
1125     '("McAccount*" "account")
1126     '("const-gchar*" "roomname")
1127     '("EmpathyDispatcherRequestCb*" "callback")
1128     '("gpointer" "user_data")
1129   )
1130 )
1131
1132 (define-function dispatcher_dup_singleton
1133   (c-name "empathy_dispatcher_dup_singleton")
1134   (return-type "EmpathyDispatcher*")
1135 )
1136
1137
1138
1139 ;; From empathy-dispatch-operation.h
1140
1141 (define-function dispatch_operation_get_type
1142   (c-name "empathy_dispatch_operation_get_type")
1143   (return-type "GType")
1144 )
1145
1146 (define-function dispatch_operation_new
1147   (c-name "empathy_dispatch_operation_new")
1148   (is-constructor-of "EmpathyDispatchOperation")
1149   (return-type "EmpathyDispatchOperation*")
1150   (parameters
1151     '("TpConnection*" "connection")
1152     '("TpChannel*" "channel")
1153     '("EmpathyContact*" "contact")
1154     '("gboolean" "incoming")
1155   )
1156 )
1157
1158 (define-function dispatch_operation_new_with_wrapper
1159   (c-name "empathy_dispatch_operation_new_with_wrapper")
1160   (return-type "EmpathyDispatchOperation*")
1161   (parameters
1162     '("TpConnection*" "connection")
1163     '("TpChannel*" "channel")
1164     '("EmpathyContact*" "contact")
1165     '("gboolean" "incoming")
1166     '("GObject*" "channel_wrapper")
1167   )
1168 )
1169
1170 (define-method start
1171   (of-object "EmpathyDispatchOperation")
1172   (c-name "empathy_dispatch_operation_start")
1173   (return-type "none")
1174 )
1175
1176 (define-method approve
1177   (of-object "EmpathyDispatchOperation")
1178   (c-name "empathy_dispatch_operation_approve")
1179   (return-type "none")
1180 )
1181
1182 (define-method claim
1183   (of-object "EmpathyDispatchOperation")
1184   (c-name "empathy_dispatch_operation_claim")
1185   (return-type "gboolean")
1186 )
1187
1188 (define-method get_channel
1189   (of-object "EmpathyDispatchOperation")
1190   (c-name "empathy_dispatch_operation_get_channel")
1191   (return-type "TpChannel*")
1192 )
1193
1194 (define-method get_channel_wrapper
1195   (of-object "EmpathyDispatchOperation")
1196   (c-name "empathy_dispatch_operation_get_channel_wrapper")
1197   (return-type "GObject*")
1198 )
1199
1200 (define-method get_tp_connection
1201   (of-object "EmpathyDispatchOperation")
1202   (c-name "empathy_dispatch_operation_get_tp_connection")
1203   (return-type "TpConnection*")
1204 )
1205
1206 (define-method get_channel_type
1207   (of-object "EmpathyDispatchOperation")
1208   (c-name "empathy_dispatch_operation_get_channel_type")
1209   (return-type "const-gchar*")
1210 )
1211
1212 (define-method get_channel_type_id
1213   (of-object "EmpathyDispatchOperation")
1214   (c-name "empathy_dispatch_operation_get_channel_type_id")
1215   (return-type "GQuark")
1216 )
1217
1218 (define-method get_object_path
1219   (of-object "EmpathyDispatchOperation")
1220   (c-name "empathy_dispatch_operation_get_object_path")
1221   (return-type "const-gchar*")
1222 )
1223
1224 (define-method get_status
1225   (of-object "EmpathyDispatchOperation")
1226   (c-name "empathy_dispatch_operation_get_status")
1227   (return-type "EmpathyDispatchOperationState")
1228 )
1229
1230 (define-method is_incoming
1231   (of-object "EmpathyDispatchOperation")
1232   (c-name "empathy_dispatch_operation_is_incoming")
1233   (return-type "gboolean")
1234 )
1235
1236
1237
1238 ;; From empathy-idle.h
1239
1240 (define-function idle_get_type
1241   (c-name "empathy_idle_get_type")
1242   (return-type "GType")
1243 )
1244
1245 (define-function idle_dup_singleton
1246   (c-name "empathy_idle_dup_singleton")
1247   (return-type "EmpathyIdle*")
1248 )
1249
1250 (define-method get_state
1251   (of-object "EmpathyIdle")
1252   (c-name "empathy_idle_get_state")
1253   (return-type "McPresence")
1254 )
1255
1256 (define-method set_state
1257   (of-object "EmpathyIdle")
1258   (c-name "empathy_idle_set_state")
1259   (return-type "none")
1260   (parameters
1261     '("McPresence" "state")
1262   )
1263 )
1264
1265 (define-method get_status
1266   (of-object "EmpathyIdle")
1267   (c-name "empathy_idle_get_status")
1268   (return-type "const-gchar*")
1269 )
1270
1271 (define-method set_status
1272   (of-object "EmpathyIdle")
1273   (c-name "empathy_idle_set_status")
1274   (return-type "none")
1275   (parameters
1276     '("const-gchar*" "status")
1277   )
1278 )
1279
1280 (define-method get_flash_state
1281   (of-object "EmpathyIdle")
1282   (c-name "empathy_idle_get_flash_state")
1283   (return-type "McPresence")
1284 )
1285
1286 (define-method set_flash_state
1287   (of-object "EmpathyIdle")
1288   (c-name "empathy_idle_set_flash_state")
1289   (return-type "none")
1290   (parameters
1291     '("McPresence" "state")
1292   )
1293 )
1294
1295 (define-method set_presence
1296   (of-object "EmpathyIdle")
1297   (c-name "empathy_idle_set_presence")
1298   (return-type "none")
1299   (parameters
1300     '("McPresence" "state")
1301     '("const-gchar*" "status")
1302   )
1303 )
1304
1305 (define-method get_auto_away
1306   (of-object "EmpathyIdle")
1307   (c-name "empathy_idle_get_auto_away")
1308   (return-type "gboolean")
1309 )
1310
1311 (define-method set_auto_away
1312   (of-object "EmpathyIdle")
1313   (c-name "empathy_idle_set_auto_away")
1314   (return-type "none")
1315   (parameters
1316     '("gboolean" "auto_away")
1317   )
1318 )
1319
1320 (define-method get_use_nm
1321   (of-object "EmpathyIdle")
1322   (c-name "empathy_idle_get_use_nm")
1323   (return-type "gboolean")
1324 )
1325
1326 (define-method set_use_nm
1327   (of-object "EmpathyIdle")
1328   (c-name "empathy_idle_set_use_nm")
1329   (return-type "none")
1330   (parameters
1331     '("gboolean" "use_nm")
1332   )
1333 )
1334
1335
1336
1337 ;; From empathy-irc-network.h
1338
1339 (define-function irc_network_get_type
1340   (c-name "empathy_irc_network_get_type")
1341   (return-type "GType")
1342 )
1343
1344 (define-function irc_network_new
1345   (c-name "empathy_irc_network_new")
1346   (is-constructor-of "EmpathyIrcNetwork")
1347   (return-type "EmpathyIrcNetwork*")
1348   (parameters
1349     '("const-gchar*" "name")
1350   )
1351 )
1352
1353 (define-method get_servers
1354   (of-object "EmpathyIrcNetwork")
1355   (c-name "empathy_irc_network_get_servers")
1356   (return-type "GSList*")
1357 )
1358
1359 (define-method append_server
1360   (of-object "EmpathyIrcNetwork")
1361   (c-name "empathy_irc_network_append_server")
1362   (return-type "none")
1363   (parameters
1364     '("EmpathyIrcServer*" "server")
1365   )
1366 )
1367
1368 (define-method remove_server
1369   (of-object "EmpathyIrcNetwork")
1370   (c-name "empathy_irc_network_remove_server")
1371   (return-type "none")
1372   (parameters
1373     '("EmpathyIrcServer*" "server")
1374   )
1375 )
1376
1377 (define-method set_server_position
1378   (of-object "EmpathyIrcNetwork")
1379   (c-name "empathy_irc_network_set_server_position")
1380   (return-type "none")
1381   (parameters
1382     '("EmpathyIrcServer*" "server")
1383     '("gint" "pos")
1384   )
1385 )
1386
1387
1388
1389 ;; From empathy-irc-network-manager.h
1390
1391 (define-function irc_network_manager_get_type
1392   (c-name "empathy_irc_network_manager_get_type")
1393   (return-type "GType")
1394 )
1395
1396 (define-function irc_network_manager_new
1397   (c-name "empathy_irc_network_manager_new")
1398   (is-constructor-of "EmpathyIrcNetworkManager")
1399   (return-type "EmpathyIrcNetworkManager*")
1400   (parameters
1401     '("const-gchar*" "global_file")
1402     '("const-gchar*" "user_file")
1403   )
1404 )
1405
1406 (define-method add
1407   (of-object "EmpathyIrcNetworkManager")
1408   (c-name "empathy_irc_network_manager_add")
1409   (return-type "none")
1410   (parameters
1411     '("EmpathyIrcNetwork*" "network")
1412   )
1413 )
1414
1415 (define-method remove
1416   (of-object "EmpathyIrcNetworkManager")
1417   (c-name "empathy_irc_network_manager_remove")
1418   (return-type "none")
1419   (parameters
1420     '("EmpathyIrcNetwork*" "network")
1421   )
1422 )
1423
1424 (define-method get_networks
1425   (of-object "EmpathyIrcNetworkManager")
1426   (c-name "empathy_irc_network_manager_get_networks")
1427   (return-type "GSList*")
1428 )
1429
1430 (define-method find_network_by_address
1431   (of-object "EmpathyIrcNetworkManager")
1432   (c-name "empathy_irc_network_manager_find_network_by_address")
1433   (return-type "EmpathyIrcNetwork*")
1434   (parameters
1435     '("const-gchar*" "address")
1436   )
1437 )
1438
1439
1440
1441 ;; From empathy-irc-server.h
1442
1443 (define-function irc_server_get_type
1444   (c-name "empathy_irc_server_get_type")
1445   (return-type "GType")
1446 )
1447
1448 (define-function irc_server_new
1449   (c-name "empathy_irc_server_new")
1450   (is-constructor-of "EmpathyIrcServer")
1451   (return-type "EmpathyIrcServer*")
1452   (parameters
1453     '("const-gchar*" "address")
1454     '("guint" "port")
1455     '("gboolean" "ssl")
1456   )
1457 )
1458
1459
1460
1461 ;; From empathy-log-manager.h
1462
1463 (define-function log_manager_get_type
1464   (c-name "empathy_log_manager_get_type")
1465   (return-type "GType")
1466 )
1467
1468 (define-function log_manager_dup_singleton
1469   (c-name "empathy_log_manager_dup_singleton")
1470   (return-type "EmpathyLogManager*")
1471 )
1472
1473 (define-method add_message
1474   (of-object "EmpathyLogManager")
1475   (c-name "empathy_log_manager_add_message")
1476   (return-type "none")
1477   (parameters
1478     '("const-gchar*" "chat_id")
1479     '("gboolean" "chatroom")
1480     '("EmpathyMessage*" "message")
1481   )
1482 )
1483
1484 (define-method exists
1485   (of-object "EmpathyLogManager")
1486   (c-name "empathy_log_manager_exists")
1487   (return-type "gboolean")
1488   (parameters
1489     '("McAccount*" "account")
1490     '("const-gchar*" "chat_id")
1491     '("gboolean" "chatroom")
1492   )
1493 )
1494
1495 (define-method get_dates
1496   (of-object "EmpathyLogManager")
1497   (c-name "empathy_log_manager_get_dates")
1498   (return-type "GList*")
1499   (parameters
1500     '("McAccount*" "account")
1501     '("const-gchar*" "chat_id")
1502     '("gboolean" "chatroom")
1503   )
1504 )
1505
1506 (define-method get_messages_for_file
1507   (of-object "EmpathyLogManager")
1508   (c-name "empathy_log_manager_get_messages_for_file")
1509   (return-type "GList*")
1510   (parameters
1511     '("const-gchar*" "filename")
1512   )
1513 )
1514
1515 (define-method get_messages_for_date
1516   (of-object "EmpathyLogManager")
1517   (c-name "empathy_log_manager_get_messages_for_date")
1518   (return-type "GList*")
1519   (parameters
1520     '("McAccount*" "account")
1521     '("const-gchar*" "chat_id")
1522     '("gboolean" "chatroom")
1523     '("const-gchar*" "date")
1524   )
1525 )
1526
1527 (define-method get_last_messages
1528   (of-object "EmpathyLogManager")
1529   (c-name "empathy_log_manager_get_last_messages")
1530   (return-type "GList*")
1531   (parameters
1532     '("McAccount*" "account")
1533     '("const-gchar*" "chat_id")
1534     '("gboolean" "chatroom")
1535   )
1536 )
1537
1538 (define-method get_messages_for_file
1539   (of-object "EmpathyLogManager")
1540   (c-name "empathy_log_manager_get_messages_for_file")
1541   (return-type "GList*")
1542   (parameters
1543     '("const-gchar*" "filename")
1544   )
1545 )
1546
1547 (define-method get_chats
1548   (of-object "EmpathyLogManager")
1549   (c-name "empathy_log_manager_get_chats")
1550   (return-type "GList*")
1551   (parameters
1552     '("McAccount*" "account")
1553   )
1554 )
1555
1556 (define-method search_new
1557   (of-object "EmpathyLogManager")
1558   (c-name "empathy_log_manager_search_new")
1559   (return-type "GList*")
1560   (parameters
1561     '("const-gchar*" "text")
1562   )
1563 )
1564
1565 (define-function log_manager_search_free
1566   (c-name "empathy_log_manager_search_free")
1567   (return-type "none")
1568   (parameters
1569     '("GList*" "hits")
1570   )
1571 )
1572
1573 (define-function log_manager_get_date_readable
1574   (c-name "empathy_log_manager_get_date_readable")
1575   (return-type "gchar*")
1576   (parameters
1577     '("const-gchar*" "date")
1578   )
1579 )
1580
1581
1582
1583 ;; From empathy-message.h
1584
1585 (define-function message_get_type
1586   (c-name "empathy_message_get_type")
1587   (return-type "GType")
1588 )
1589
1590 (define-function message_new
1591   (c-name "empathy_message_new")
1592   (is-constructor-of "EmpathyMessage")
1593   (return-type "EmpathyMessage*")
1594   (parameters
1595     '("const-gchar*" "body")
1596   )
1597 )
1598
1599 (define-method get_tptype
1600   (of-object "EmpathyMessage")
1601   (c-name "empathy_message_get_tptype")
1602   (return-type "TpChannelTextMessageType")
1603 )
1604
1605 (define-method set_tptype
1606   (of-object "EmpathyMessage")
1607   (c-name "empathy_message_set_tptype")
1608   (return-type "none")
1609   (parameters
1610     '("TpChannelTextMessageType" "type")
1611   )
1612 )
1613
1614 (define-method get_sender
1615   (of-object "EmpathyMessage")
1616   (c-name "empathy_message_get_sender")
1617   (return-type "EmpathyContact*")
1618 )
1619
1620 (define-method set_sender
1621   (of-object "EmpathyMessage")
1622   (c-name "empathy_message_set_sender")
1623   (return-type "none")
1624   (parameters
1625     '("EmpathyContact*" "contact")
1626   )
1627 )
1628
1629 (define-method get_receiver
1630   (of-object "EmpathyMessage")
1631   (c-name "empathy_message_get_receiver")
1632   (return-type "EmpathyContact*")
1633 )
1634
1635 (define-method set_receiver
1636   (of-object "EmpathyMessage")
1637   (c-name "empathy_message_set_receiver")
1638   (return-type "none")
1639   (parameters
1640     '("EmpathyContact*" "contact")
1641   )
1642 )
1643
1644 (define-method get_body
1645   (of-object "EmpathyMessage")
1646   (c-name "empathy_message_get_body")
1647   (return-type "const-gchar*")
1648 )
1649
1650 (define-method set_body
1651   (of-object "EmpathyMessage")
1652   (c-name "empathy_message_set_body")
1653   (return-type "none")
1654   (parameters
1655     '("const-gchar*" "body")
1656   )
1657 )
1658
1659 (define-method get_timestamp
1660   (of-object "EmpathyMessage")
1661   (c-name "empathy_message_get_timestamp")
1662   (return-type "time_t")
1663 )
1664
1665 (define-method set_timestamp
1666   (of-object "EmpathyMessage")
1667   (c-name "empathy_message_set_timestamp")
1668   (return-type "none")
1669   (parameters
1670     '("time_t" "timestamp")
1671   )
1672 )
1673
1674 (define-method should_highlight
1675   (of-object "EmpathyMessage")
1676   (c-name "empathy_message_should_highlight")
1677   (return-type "gboolean")
1678 )
1679
1680 (define-function message_type_from_str
1681   (c-name "empathy_message_type_from_str")
1682   (return-type "TpChannelTextMessageType")
1683   (parameters
1684     '("const-gchar*" "type_str")
1685   )
1686 )
1687
1688 (define-function message_type_to_str
1689   (c-name "empathy_message_type_to_str")
1690   (return-type "const-gchar*")
1691   (parameters
1692     '("TpChannelTextMessageType" "type")
1693   )
1694 )
1695
1696 (define-method get_id
1697   (of-object "EmpathyMessage")
1698   (c-name "empathy_message_get_id")
1699   (return-type "guint")
1700 )
1701
1702 (define-method set_id
1703   (of-object "EmpathyMessage")
1704   (c-name "empathy_message_set_id")
1705   (return-type "none")
1706   (parameters
1707     '("guint" "id")
1708   )
1709 )
1710
1711
1712
1713 ;; From empathy-status-presets.h
1714
1715 (define-function status_presets_get_all
1716   (c-name "empathy_status_presets_get_all")
1717   (return-type "none")
1718 )
1719
1720 (define-function status_presets_get
1721   (c-name "empathy_status_presets_get")
1722   (return-type "GList*")
1723   (parameters
1724     '("McPresence" "state")
1725     '("gint" "max_number")
1726   )
1727 )
1728
1729 (define-function status_presets_set_last
1730   (c-name "empathy_status_presets_set_last")
1731   (return-type "none")
1732   (parameters
1733     '("McPresence" "state")
1734     '("const-gchar*" "status")
1735   )
1736 )
1737
1738 (define-function status_presets_remove
1739   (c-name "empathy_status_presets_remove")
1740   (return-type "none")
1741   (parameters
1742     '("McPresence" "state")
1743     '("const-gchar*" "status")
1744   )
1745 )
1746
1747 (define-function status_presets_reset
1748   (c-name "empathy_status_presets_reset")
1749   (return-type "none")
1750 )
1751
1752 (define-function status_presets_get_default_state
1753   (c-name "empathy_status_presets_get_default_state")
1754   (return-type "McPresence")
1755 )
1756
1757 (define-function status_presets_get_default_status
1758   (c-name "empathy_status_presets_get_default_status")
1759   (return-type "const-gchar*")
1760 )
1761
1762 (define-function status_presets_set_default
1763   (c-name "empathy_status_presets_set_default")
1764   (return-type "none")
1765   (parameters
1766     '("McPresence" "state")
1767     '("const-gchar*" "status")
1768   )
1769 )
1770
1771 (define-function status_presets_clear_default
1772   (c-name "empathy_status_presets_clear_default")
1773   (return-type "none")
1774 )
1775
1776
1777
1778 ;; From empathy-time.h
1779
1780 (define-function time_get_current
1781   (c-name "empathy_time_get_current")
1782   (return-type "time_t")
1783 )
1784
1785 (define-function time_get_local_time
1786   (c-name "empathy_time_get_local_time")
1787   (return-type "time_t")
1788   (parameters
1789     '("struct-tm*" "tm")
1790   )
1791 )
1792
1793 (define-function time_parse
1794   (c-name "empathy_time_parse")
1795   (return-type "time_t")
1796   (parameters
1797     '("const-gchar*" "str")
1798   )
1799 )
1800
1801 (define-function time_to_string_utc
1802   (c-name "empathy_time_to_string_utc")
1803   (return-type "gchar*")
1804   (parameters
1805     '("time_t" "t")
1806     '("const-gchar*" "format")
1807   )
1808 )
1809
1810 (define-function time_to_string_local
1811   (c-name "empathy_time_to_string_local")
1812   (return-type "gchar*")
1813   (parameters
1814     '("time_t" "t")
1815     '("const-gchar*" "format")
1816   )
1817 )
1818
1819
1820
1821 ;; From empathy-tp-call.h
1822
1823 (define-function tp_call_get_type
1824   (c-name "empathy_tp_call_get_type")
1825   (return-type "GType")
1826 )
1827
1828 (define-function tp_call_new
1829   (c-name "empathy_tp_call_new")
1830   (is-constructor-of "EmpathyTpCall")
1831   (return-type "EmpathyTpCall*")
1832   (parameters
1833     '("TpChannel*" "channel")
1834   )
1835 )
1836
1837 (define-method close
1838   (of-object "EmpathyTpCall")
1839   (c-name "empathy_tp_call_close")
1840   (return-type "none")
1841 )
1842
1843 (define-method to
1844   (of-object "EmpathyTpCall")
1845   (c-name "empathy_tp_call_to")
1846   (return-type "none")
1847   (parameters
1848     '("EmpathyContact*" "contact")
1849   )
1850 )
1851
1852 (define-method accept_incoming_call
1853   (of-object "EmpathyTpCall")
1854   (c-name "empathy_tp_call_accept_incoming_call")
1855   (return-type "none")
1856 )
1857
1858 (define-method request_video_stream_direction
1859   (of-object "EmpathyTpCall")
1860   (c-name "empathy_tp_call_request_video_stream_direction")
1861   (return-type "none")
1862   (parameters
1863     '("gboolean" "is_sending")
1864   )
1865 )
1866
1867 (define-method add_preview_video
1868   (of-object "EmpathyTpCall")
1869   (c-name "empathy_tp_call_add_preview_video")
1870   (return-type "none")
1871   (parameters
1872     '("guint" "preview_video_socket_id")
1873   )
1874 )
1875
1876 (define-method remove_preview_video
1877   (of-object "EmpathyTpCall")
1878   (c-name "empathy_tp_call_remove_preview_video")
1879   (return-type "none")
1880   (parameters
1881     '("guint" "preview_video_socket_id")
1882   )
1883 )
1884
1885 (define-method add_output_video
1886   (of-object "EmpathyTpCall")
1887   (c-name "empathy_tp_call_add_output_video")
1888   (return-type "none")
1889   (parameters
1890     '("guint" "output_video_socket_id")
1891   )
1892 )
1893
1894 (define-method set_output_volume
1895   (of-object "EmpathyTpCall")
1896   (c-name "empathy_tp_call_set_output_volume")
1897   (return-type "none")
1898   (parameters
1899     '("guint" "volume")
1900   )
1901 )
1902
1903 (define-method mute_output
1904   (of-object "EmpathyTpCall")
1905   (c-name "empathy_tp_call_mute_output")
1906   (return-type "none")
1907   (parameters
1908     '("gboolean" "is_muted")
1909   )
1910 )
1911
1912 (define-method mute_input
1913   (of-object "EmpathyTpCall")
1914   (c-name "empathy_tp_call_mute_input")
1915   (return-type "none")
1916   (parameters
1917     '("gboolean" "is_muted")
1918   )
1919 )
1920
1921 (define-method start_tone
1922   (of-object "EmpathyTpCall")
1923   (c-name "empathy_tp_call_start_tone")
1924   (return-type "none")
1925   (parameters
1926     '("TpDTMFEvent" "event")
1927   )
1928 )
1929
1930 (define-method stop_tone
1931   (of-object "EmpathyTpCall")
1932   (c-name "empathy_tp_call_stop_tone")
1933   (return-type "none")
1934 )
1935
1936 (define-method has_dtmf
1937   (of-object "EmpathyTpCall")
1938   (c-name "empathy_tp_call_has_dtmf")
1939   (return-type "gboolean")
1940 )
1941
1942
1943
1944 ;; From empathy-tp-chat.h
1945
1946 (define-function tp_chat_get_type
1947   (c-name "empathy_tp_chat_get_type")
1948   (return-type "GType")
1949 )
1950
1951 (define-function tp_chat_new
1952   (c-name "empathy_tp_chat_new")
1953   (is-constructor-of "EmpathyTpChat")
1954   (return-type "EmpathyTpChat*")
1955   (parameters
1956     '("TpChannel*" "channel")
1957   )
1958 )
1959
1960 (define-method close
1961   (of-object "EmpathyTpChat")
1962   (c-name "empathy_tp_chat_close")
1963   (return-type "none")
1964 )
1965
1966 (define-method get_id
1967   (of-object "EmpathyTpChat")
1968   (c-name "empathy_tp_chat_get_id")
1969   (return-type "const-gchar*")
1970 )
1971
1972 (define-method get_remote_contact
1973   (of-object "EmpathyTpChat")
1974   (c-name "empathy_tp_chat_get_remote_contact")
1975   (return-type "EmpathyContact*")
1976 )
1977
1978 (define-method get_account
1979   (of-object "EmpathyTpChat")
1980   (c-name "empathy_tp_chat_get_account")
1981   (return-type "McAccount*")
1982 )
1983
1984 (define-method get_channel
1985   (of-object "EmpathyTpChat")
1986   (c-name "empathy_tp_chat_get_channel")
1987   (return-type "TpChannel*")
1988 )
1989
1990 (define-method is_ready
1991   (of-object "EmpathyTpChat")
1992   (c-name "empathy_tp_chat_is_ready")
1993   (return-type "gboolean")
1994 )
1995
1996 (define-method get_members_count
1997   (of-object "EmpathyTpChat")
1998   (c-name "empathy_tp_chat_get_members_count")
1999   (return-type "guint")
2000 )
2001
2002 (define-method send
2003   (of-object "EmpathyTpChat")
2004   (c-name "empathy_tp_chat_send")
2005   (return-type "none")
2006   (parameters
2007     '("EmpathyMessage*" "message")
2008   )
2009 )
2010
2011 (define-method set_state
2012   (of-object "EmpathyTpChat")
2013   (c-name "empathy_tp_chat_set_state")
2014   (return-type "none")
2015   (parameters
2016     '("TpChannelChatState" "state")
2017   )
2018 )
2019
2020 (define-method set_property
2021   (of-object "EmpathyTpChat")
2022   (c-name "empathy_tp_chat_set_property")
2023   (return-type "none")
2024   (parameters
2025     '("const-gchar*" "name")
2026     '("const-GValue*" "value")
2027   )
2028 )
2029
2030 (define-method get_pending_messages
2031   (of-object "EmpathyTpChat")
2032   (c-name "empathy_tp_chat_get_pending_messages")
2033   (return-type "const-GList*")
2034 )
2035
2036 (define-method acknowledge_message
2037   (of-object "EmpathyTpChat")
2038   (c-name "empathy_tp_chat_acknowledge_message")
2039   (return-type "none")
2040   (parameters
2041     '("EmpathyMessage*" "message")
2042   )
2043 )
2044
2045 (define-method acknowledge_messages
2046   (of-object "EmpathyTpChat")
2047   (c-name "empathy_tp_chat_acknowledge_messages")
2048   (return-type "none")
2049   (parameters
2050     '("const-GList*" "messages")
2051   )
2052 )
2053
2054
2055
2056 ;; From empathy-tp-contact-factory.h
2057
2058 (define-function tp_contact_factory_get_type
2059   (c-name "empathy_tp_contact_factory_get_type")
2060   (return-type "GType")
2061 )
2062
2063 (define-function tp_contact_factory_new
2064   (c-name "empathy_tp_contact_factory_new")
2065   (is-constructor-of "EmpathyTpContactFactory")
2066   (return-type "EmpathyTpContactFactory*")
2067   (parameters
2068     '("McAccount*" "account")
2069   )
2070 )
2071
2072 (define-method get_user
2073   (of-object "EmpathyTpContactFactory")
2074   (c-name "empathy_tp_contact_factory_get_user")
2075   (return-type "EmpathyContact*")
2076 )
2077
2078 (define-method get_from_id
2079   (of-object "EmpathyTpContactFactory")
2080   (c-name "empathy_tp_contact_factory_get_from_id")
2081   (return-type "EmpathyContact*")
2082   (parameters
2083     '("const-gchar*" "id")
2084   )
2085 )
2086
2087 (define-method get_from_handle
2088   (of-object "EmpathyTpContactFactory")
2089   (c-name "empathy_tp_contact_factory_get_from_handle")
2090   (return-type "EmpathyContact*")
2091   (parameters
2092     '("guint" "handle")
2093   )
2094 )
2095
2096 (define-method get_from_handles
2097   (of-object "EmpathyTpContactFactory")
2098   (c-name "empathy_tp_contact_factory_get_from_handles")
2099   (return-type "GList*")
2100   (parameters
2101     '("const-GArray*" "handles")
2102   )
2103 )
2104
2105 (define-method set_alias
2106   (of-object "EmpathyTpContactFactory")
2107   (c-name "empathy_tp_contact_factory_set_alias")
2108   (return-type "none")
2109   (parameters
2110     '("EmpathyContact*" "contact")
2111     '("const-gchar*" "alias")
2112   )
2113 )
2114
2115 (define-method set_avatar
2116   (of-object "EmpathyTpContactFactory")
2117   (c-name "empathy_tp_contact_factory_set_avatar")
2118   (return-type "none")
2119   (parameters
2120     '("const-gchar*" "data")
2121     '("gsize" "size")
2122     '("const-gchar*" "mime_type")
2123   )
2124 )
2125
2126 (define-method is_ready
2127   (of-object "EmpathyTpContactFactory")
2128   (c-name "empathy_tp_contact_factory_is_ready")
2129   (return-type "gboolean")
2130 )
2131
2132
2133
2134 ;; From empathy-tp-contact-list.h
2135
2136 (define-function tp_contact_list_get_type
2137   (c-name "empathy_tp_contact_list_get_type")
2138   (return-type "GType")
2139 )
2140
2141 (define-function tp_contact_list_new
2142   (c-name "empathy_tp_contact_list_new")
2143   (is-constructor-of "EmpathyTpContactList")
2144   (return-type "EmpathyTpContactList*")
2145   (parameters
2146     '("McAccount*" "account")
2147   )
2148 )
2149
2150 (define-method get_account
2151   (of-object "EmpathyTpContactList")
2152   (c-name "empathy_tp_contact_list_get_account")
2153   (return-type "McAccount*")
2154 )
2155
2156 (define-method can_add
2157   (of-object "EmpathyTpContactList")
2158   (c-name "empathy_tp_contact_list_can_add")
2159   (return-type "gboolean")
2160 )
2161
2162
2163
2164 ;; From empathy-tp-file.h
2165
2166 (define-function tp_file_get_type
2167   (c-name "empathy_tp_file_get_type")
2168   (return-type "GType")
2169 )
2170
2171 (define-function tp_file_new
2172   (c-name "empathy_tp_file_new")
2173   (is-constructor-of "EmpathyTpFile")
2174   (return-type "EmpathyTpFile*")
2175   (parameters
2176     '("TpChannel*" "channel")
2177   )
2178 )
2179
2180 (define-method get_channel
2181   (of-object "EmpathyTpFile")
2182   (c-name "empathy_tp_file_get_channel")
2183   (return-type "TpChannel*")
2184 )
2185
2186 (define-method accept
2187   (of-object "EmpathyTpFile")
2188   (c-name "empathy_tp_file_accept")
2189   (return-type "none")
2190   (parameters
2191     '("guint64" "offset")
2192     '("GFile*" "gfile")
2193     '("GError**" "error")
2194   )
2195 )
2196
2197 (define-method cancel
2198   (of-object "EmpathyTpFile")
2199   (c-name "empathy_tp_file_cancel")
2200   (return-type "none")
2201 )
2202
2203 (define-method close
2204   (of-object "EmpathyTpFile")
2205   (c-name "empathy_tp_file_close")
2206   (return-type "none")
2207 )
2208
2209 (define-method offer
2210   (of-object "EmpathyTpFile")
2211   (c-name "empathy_tp_file_offer")
2212   (return-type "none")
2213   (parameters
2214     '("GFile*" "gfile")
2215     '("GError**" "error")
2216   )
2217 )
2218
2219 (define-method get_contact
2220   (of-object "EmpathyTpFile")
2221   (c-name "empathy_tp_file_get_contact")
2222   (return-type "EmpathyContact*")
2223 )
2224
2225 (define-method get_filename
2226   (of-object "EmpathyTpFile")
2227   (c-name "empathy_tp_file_get_filename")
2228   (return-type "const-gchar*")
2229 )
2230
2231 (define-method is_incoming
2232   (of-object "EmpathyTpFile")
2233   (c-name "empathy_tp_file_is_incoming")
2234   (return-type "gboolean")
2235 )
2236
2237 (define-method get_state
2238   (of-object "EmpathyTpFile")
2239   (c-name "empathy_tp_file_get_state")
2240   (return-type "guint")
2241   (parameters
2242     '("guint*" "reason")
2243   )
2244 )
2245
2246 (define-method get_size
2247   (of-object "EmpathyTpFile")
2248   (c-name "empathy_tp_file_get_size")
2249   (return-type "guint64")
2250 )
2251
2252 (define-method get_transferred_bytes
2253   (of-object "EmpathyTpFile")
2254   (c-name "empathy_tp_file_get_transferred_bytes")
2255   (return-type "guint64")
2256 )
2257
2258 (define-method get_remaining_time
2259   (of-object "EmpathyTpFile")
2260   (c-name "empathy_tp_file_get_remaining_time")
2261   (return-type "gint")
2262 )
2263
2264 (define-method get_content_type
2265   (of-object "EmpathyTpFile")
2266   (c-name "empathy_tp_file_get_content_type")
2267   (return-type "const-gchar*")
2268 )
2269
2270
2271
2272 ;; From empathy-tp-group.h
2273
2274 (define-function tp_group_get_type
2275   (c-name "empathy_tp_group_get_type")
2276   (return-type "GType")
2277 )
2278
2279 (define-function tp_group_new
2280   (c-name "empathy_tp_group_new")
2281   (is-constructor-of "EmpathyTpGroup")
2282   (return-type "EmpathyTpGroup*")
2283   (parameters
2284     '("TpChannel*" "channel")
2285   )
2286 )
2287
2288 (define-method close
2289   (of-object "EmpathyTpGroup")
2290   (c-name "empathy_tp_group_close")
2291   (return-type "none")
2292 )
2293
2294 (define-method add_members
2295   (of-object "EmpathyTpGroup")
2296   (c-name "empathy_tp_group_add_members")
2297   (return-type "none")
2298   (parameters
2299     '("GList*" "contacts")
2300     '("const-gchar*" "message")
2301   )
2302 )
2303
2304 (define-method add_member
2305   (of-object "EmpathyTpGroup")
2306   (c-name "empathy_tp_group_add_member")
2307   (return-type "none")
2308   (parameters
2309     '("EmpathyContact*" "contact")
2310     '("const-gchar*" "message")
2311   )
2312 )
2313
2314 (define-method remove_members
2315   (of-object "EmpathyTpGroup")
2316   (c-name "empathy_tp_group_remove_members")
2317   (return-type "none")
2318   (parameters
2319     '("GList*" "contacts")
2320     '("const-gchar*" "message")
2321   )
2322 )
2323
2324 (define-method remove_member
2325   (of-object "EmpathyTpGroup")
2326   (c-name "empathy_tp_group_remove_member")
2327   (return-type "none")
2328   (parameters
2329     '("EmpathyContact*" "contact")
2330     '("const-gchar*" "message")
2331   )
2332 )
2333
2334 (define-method get_members
2335   (of-object "EmpathyTpGroup")
2336   (c-name "empathy_tp_group_get_members")
2337   (return-type "GList*")
2338 )
2339
2340 (define-method get_local_pendings
2341   (of-object "EmpathyTpGroup")
2342   (c-name "empathy_tp_group_get_local_pendings")
2343   (return-type "GList*")
2344 )
2345
2346 (define-method get_remote_pendings
2347   (of-object "EmpathyTpGroup")
2348   (c-name "empathy_tp_group_get_remote_pendings")
2349   (return-type "GList*")
2350 )
2351
2352 (define-method get_name
2353   (of-object "EmpathyTpGroup")
2354   (c-name "empathy_tp_group_get_name")
2355   (return-type "const-gchar*")
2356 )
2357
2358 (define-method get_self_contact
2359   (of-object "EmpathyTpGroup")
2360   (c-name "empathy_tp_group_get_self_contact")
2361   (return-type "EmpathyContact*")
2362 )
2363
2364 (define-method is_member
2365   (of-object "EmpathyTpGroup")
2366   (c-name "empathy_tp_group_is_member")
2367   (return-type "gboolean")
2368   (parameters
2369     '("EmpathyContact*" "contact")
2370   )
2371 )
2372
2373 (define-method is_ready
2374   (of-object "EmpathyTpGroup")
2375   (c-name "empathy_tp_group_is_ready")
2376   (return-type "gboolean")
2377 )
2378
2379 (define-method get_invitation
2380   (of-object "EmpathyTpGroup")
2381   (c-name "empathy_tp_group_get_invitation")
2382   (return-type "EmpathyPendingInfo*")
2383   (parameters
2384     '("EmpathyContact**" "remote_contact")
2385   )
2386 )
2387
2388 (define-function pending_info_new
2389   (c-name "empathy_pending_info_new")
2390   (is-constructor-of "EmpathyPendingInfo")
2391   (return-type "EmpathyPendingInfo*")
2392   (parameters
2393     '("EmpathyContact*" "member")
2394     '("EmpathyContact*" "actor")
2395     '("const-gchar*" "message")
2396   )
2397 )
2398
2399 (define-method free
2400   (of-object "EmpathyPendingInfo")
2401   (c-name "empathy_pending_info_free")
2402   (return-type "none")
2403 )
2404
2405 (define-method get_flags
2406   (of-object "EmpathyTpGroup")
2407   (c-name "empathy_tp_group_get_flags")
2408   (return-type "TpChannelGroupFlags")
2409 )
2410
2411
2412
2413 ;; From empathy-tp-roomlist.h
2414
2415 (define-function tp_roomlist_get_type
2416   (c-name "empathy_tp_roomlist_get_type")
2417   (return-type "GType")
2418 )
2419
2420 (define-function tp_roomlist_new
2421   (c-name "empathy_tp_roomlist_new")
2422   (is-constructor-of "EmpathyTpRoomlist")
2423   (return-type "EmpathyTpRoomlist*")
2424   (parameters
2425     '("McAccount*" "account")
2426   )
2427 )
2428
2429 (define-method is_listing
2430   (of-object "EmpathyTpRoomlist")
2431   (c-name "empathy_tp_roomlist_is_listing")
2432   (return-type "gboolean")
2433 )
2434
2435 (define-method start
2436   (of-object "EmpathyTpRoomlist")
2437   (c-name "empathy_tp_roomlist_start")
2438   (return-type "none")
2439 )
2440
2441 (define-method stop
2442   (of-object "EmpathyTpRoomlist")
2443   (c-name "empathy_tp_roomlist_stop")
2444   (return-type "none")
2445 )
2446
2447
2448
2449 ;; From empathy-tp-tube.h
2450
2451 (define-function tp_tube_get_type
2452   (c-name "empathy_tp_tube_get_type")
2453   (return-type "GType")
2454 )
2455
2456 (define-function tp_tube_new
2457   (c-name "empathy_tp_tube_new")
2458   (is-constructor-of "EmpathyTpTube")
2459   (return-type "EmpathyTpTube*")
2460   (parameters
2461     '("TpChannel*" "channel")
2462   )
2463 )
2464
2465 (define-function tp_tube_new_stream_tube
2466   (c-name "empathy_tp_tube_new_stream_tube")
2467   (return-type "EmpathyTpTube*")
2468   (parameters
2469     '("EmpathyContact*" "contact")
2470     '("TpSocketAddressType" "type")
2471     '("const-gchar*" "hostname")
2472     '("guint" "port")
2473     '("const-gchar*" "service")
2474   )
2475 )
2476
2477 (define-method accept_stream_tube
2478   (of-object "EmpathyTpTube")
2479   (c-name "empathy_tp_tube_accept_stream_tube")
2480   (return-type "none")
2481   (parameters
2482     '("TpSocketAddressType" "type")
2483     '("EmpatyTpTubeAcceptStreamTubeCb*" "callback")
2484     '("gpointer" "user_data")
2485   )
2486 )
2487
2488
2489
2490 ;; From empathy-tube-handler.h
2491
2492 (define-function tube_handler_get_type
2493   (c-name "empathy_tube_handler_get_type")
2494   (return-type "GType")
2495 )
2496
2497 (define-function tube_handler_new
2498   (c-name "empathy_tube_handler_new")
2499   (is-constructor-of "EmpathyTubeHandler")
2500   (return-type "EmpathyTubeHandler*")
2501   (parameters
2502     '("EmpathyTubeType" "type")
2503     '("const-gchar*" "service")
2504   )
2505 )
2506
2507 (define-function tube_handler_build_bus_name
2508   (c-name "empathy_tube_handler_build_bus_name")
2509   (return-type "gchar*")
2510   (parameters
2511     '("EmpathyTubeType" "type")
2512     '("const-gchar*" "service")
2513   )
2514 )
2515
2516 (define-function tube_handler_build_object_path
2517   (c-name "empathy_tube_handler_build_object_path")
2518   (return-type "gchar*")
2519   (parameters
2520     '("EmpathyTubeType" "type")
2521     '("const-gchar*" "service")
2522   )
2523 )
2524
2525
2526
2527 ;; From empathy-types.h
2528
2529
2530
2531 ;; From empathy-utils.h
2532
2533 (define-function init
2534   (c-name "empathy_init")
2535   (return-type "none")
2536 )
2537
2538 (define-function substring
2539   (c-name "empathy_substring")
2540   (return-type "gchar*")
2541   (parameters
2542     '("const-gchar*" "str")
2543     '("gint" "start")
2544     '("gint" "end")
2545   )
2546 )
2547
2548 (define-function strcasecmp
2549   (c-name "empathy_strcasecmp")
2550   (return-type "gint")
2551   (parameters
2552     '("const-gchar*" "s1")
2553     '("const-gchar*" "s2")
2554   )
2555 )
2556
2557 (define-function strncasecmp
2558   (c-name "empathy_strncasecmp")
2559   (return-type "gint")
2560   (parameters
2561     '("const-gchar*" "s1")
2562     '("const-gchar*" "s2")
2563     '("gsize" "n")
2564   )
2565 )
2566
2567 (define-function xml_validate
2568   (c-name "empathy_xml_validate")
2569   (return-type "gboolean")
2570   (parameters
2571     '("xmlDoc*" "doc")
2572     '("const-gchar*" "dtd_filename")
2573   )
2574 )
2575
2576 (define-function xml_node_get_child
2577   (c-name "empathy_xml_node_get_child")
2578   (return-type "xmlNodePtr")
2579   (parameters
2580     '("xmlNodePtr" "node")
2581     '("const-gchar*" "child_name")
2582   )
2583 )
2584
2585 (define-function xml_node_get_child_content
2586   (c-name "empathy_xml_node_get_child_content")
2587   (return-type "xmlChar*")
2588   (parameters
2589     '("xmlNodePtr" "node")
2590     '("const-gchar*" "child_name")
2591   )
2592 )
2593
2594 (define-function xml_node_find_child_prop_value
2595   (c-name "empathy_xml_node_find_child_prop_value")
2596   (return-type "xmlNodePtr")
2597   (parameters
2598     '("xmlNodePtr" "node")
2599     '("const-gchar*" "prop_name")
2600     '("const-gchar*" "prop_value")
2601   )
2602 )
2603
2604 (define-function account_hash
2605   (c-name "empathy_account_hash")
2606   (return-type "guint")
2607   (parameters
2608     '("gconstpointer" "key")
2609   )
2610 )
2611
2612 (define-function account_equal
2613   (c-name "empathy_account_equal")
2614   (return-type "gboolean")
2615   (parameters
2616     '("gconstpointer" "a")
2617     '("gconstpointer" "b")
2618   )
2619 )
2620
2621 (define-function mission_control_dup_singleton
2622   (c-name "empathy_mission_control_dup_singleton")
2623   (return-type "MissionControl*")
2624 )
2625
2626 (define-function presence_get_default_message
2627   (c-name "empathy_presence_get_default_message")
2628   (return-type "const-gchar*")
2629   (parameters
2630     '("McPresence" "presence")
2631   )
2632 )
2633
2634 (define-function presence_to_str
2635   (c-name "empathy_presence_to_str")
2636   (return-type "const-gchar*")
2637   (parameters
2638     '("McPresence" "presence")
2639   )
2640 )
2641
2642 (define-function presence_from_str
2643   (c-name "empathy_presence_from_str")
2644   (return-type "McPresence")
2645   (parameters
2646     '("const-gchar*" "str")
2647   )
2648 )
2649
2650 (define-function file_lookup
2651   (c-name "empathy_file_lookup")
2652   (return-type "gchar*")
2653   (parameters
2654     '("const-gchar*" "filename")
2655     '("const-gchar*" "subdir")
2656   )
2657 )
2658
2659 (define-function run_until_ready
2660   (c-name "empathy_run_until_ready")
2661   (return-type "none")
2662   (parameters
2663     '("gpointer" "object")
2664   )
2665 )
2666
2667 (define-function run_until_ready_full
2668   (c-name "empathy_run_until_ready_full")
2669   (return-type "none")
2670   (parameters
2671     '("gpointer" "object")
2672     '("const-gchar*" "signal")
2673     '("EmpathyRunUntilReadyFunc" "func")
2674     '("gpointer" "user_data")
2675     '("GMainLoop**" "loop")
2676   )
2677 )
2678
2679 (define-function channel_get_account
2680   (c-name "empathy_channel_get_account")
2681   (return-type "McAccount*")
2682   (parameters
2683     '("TpChannel*" "channel")
2684   )
2685 )
2686
2687 (define-function proxy_equal
2688   (c-name "empathy_proxy_equal")
2689   (return-type "gboolean")
2690   (parameters
2691     '("gconstpointer" "a")
2692     '("gconstpointer" "b")
2693   )
2694 )
2695
2696 (define-function proxy_hash
2697   (c-name "empathy_proxy_hash")
2698   (return-type "guint")
2699   (parameters
2700     '("gconstpointer" "key")
2701   )
2702 )
2703
2704 (define-function check_available_state
2705   (c-name "empathy_check_available_state")
2706   (return-type "gboolean")
2707 )
2708
2709 (define-function start_call_with_contact
2710   (c-name "empathy_start_call_with_contact")
2711   (return-type "none")
2712   (parameters
2713     '("EmpathyContact*" "contact")
2714   )
2715 )
2716
2717