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