]> git.0d.be Git - empathy.git/blob - python/pyempathy/pyempathy.defs
Don't set NM presence state on connect when it was unset
[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 new_call_with_streams
603   (of-object "EmpathyCallFactory")
604   (c-name "empathy_call_factory_new_call_with_streams")
605   (return-type "none")
606   (parameters
607     '("EmpathyContact*" "contact")
608     '("gboolean" "initial_audio")
609     '("gboolean" "initial_video")
610   )
611 )
612
613 (define-method claim_channel
614   (of-object "EmpathyCallFactory")
615   (c-name "empathy_call_factory_claim_channel")
616   (return-type "none")
617   (parameters
618     '("EmpathyDispatchOperation*" "operation")
619   )
620 )
621
622
623
624 ;; From empathy-call-handler.h
625
626 (define-function call_handler_get_type
627   (c-name "empathy_call_handler_get_type")
628   (return-type "GType")
629 )
630
631 (define-function call_handler_new_for_contact
632   (c-name "empathy_call_handler_new_for_contact")
633   (return-type "EmpathyCallHandler*")
634   (parameters
635     '("EmpathyContact*" "contact")
636   )
637 )
638
639 (define-function call_handler_new_for_contact_with_streams
640   (c-name "empathy_call_handler_new_for_contact_with_streams")
641   (return-type "EmpathyCallHandler*")
642   (parameters
643     '("EmpathyContact*" "contact")
644     '("gboolean" "audio")
645     '("gboolean" "video")
646   )
647 )
648
649 (define-function call_handler_new_for_channel
650   (c-name "empathy_call_handler_new_for_channel")
651   (return-type "EmpathyCallHandler*")
652   (parameters
653     '("EmpathyTpCall*" "call")
654   )
655 )
656
657 (define-method start_call
658   (of-object "EmpathyCallHandler")
659   (c-name "empathy_call_handler_start_call")
660   (return-type "none")
661 )
662
663 (define-method bus_message
664   (of-object "EmpathyCallHandler")
665   (c-name "empathy_call_handler_bus_message")
666   (return-type "none")
667   (parameters
668     '("GstBus*" "bus")
669     '("GstMessage*" "message")
670   )
671 )
672
673
674
675 ;; From empathy-contact.h
676
677 (define-function contact_get_type
678   (c-name "empathy_contact_get_type")
679   (return-type "GType")
680 )
681
682 (define-function contact_new
683   (c-name "empathy_contact_new")
684   (is-constructor-of "EmpathyContact")
685   (return-type "EmpathyContact*")
686   (parameters
687     '("TpContact*" "tp_contact")
688   )
689 )
690
691 (define-function contact_new_for_log
692   (c-name "empathy_contact_new_for_log")
693   (return-type "EmpathyContact*")
694   (parameters
695     '("McAccount*" "account")
696     '("const-gchar*" "id")
697     '("const-gchar*" "name")
698     '("gboolean" "is_user")
699   )
700 )
701
702 (define-method get_tp_contact
703   (of-object "EmpathyContact")
704   (c-name "empathy_contact_get_tp_contact")
705   (return-type "TpContact*")
706 )
707
708 (define-method get_id
709   (of-object "EmpathyContact")
710   (c-name "empathy_contact_get_id")
711   (return-type "const-gchar*")
712 )
713
714 (define-method set_id
715   (of-object "EmpathyContact")
716   (c-name "empathy_contact_set_id")
717   (return-type "none")
718   (parameters
719     '("const-gchar*" "id")
720   )
721 )
722
723 (define-method get_name
724   (of-object "EmpathyContact")
725   (c-name "empathy_contact_get_name")
726   (return-type "const-gchar*")
727 )
728
729 (define-method set_name
730   (of-object "EmpathyContact")
731   (c-name "empathy_contact_set_name")
732   (return-type "none")
733   (parameters
734     '("const-gchar*" "name")
735   )
736 )
737
738 (define-method get_avatar
739   (of-object "EmpathyContact")
740   (c-name "empathy_contact_get_avatar")
741   (return-type "EmpathyAvatar*")
742 )
743
744 (define-method set_avatar
745   (of-object "EmpathyContact")
746   (c-name "empathy_contact_set_avatar")
747   (return-type "none")
748   (parameters
749     '("EmpathyAvatar*" "avatar")
750   )
751 )
752
753 (define-method get_account
754   (of-object "EmpathyContact")
755   (c-name "empathy_contact_get_account")
756   (return-type "McAccount*")
757 )
758
759 (define-method get_connection
760   (of-object "EmpathyContact")
761   (c-name "empathy_contact_get_connection")
762   (return-type "TpConnection*")
763 )
764
765 (define-method get_presence
766   (of-object "EmpathyContact")
767   (c-name "empathy_contact_get_presence")
768   (return-type "TpConnectionPresenceType")
769 )
770
771 (define-method set_presence
772   (of-object "EmpathyContact")
773   (c-name "empathy_contact_set_presence")
774   (return-type "none")
775   (parameters
776     '("TpConnectionPresenceType" "presence")
777   )
778 )
779
780 (define-method get_presence_message
781   (of-object "EmpathyContact")
782   (c-name "empathy_contact_get_presence_message")
783   (return-type "const-gchar*")
784 )
785
786 (define-method set_presence_message
787   (of-object "EmpathyContact")
788   (c-name "empathy_contact_set_presence_message")
789   (return-type "none")
790   (parameters
791     '("const-gchar*" "message")
792   )
793 )
794
795 (define-method get_handle
796   (of-object "EmpathyContact")
797   (c-name "empathy_contact_get_handle")
798   (return-type "guint")
799 )
800
801 (define-method set_handle
802   (of-object "EmpathyContact")
803   (c-name "empathy_contact_set_handle")
804   (return-type "none")
805   (parameters
806     '("guint" "handle")
807   )
808 )
809
810 (define-method get_capabilities
811   (of-object "EmpathyContact")
812   (c-name "empathy_contact_get_capabilities")
813   (return-type "EmpathyCapabilities")
814 )
815
816 (define-method set_capabilities
817   (of-object "EmpathyContact")
818   (c-name "empathy_contact_set_capabilities")
819   (return-type "none")
820   (parameters
821     '("EmpathyCapabilities" "capabilities")
822   )
823 )
824
825 (define-method is_user
826   (of-object "EmpathyContact")
827   (c-name "empathy_contact_is_user")
828   (return-type "gboolean")
829 )
830
831 (define-method set_is_user
832   (of-object "EmpathyContact")
833   (c-name "empathy_contact_set_is_user")
834   (return-type "none")
835   (parameters
836     '("gboolean" "is_user")
837   )
838 )
839
840 (define-method is_online
841   (of-object "EmpathyContact")
842   (c-name "empathy_contact_is_online")
843   (return-type "gboolean")
844 )
845
846 (define-method get_status
847   (of-object "EmpathyContact")
848   (c-name "empathy_contact_get_status")
849   (return-type "const-gchar*")
850 )
851
852 (define-method can_voip
853   (of-object "EmpathyContact")
854   (c-name "empathy_contact_can_voip")
855   (return-type "gboolean")
856 )
857
858 (define-method can_send_files
859   (of-object "EmpathyContact")
860   (c-name "empathy_contact_can_send_files")
861   (return-type "gboolean")
862 )
863
864 (define-function contact_hash
865   (c-name "empathy_contact_hash")
866   (return-type "guint")
867   (parameters
868     '("gconstpointer" "key")
869   )
870 )
871
872 (define-method load_avatar_data
873   (of-object "EmpathyContact")
874   (c-name "empathy_contact_load_avatar_data")
875   (return-type "none")
876   (parameters
877     '("const-guchar*" "data")
878     '("const-gsize" "len")
879     '("const-gchar*" "format")
880     '("const-gchar*" "token")
881   )
882 )
883
884 (define-method load_avatar_cache
885   (of-object "EmpathyContact")
886   (c-name "empathy_contact_load_avatar_cache")
887   (return-type "gboolean")
888   (parameters
889     '("const-gchar*" "token")
890   )
891 )
892
893 (define-function avatar_get_type
894   (c-name "empathy_avatar_get_type")
895   (return-type "GType")
896 )
897
898 (define-function avatar_new
899   (c-name "empathy_avatar_new")
900   (is-constructor-of "EmpathyAvatar")
901   (return-type "EmpathyAvatar*")
902   (parameters
903     '("guchar*" "data")
904     '("gsize" "len")
905     '("gchar*" "format")
906     '("gchar*" "token")
907   )
908 )
909
910 (define-method ref
911   (of-object "EmpathyAvatar")
912   (c-name "empathy_avatar_ref")
913   (return-type "EmpathyAvatar*")
914 )
915
916 (define-method unref
917   (of-object "EmpathyAvatar")
918   (c-name "empathy_avatar_unref")
919   (return-type "none")
920 )
921
922 (define-method save_to_file
923   (of-object "EmpathyAvatar")
924   (c-name "empathy_avatar_save_to_file")
925   (return-type "gboolean")
926   (parameters
927     '("const-gchar*" "filename")
928     '("GError**" "error")
929   )
930 )
931
932 (define-method get_location
933   (of-object "EmpathyContact")
934   (c-name "empathy_contact_get_location")
935   (return-type "GHashTable*")
936 )
937
938 (define-method set_location
939   (of-object "EmpathyContact")
940   (c-name "empathy_contact_set_location")
941   (return-type "none")
942   (parameters
943     '("GHashTable*" "location")
944   )
945 )
946
947
948
949 ;; From empathy-contact-groups.h
950
951 (define-function contact_groups_get_all
952   (c-name "empathy_contact_groups_get_all")
953   (return-type "none")
954 )
955
956 (define-function contact_group_get_expanded
957   (c-name "empathy_contact_group_get_expanded")
958   (return-type "gboolean")
959   (parameters
960     '("const-gchar*" "group")
961   )
962 )
963
964 (define-function contact_group_set_expanded
965   (c-name "empathy_contact_group_set_expanded")
966   (return-type "none")
967   (parameters
968     '("const-gchar*" "group")
969     '("gboolean" "expanded")
970   )
971 )
972
973
974
975 ;; From empathy-contact-list.h
976
977 (define-function contact_list_get_type
978   (c-name "empathy_contact_list_get_type")
979   (return-type "GType")
980 )
981
982 (define-method add
983   (of-object "EmpathyContactList")
984   (c-name "empathy_contact_list_add")
985   (return-type "none")
986   (parameters
987     '("EmpathyContact*" "contact")
988     '("const-gchar*" "message")
989   )
990 )
991
992 (define-method remove
993   (of-object "EmpathyContactList")
994   (c-name "empathy_contact_list_remove")
995   (return-type "none")
996   (parameters
997     '("EmpathyContact*" "contact")
998     '("const-gchar*" "message")
999   )
1000 )
1001
1002 (define-method get_members
1003   (of-object "EmpathyContactList")
1004   (c-name "empathy_contact_list_get_members")
1005   (return-type "GList*")
1006 )
1007
1008 (define-method get_pendings
1009   (of-object "EmpathyContactList")
1010   (c-name "empathy_contact_list_get_pendings")
1011   (return-type "GList*")
1012 )
1013
1014 (define-method get_all_groups
1015   (of-object "EmpathyContactList")
1016   (c-name "empathy_contact_list_get_all_groups")
1017   (return-type "GList*")
1018 )
1019
1020 (define-method get_groups
1021   (of-object "EmpathyContactList")
1022   (c-name "empathy_contact_list_get_groups")
1023   (return-type "GList*")
1024   (parameters
1025     '("EmpathyContact*" "contact")
1026   )
1027 )
1028
1029 (define-method add_to_group
1030   (of-object "EmpathyContactList")
1031   (c-name "empathy_contact_list_add_to_group")
1032   (return-type "none")
1033   (parameters
1034     '("EmpathyContact*" "contact")
1035     '("const-gchar*" "group")
1036   )
1037 )
1038
1039 (define-method remove_from_group
1040   (of-object "EmpathyContactList")
1041   (c-name "empathy_contact_list_remove_from_group")
1042   (return-type "none")
1043   (parameters
1044     '("EmpathyContact*" "contact")
1045     '("const-gchar*" "group")
1046   )
1047 )
1048
1049 (define-method rename_group
1050   (of-object "EmpathyContactList")
1051   (c-name "empathy_contact_list_rename_group")
1052   (return-type "none")
1053   (parameters
1054     '("const-gchar*" "old_group")
1055     '("const-gchar*" "new_group")
1056   )
1057 )
1058
1059 (define-method remove_group
1060   (of-object "EmpathyContactList")
1061   (c-name "empathy_contact_list_remove_group")
1062   (return-type "none")
1063   (parameters
1064     '("const-gchar*" "group")
1065   )
1066 )
1067
1068 (define-method get_monitor
1069   (of-object "EmpathyContactList")
1070   (c-name "empathy_contact_list_get_monitor")
1071   (return-type "EmpathyContactMonitor*")
1072 )
1073
1074
1075
1076 ;; From empathy-contact-manager.h
1077
1078 (define-function contact_manager_get_type
1079   (c-name "empathy_contact_manager_get_type")
1080   (return-type "GType")
1081 )
1082
1083 (define-function contact_manager_dup_singleton
1084   (c-name "empathy_contact_manager_dup_singleton")
1085   (return-type "EmpathyContactManager*")
1086 )
1087
1088 (define-method get_list
1089   (of-object "EmpathyContactManager")
1090   (c-name "empathy_contact_manager_get_list")
1091   (return-type "EmpathyTpContactList*")
1092   (parameters
1093     '("TpConnection*" "connection")
1094   )
1095 )
1096
1097 (define-method can_add
1098   (of-object "EmpathyContactManager")
1099   (c-name "empathy_contact_manager_can_add")
1100   (return-type "gboolean")
1101   (parameters
1102     '("TpConnection*" "connection")
1103   )
1104 )
1105
1106
1107
1108 ;; From empathy-contact-monitor.h
1109
1110 (define-function contact_monitor_get_type
1111   (c-name "empathy_contact_monitor_get_type")
1112   (return-type "GType")
1113 )
1114
1115 (define-method set_iface
1116   (of-object "EmpathyContactMonitor")
1117   (c-name "empathy_contact_monitor_set_iface")
1118   (return-type "none")
1119   (parameters
1120     '("EmpathyContactList*" "iface")
1121   )
1122 )
1123
1124 (define-function contact_monitor_new_for_iface
1125   (c-name "empathy_contact_monitor_new_for_iface")
1126   (return-type "EmpathyContactMonitor*")
1127   (parameters
1128     '("EmpathyContactList*" "iface")
1129   )
1130 )
1131
1132
1133
1134 ;; From empathy-debug.h
1135
1136 (define-function debug_flag_is_set
1137   (c-name "empathy_debug_flag_is_set")
1138   (return-type "gboolean")
1139   (parameters
1140     '("EmpathyDebugFlags" "flag")
1141   )
1142 )
1143
1144 (define-function debug
1145   (c-name "empathy_debug")
1146   (return-type "none")
1147   (parameters
1148     '("EmpathyDebugFlags" "flag")
1149     '("const-gchar*" "format")
1150   )
1151   (varargs #t)
1152 )
1153
1154 (define-function debug_set_flags
1155   (c-name "empathy_debug_set_flags")
1156   (return-type "none")
1157   (parameters
1158     '("const-gchar*" "flags_string")
1159   )
1160 )
1161
1162
1163
1164 ;; From empathy-dispatcher.h
1165
1166 (define-function dispatcher_get_type
1167   (c-name "empathy_dispatcher_get_type")
1168   (return-type "GType")
1169 )
1170
1171 (define-method create_channel
1172   (of-object "EmpathyDispatcher")
1173   (c-name "empathy_dispatcher_create_channel")
1174   (return-type "none")
1175   (parameters
1176     '("TpConnection*" "connection")
1177     '("GHashTable*" "request")
1178     '("EmpathyDispatcherRequestCb*" "callback")
1179     '("gpointer" "user_data")
1180   )
1181 )
1182
1183 (define-function dispatcher_chat_with_contact_id
1184   (c-name "empathy_dispatcher_chat_with_contact_id")
1185   (return-type "none")
1186   (parameters
1187     '("TpConnection*" "connection")
1188     '("const-gchar*" "contact_id")
1189     '("EmpathyDispatcherRequestCb*" "callback")
1190     '("gpointer" "user_data")
1191   )
1192 )
1193
1194 (define-function dispatcher_chat_with_contact
1195   (c-name "empathy_dispatcher_chat_with_contact")
1196   (return-type "none")
1197   (parameters
1198     '("EmpathyContact*" "contact")
1199     '("EmpathyDispatcherRequestCb*" "callback")
1200     '("gpointer" "user_data")
1201   )
1202 )
1203
1204 (define-function dispatcher_send_file_to_contact
1205   (c-name "empathy_dispatcher_send_file_to_contact")
1206   (return-type "none")
1207   (parameters
1208     '("EmpathyContact*" "contact")
1209     '("const-gchar*" "filename")
1210     '("guint64" "size")
1211     '("guint64" "date")
1212     '("const-gchar*" "content_type")
1213     '("EmpathyDispatcherRequestCb*" "callback")
1214     '("gpointer" "user_data")
1215   )
1216 )
1217
1218 (define-function dispatcher_join_muc
1219   (c-name "empathy_dispatcher_join_muc")
1220   (return-type "none")
1221   (parameters
1222     '("TpConnection*" "connection")
1223     '("const-gchar*" "roomname")
1224     '("EmpathyDispatcherRequestCb*" "callback")
1225     '("gpointer" "user_data")
1226   )
1227 )
1228
1229 (define-method find_channel_class
1230   (of-object "EmpathyDispatcher")
1231   (c-name "empathy_dispatcher_find_channel_class")
1232   (return-type "GStrv")
1233   (parameters
1234     '("TpConnection*" "connection")
1235     '("const-gchar*" "channel_type")
1236     '("guint" "handle_type")
1237   )
1238 )
1239
1240 (define-function dispatcher_dup_singleton
1241   (c-name "empathy_dispatcher_dup_singleton")
1242   (return-type "EmpathyDispatcher*")
1243 )
1244
1245
1246
1247 ;; From empathy-dispatch-operation.h
1248
1249 (define-function dispatch_operation_get_type
1250   (c-name "empathy_dispatch_operation_get_type")
1251   (return-type "GType")
1252 )
1253
1254 (define-function dispatch_operation_new
1255   (c-name "empathy_dispatch_operation_new")
1256   (is-constructor-of "EmpathyDispatchOperation")
1257   (return-type "EmpathyDispatchOperation*")
1258   (parameters
1259     '("TpConnection*" "connection")
1260     '("TpChannel*" "channel")
1261     '("EmpathyContact*" "contact")
1262     '("gboolean" "incoming")
1263   )
1264 )
1265
1266 (define-function dispatch_operation_new_with_wrapper
1267   (c-name "empathy_dispatch_operation_new_with_wrapper")
1268   (return-type "EmpathyDispatchOperation*")
1269   (parameters
1270     '("TpConnection*" "connection")
1271     '("TpChannel*" "channel")
1272     '("EmpathyContact*" "contact")
1273     '("gboolean" "incoming")
1274     '("GObject*" "channel_wrapper")
1275   )
1276 )
1277
1278 (define-method start
1279   (of-object "EmpathyDispatchOperation")
1280   (c-name "empathy_dispatch_operation_start")
1281   (return-type "none")
1282 )
1283
1284 (define-method approve
1285   (of-object "EmpathyDispatchOperation")
1286   (c-name "empathy_dispatch_operation_approve")
1287   (return-type "none")
1288 )
1289
1290 (define-method claim
1291   (of-object "EmpathyDispatchOperation")
1292   (c-name "empathy_dispatch_operation_claim")
1293   (return-type "gboolean")
1294 )
1295
1296 (define-method get_channel
1297   (of-object "EmpathyDispatchOperation")
1298   (c-name "empathy_dispatch_operation_get_channel")
1299   (return-type "TpChannel*")
1300 )
1301
1302 (define-method get_channel_wrapper
1303   (of-object "EmpathyDispatchOperation")
1304   (c-name "empathy_dispatch_operation_get_channel_wrapper")
1305   (return-type "GObject*")
1306 )
1307
1308 (define-method get_tp_connection
1309   (of-object "EmpathyDispatchOperation")
1310   (c-name "empathy_dispatch_operation_get_tp_connection")
1311   (return-type "TpConnection*")
1312 )
1313
1314 (define-method get_channel_type
1315   (of-object "EmpathyDispatchOperation")
1316   (c-name "empathy_dispatch_operation_get_channel_type")
1317   (return-type "const-gchar*")
1318 )
1319
1320 (define-method get_channel_type_id
1321   (of-object "EmpathyDispatchOperation")
1322   (c-name "empathy_dispatch_operation_get_channel_type_id")
1323   (return-type "GQuark")
1324 )
1325
1326 (define-method get_object_path
1327   (of-object "EmpathyDispatchOperation")
1328   (c-name "empathy_dispatch_operation_get_object_path")
1329   (return-type "const-gchar*")
1330 )
1331
1332 (define-method get_status
1333   (of-object "EmpathyDispatchOperation")
1334   (c-name "empathy_dispatch_operation_get_status")
1335   (return-type "EmpathyDispatchOperationState")
1336 )
1337
1338 (define-method is_incoming
1339   (of-object "EmpathyDispatchOperation")
1340   (c-name "empathy_dispatch_operation_is_incoming")
1341   (return-type "gboolean")
1342 )
1343
1344
1345
1346 ;; From empathy-idle.h
1347
1348 (define-function idle_get_type
1349   (c-name "empathy_idle_get_type")
1350   (return-type "GType")
1351 )
1352
1353 (define-function idle_dup_singleton
1354   (c-name "empathy_idle_dup_singleton")
1355   (return-type "EmpathyIdle*")
1356 )
1357
1358 (define-method get_state
1359   (of-object "EmpathyIdle")
1360   (c-name "empathy_idle_get_state")
1361   (return-type "TpConnectionPresenceType")
1362 )
1363
1364 (define-method set_state
1365   (of-object "EmpathyIdle")
1366   (c-name "empathy_idle_set_state")
1367   (return-type "none")
1368   (parameters
1369     '("TpConnectionPresenceType" "state")
1370   )
1371 )
1372
1373 (define-method get_status
1374   (of-object "EmpathyIdle")
1375   (c-name "empathy_idle_get_status")
1376   (return-type "const-gchar*")
1377 )
1378
1379 (define-method set_status
1380   (of-object "EmpathyIdle")
1381   (c-name "empathy_idle_set_status")
1382   (return-type "none")
1383   (parameters
1384     '("const-gchar*" "status")
1385   )
1386 )
1387
1388 (define-method get_flash_state
1389   (of-object "EmpathyIdle")
1390   (c-name "empathy_idle_get_flash_state")
1391   (return-type "TpConnectionPresenceType")
1392 )
1393
1394 (define-method set_flash_state
1395   (of-object "EmpathyIdle")
1396   (c-name "empathy_idle_set_flash_state")
1397   (return-type "none")
1398   (parameters
1399     '("TpConnectionPresenceType" "state")
1400   )
1401 )
1402
1403 (define-method set_presence
1404   (of-object "EmpathyIdle")
1405   (c-name "empathy_idle_set_presence")
1406   (return-type "none")
1407   (parameters
1408     '("TpConnectionPresenceType" "state")
1409     '("const-gchar*" "status")
1410   )
1411 )
1412
1413 (define-method get_auto_away
1414   (of-object "EmpathyIdle")
1415   (c-name "empathy_idle_get_auto_away")
1416   (return-type "gboolean")
1417 )
1418
1419 (define-method set_auto_away
1420   (of-object "EmpathyIdle")
1421   (c-name "empathy_idle_set_auto_away")
1422   (return-type "none")
1423   (parameters
1424     '("gboolean" "auto_away")
1425   )
1426 )
1427
1428 (define-method get_use_nm
1429   (of-object "EmpathyIdle")
1430   (c-name "empathy_idle_get_use_nm")
1431   (return-type "gboolean")
1432 )
1433
1434 (define-method set_use_nm
1435   (of-object "EmpathyIdle")
1436   (c-name "empathy_idle_set_use_nm")
1437   (return-type "none")
1438   (parameters
1439     '("gboolean" "use_nm")
1440   )
1441 )
1442
1443
1444
1445 ;; From empathy-irc-network.h
1446
1447 (define-function irc_network_get_type
1448   (c-name "empathy_irc_network_get_type")
1449   (return-type "GType")
1450 )
1451
1452 (define-function irc_network_new
1453   (c-name "empathy_irc_network_new")
1454   (is-constructor-of "EmpathyIrcNetwork")
1455   (return-type "EmpathyIrcNetwork*")
1456   (parameters
1457     '("const-gchar*" "name")
1458   )
1459 )
1460
1461 (define-method get_servers
1462   (of-object "EmpathyIrcNetwork")
1463   (c-name "empathy_irc_network_get_servers")
1464   (return-type "GSList*")
1465 )
1466
1467 (define-method append_server
1468   (of-object "EmpathyIrcNetwork")
1469   (c-name "empathy_irc_network_append_server")
1470   (return-type "none")
1471   (parameters
1472     '("EmpathyIrcServer*" "server")
1473   )
1474 )
1475
1476 (define-method remove_server
1477   (of-object "EmpathyIrcNetwork")
1478   (c-name "empathy_irc_network_remove_server")
1479   (return-type "none")
1480   (parameters
1481     '("EmpathyIrcServer*" "server")
1482   )
1483 )
1484
1485 (define-method set_server_position
1486   (of-object "EmpathyIrcNetwork")
1487   (c-name "empathy_irc_network_set_server_position")
1488   (return-type "none")
1489   (parameters
1490     '("EmpathyIrcServer*" "server")
1491     '("gint" "pos")
1492   )
1493 )
1494
1495
1496
1497 ;; From empathy-irc-network-manager.h
1498
1499 (define-function irc_network_manager_get_type
1500   (c-name "empathy_irc_network_manager_get_type")
1501   (return-type "GType")
1502 )
1503
1504 (define-function irc_network_manager_new
1505   (c-name "empathy_irc_network_manager_new")
1506   (is-constructor-of "EmpathyIrcNetworkManager")
1507   (return-type "EmpathyIrcNetworkManager*")
1508   (parameters
1509     '("const-gchar*" "global_file")
1510     '("const-gchar*" "user_file")
1511   )
1512 )
1513
1514 (define-method add
1515   (of-object "EmpathyIrcNetworkManager")
1516   (c-name "empathy_irc_network_manager_add")
1517   (return-type "none")
1518   (parameters
1519     '("EmpathyIrcNetwork*" "network")
1520   )
1521 )
1522
1523 (define-method remove
1524   (of-object "EmpathyIrcNetworkManager")
1525   (c-name "empathy_irc_network_manager_remove")
1526   (return-type "none")
1527   (parameters
1528     '("EmpathyIrcNetwork*" "network")
1529   )
1530 )
1531
1532 (define-method get_networks
1533   (of-object "EmpathyIrcNetworkManager")
1534   (c-name "empathy_irc_network_manager_get_networks")
1535   (return-type "GSList*")
1536 )
1537
1538 (define-method find_network_by_address
1539   (of-object "EmpathyIrcNetworkManager")
1540   (c-name "empathy_irc_network_manager_find_network_by_address")
1541   (return-type "EmpathyIrcNetwork*")
1542   (parameters
1543     '("const-gchar*" "address")
1544   )
1545 )
1546
1547
1548
1549 ;; From empathy-irc-server.h
1550
1551 (define-function irc_server_get_type
1552   (c-name "empathy_irc_server_get_type")
1553   (return-type "GType")
1554 )
1555
1556 (define-function irc_server_new
1557   (c-name "empathy_irc_server_new")
1558   (is-constructor-of "EmpathyIrcServer")
1559   (return-type "EmpathyIrcServer*")
1560   (parameters
1561     '("const-gchar*" "address")
1562     '("guint" "port")
1563     '("gboolean" "ssl")
1564   )
1565 )
1566
1567
1568
1569 ;; From empathy-log-manager.h
1570
1571 (define-function log_manager_get_type
1572   (c-name "empathy_log_manager_get_type")
1573   (return-type "GType")
1574 )
1575
1576 (define-function log_manager_dup_singleton
1577   (c-name "empathy_log_manager_dup_singleton")
1578   (return-type "EmpathyLogManager*")
1579 )
1580
1581 (define-method add_message
1582   (of-object "EmpathyLogManager")
1583   (c-name "empathy_log_manager_add_message")
1584   (return-type "gboolean")
1585   (parameters
1586     '("const-gchar*" "chat_id")
1587     '("gboolean" "chatroom")
1588     '("EmpathyMessage*" "message")
1589     '("GError**" "error")
1590   )
1591 )
1592
1593 (define-method exists
1594   (of-object "EmpathyLogManager")
1595   (c-name "empathy_log_manager_exists")
1596   (return-type "gboolean")
1597   (parameters
1598     '("McAccount*" "account")
1599     '("const-gchar*" "chat_id")
1600     '("gboolean" "chatroom")
1601   )
1602 )
1603
1604 (define-method get_dates
1605   (of-object "EmpathyLogManager")
1606   (c-name "empathy_log_manager_get_dates")
1607   (return-type "GList*")
1608   (parameters
1609     '("McAccount*" "account")
1610     '("const-gchar*" "chat_id")
1611     '("gboolean" "chatroom")
1612   )
1613 )
1614
1615 (define-method get_messages_for_date
1616   (of-object "EmpathyLogManager")
1617   (c-name "empathy_log_manager_get_messages_for_date")
1618   (return-type "GList*")
1619   (parameters
1620     '("McAccount*" "account")
1621     '("const-gchar*" "chat_id")
1622     '("gboolean" "chatroom")
1623     '("const-gchar*" "date")
1624   )
1625 )
1626
1627 (define-method get_filtered_messages
1628   (of-object "EmpathyLogManager")
1629   (c-name "empathy_log_manager_get_filtered_messages")
1630   (return-type "GList*")
1631   (parameters
1632     '("McAccount*" "account")
1633     '("const-gchar*" "chat_id")
1634     '("gboolean" "chatroom")
1635     '("guint" "num_messages")
1636     '("EmpathyLogMessageFilter" "filter")
1637     '("gpointer" "user_data")
1638   )
1639 )
1640
1641 (define-method get_chats
1642   (of-object "EmpathyLogManager")
1643   (c-name "empathy_log_manager_get_chats")
1644   (return-type "GList*")
1645   (parameters
1646     '("McAccount*" "account")
1647   )
1648 )
1649
1650 (define-method search_new
1651   (of-object "EmpathyLogManager")
1652   (c-name "empathy_log_manager_search_new")
1653   (return-type "GList*")
1654   (parameters
1655     '("const-gchar*" "text")
1656   )
1657 )
1658
1659 (define-function log_manager_search_free
1660   (c-name "empathy_log_manager_search_free")
1661   (return-type "none")
1662   (parameters
1663     '("GList*" "hits")
1664   )
1665 )
1666
1667 (define-function log_manager_get_date_readable
1668   (c-name "empathy_log_manager_get_date_readable")
1669   (return-type "gchar*")
1670   (parameters
1671     '("const-gchar*" "date")
1672   )
1673 )
1674
1675 (define-function log_manager_search_hit_free
1676   (c-name "empathy_log_manager_search_hit_free")
1677   (return-type "none")
1678   (parameters
1679     '("EmpathyLogSearchHit*" "hit")
1680   )
1681 )
1682
1683 (define-method observe
1684   (of-object "EmpathyLogManager")
1685   (c-name "empathy_log_manager_observe")
1686   (return-type "none")
1687   (parameters
1688     '("EmpathyDispatcher*" "dispatcher")
1689   )
1690 )
1691
1692
1693
1694 ;; From empathy-log-store.h
1695
1696 (define-function log_store_get_type
1697   (c-name "empathy_log_store_get_type")
1698   (return-type "GType")
1699 )
1700
1701 (define-method get_name
1702   (of-object "EmpathyLogStore")
1703   (c-name "empathy_log_store_get_name")
1704   (return-type "const-gchar*")
1705 )
1706
1707 (define-method exists
1708   (of-object "EmpathyLogStore")
1709   (c-name "empathy_log_store_exists")
1710   (return-type "gboolean")
1711   (parameters
1712     '("McAccount*" "account")
1713     '("const-gchar*" "chat_id")
1714     '("gboolean" "chatroom")
1715   )
1716 )
1717
1718 (define-method add_message
1719   (of-object "EmpathyLogStore")
1720   (c-name "empathy_log_store_add_message")
1721   (return-type "gboolean")
1722   (parameters
1723     '("const-gchar*" "chat_id")
1724     '("gboolean" "chatroom")
1725     '("EmpathyMessage*" "message")
1726     '("GError**" "error")
1727   )
1728 )
1729
1730 (define-method get_dates
1731   (of-object "EmpathyLogStore")
1732   (c-name "empathy_log_store_get_dates")
1733   (return-type "GList*")
1734   (parameters
1735     '("McAccount*" "account")
1736     '("const-gchar*" "chat_id")
1737     '("gboolean" "chatroom")
1738   )
1739 )
1740
1741 (define-method get_messages_for_date
1742   (of-object "EmpathyLogStore")
1743   (c-name "empathy_log_store_get_messages_for_date")
1744   (return-type "GList*")
1745   (parameters
1746     '("McAccount*" "account")
1747     '("const-gchar*" "chat_id")
1748     '("gboolean" "chatroom")
1749     '("const-gchar*" "date")
1750   )
1751 )
1752
1753 (define-method get_last_messages
1754   (of-object "EmpathyLogStore")
1755   (c-name "empathy_log_store_get_last_messages")
1756   (return-type "GList*")
1757   (parameters
1758     '("McAccount*" "account")
1759     '("const-gchar*" "chat_id")
1760     '("gboolean" "chatroom")
1761   )
1762 )
1763
1764 (define-method get_chats
1765   (of-object "EmpathyLogStore")
1766   (c-name "empathy_log_store_get_chats")
1767   (return-type "GList*")
1768   (parameters
1769     '("McAccount*" "account")
1770   )
1771 )
1772
1773 (define-method search_new
1774   (of-object "EmpathyLogStore")
1775   (c-name "empathy_log_store_search_new")
1776   (return-type "GList*")
1777   (parameters
1778     '("const-gchar*" "text")
1779   )
1780 )
1781
1782 (define-method ack_message
1783   (of-object "EmpathyLogStore")
1784   (c-name "empathy_log_store_ack_message")
1785   (return-type "none")
1786   (parameters
1787     '("const-gchar*" "chat_id")
1788     '("gboolean" "chatroom")
1789     '("EmpathyMessage*" "message")
1790   )
1791 )
1792
1793 (define-method get_filtered_messages
1794   (of-object "EmpathyLogStore")
1795   (c-name "empathy_log_store_get_filtered_messages")
1796   (return-type "GList*")
1797   (parameters
1798     '("McAccount*" "account")
1799     '("const-gchar*" "chat_id")
1800     '("gboolean" "chatroom")
1801     '("guint" "num_messages")
1802     '("EmpathyLogMessageFilter" "filter")
1803     '("gpointer" "user_data")
1804   )
1805 )
1806
1807
1808
1809 ;; From empathy-log-store-empathy.h
1810
1811 (define-function log_store_empathy_get_type
1812   (c-name "empathy_log_store_empathy_get_type")
1813   (return-type "GType")
1814 )
1815
1816
1817
1818 ;; From empathy-message.h
1819
1820 (define-function message_get_type
1821   (c-name "empathy_message_get_type")
1822   (return-type "GType")
1823 )
1824
1825 (define-function message_new
1826   (c-name "empathy_message_new")
1827   (is-constructor-of "EmpathyMessage")
1828   (return-type "EmpathyMessage*")
1829   (parameters
1830     '("const-gchar*" "body")
1831   )
1832 )
1833
1834 (define-method get_tptype
1835   (of-object "EmpathyMessage")
1836   (c-name "empathy_message_get_tptype")
1837   (return-type "TpChannelTextMessageType")
1838 )
1839
1840 (define-method set_tptype
1841   (of-object "EmpathyMessage")
1842   (c-name "empathy_message_set_tptype")
1843   (return-type "none")
1844   (parameters
1845     '("TpChannelTextMessageType" "type")
1846   )
1847 )
1848
1849 (define-method get_sender
1850   (of-object "EmpathyMessage")
1851   (c-name "empathy_message_get_sender")
1852   (return-type "EmpathyContact*")
1853 )
1854
1855 (define-method set_sender
1856   (of-object "EmpathyMessage")
1857   (c-name "empathy_message_set_sender")
1858   (return-type "none")
1859   (parameters
1860     '("EmpathyContact*" "contact")
1861   )
1862 )
1863
1864 (define-method get_receiver
1865   (of-object "EmpathyMessage")
1866   (c-name "empathy_message_get_receiver")
1867   (return-type "EmpathyContact*")
1868 )
1869
1870 (define-method set_receiver
1871   (of-object "EmpathyMessage")
1872   (c-name "empathy_message_set_receiver")
1873   (return-type "none")
1874   (parameters
1875     '("EmpathyContact*" "contact")
1876   )
1877 )
1878
1879 (define-method get_body
1880   (of-object "EmpathyMessage")
1881   (c-name "empathy_message_get_body")
1882   (return-type "const-gchar*")
1883 )
1884
1885 (define-method set_body
1886   (of-object "EmpathyMessage")
1887   (c-name "empathy_message_set_body")
1888   (return-type "none")
1889   (parameters
1890     '("const-gchar*" "body")
1891   )
1892 )
1893
1894 (define-method get_timestamp
1895   (of-object "EmpathyMessage")
1896   (c-name "empathy_message_get_timestamp")
1897   (return-type "time_t")
1898 )
1899
1900 (define-method set_timestamp
1901   (of-object "EmpathyMessage")
1902   (c-name "empathy_message_set_timestamp")
1903   (return-type "none")
1904   (parameters
1905     '("time_t" "timestamp")
1906   )
1907 )
1908
1909 (define-method should_highlight
1910   (of-object "EmpathyMessage")
1911   (c-name "empathy_message_should_highlight")
1912   (return-type "gboolean")
1913 )
1914
1915 (define-function message_type_from_str
1916   (c-name "empathy_message_type_from_str")
1917   (return-type "TpChannelTextMessageType")
1918   (parameters
1919     '("const-gchar*" "type_str")
1920   )
1921 )
1922
1923 (define-function message_type_to_str
1924   (c-name "empathy_message_type_to_str")
1925   (return-type "const-gchar*")
1926   (parameters
1927     '("TpChannelTextMessageType" "type")
1928   )
1929 )
1930
1931 (define-method get_id
1932   (of-object "EmpathyMessage")
1933   (c-name "empathy_message_get_id")
1934   (return-type "guint")
1935 )
1936
1937 (define-method set_id
1938   (of-object "EmpathyMessage")
1939   (c-name "empathy_message_set_id")
1940   (return-type "none")
1941   (parameters
1942     '("guint" "id")
1943   )
1944 )
1945
1946 (define-method equal
1947   (of-object "EmpathyMessage")
1948   (c-name "empathy_message_equal")
1949   (return-type "gboolean")
1950   (parameters
1951     '("EmpathyMessage*" "message2")
1952   )
1953 )
1954
1955
1956
1957 ;; From empathy-status-presets.h
1958
1959 (define-function status_presets_get_all
1960   (c-name "empathy_status_presets_get_all")
1961   (return-type "none")
1962 )
1963
1964 (define-function status_presets_get
1965   (c-name "empathy_status_presets_get")
1966   (return-type "GList*")
1967   (parameters
1968     '("TpConnectionPresenceType" "state")
1969     '("gint" "max_number")
1970   )
1971 )
1972
1973 (define-function status_presets_set_last
1974   (c-name "empathy_status_presets_set_last")
1975   (return-type "none")
1976   (parameters
1977     '("TpConnectionPresenceType" "state")
1978     '("const-gchar*" "status")
1979   )
1980 )
1981
1982 (define-function status_presets_remove
1983   (c-name "empathy_status_presets_remove")
1984   (return-type "none")
1985   (parameters
1986     '("TpConnectionPresenceType" "state")
1987     '("const-gchar*" "status")
1988   )
1989 )
1990
1991 (define-function status_presets_reset
1992   (c-name "empathy_status_presets_reset")
1993   (return-type "none")
1994 )
1995
1996 (define-function status_presets_get_default_state
1997   (c-name "empathy_status_presets_get_default_state")
1998   (return-type "TpConnectionPresenceType")
1999 )
2000
2001 (define-function status_presets_get_default_status
2002   (c-name "empathy_status_presets_get_default_status")
2003   (return-type "const-gchar*")
2004 )
2005
2006 (define-function status_presets_set_default
2007   (c-name "empathy_status_presets_set_default")
2008   (return-type "none")
2009   (parameters
2010     '("TpConnectionPresenceType" "state")
2011     '("const-gchar*" "status")
2012   )
2013 )
2014
2015 (define-function status_presets_clear_default
2016   (c-name "empathy_status_presets_clear_default")
2017   (return-type "none")
2018 )
2019
2020
2021
2022 ;; From empathy-time.h
2023
2024 (define-function time_get_current
2025   (c-name "empathy_time_get_current")
2026   (return-type "time_t")
2027 )
2028
2029 (define-function time_get_local_time
2030   (c-name "empathy_time_get_local_time")
2031   (return-type "time_t")
2032   (parameters
2033     '("struct-tm*" "tm")
2034   )
2035 )
2036
2037 (define-function time_parse
2038   (c-name "empathy_time_parse")
2039   (return-type "time_t")
2040   (parameters
2041     '("const-gchar*" "str")
2042   )
2043 )
2044
2045 (define-function time_to_string_utc
2046   (c-name "empathy_time_to_string_utc")
2047   (return-type "gchar*")
2048   (parameters
2049     '("time_t" "t")
2050     '("const-gchar*" "format")
2051   )
2052 )
2053
2054 (define-function time_to_string_local
2055   (c-name "empathy_time_to_string_local")
2056   (return-type "gchar*")
2057   (parameters
2058     '("time_t" "t")
2059     '("const-gchar*" "format")
2060   )
2061 )
2062
2063 (define-function time_to_string_relative
2064   (c-name "empathy_time_to_string_relative")
2065   (return-type "gchar*")
2066   (parameters
2067     '("time_t" "t")
2068   )
2069 )
2070
2071
2072
2073 ;; From empathy-tp-call.h
2074
2075 (define-function tp_call_get_type
2076   (c-name "empathy_tp_call_get_type")
2077   (return-type "GType")
2078 )
2079
2080 (define-function tp_call_new
2081   (c-name "empathy_tp_call_new")
2082   (is-constructor-of "EmpathyTpCall")
2083   (return-type "EmpathyTpCall*")
2084   (parameters
2085     '("TpChannel*" "channel")
2086   )
2087 )
2088
2089 (define-method close
2090   (of-object "EmpathyTpCall")
2091   (c-name "empathy_tp_call_close")
2092   (return-type "none")
2093 )
2094
2095 (define-method to
2096   (of-object "EmpathyTpCall")
2097   (c-name "empathy_tp_call_to")
2098   (return-type "none")
2099   (parameters
2100     '("EmpathyContact*" "contact")
2101     '("gboolean" "audio")
2102     '("gboolean" "video")
2103   )
2104 )
2105
2106 (define-method accept_incoming_call
2107   (of-object "EmpathyTpCall")
2108   (c-name "empathy_tp_call_accept_incoming_call")
2109   (return-type "none")
2110 )
2111
2112 (define-method request_video_stream_direction
2113   (of-object "EmpathyTpCall")
2114   (c-name "empathy_tp_call_request_video_stream_direction")
2115   (return-type "none")
2116   (parameters
2117     '("gboolean" "is_sending")
2118   )
2119 )
2120
2121 (define-method start_tone
2122   (of-object "EmpathyTpCall")
2123   (c-name "empathy_tp_call_start_tone")
2124   (return-type "none")
2125   (parameters
2126     '("TpDTMFEvent" "event")
2127   )
2128 )
2129
2130 (define-method stop_tone
2131   (of-object "EmpathyTpCall")
2132   (c-name "empathy_tp_call_stop_tone")
2133   (return-type "none")
2134 )
2135
2136 (define-method has_dtmf
2137   (of-object "EmpathyTpCall")
2138   (c-name "empathy_tp_call_has_dtmf")
2139   (return-type "gboolean")
2140 )
2141
2142
2143
2144 ;; From empathy-tp-chat.h
2145
2146 (define-function tp_chat_get_type
2147   (c-name "empathy_tp_chat_get_type")
2148   (return-type "GType")
2149 )
2150
2151 (define-function tp_chat_new
2152   (c-name "empathy_tp_chat_new")
2153   (is-constructor-of "EmpathyTpChat")
2154   (return-type "EmpathyTpChat*")
2155   (parameters
2156     '("TpChannel*" "channel")
2157   )
2158 )
2159
2160 (define-method close
2161   (of-object "EmpathyTpChat")
2162   (c-name "empathy_tp_chat_close")
2163   (return-type "none")
2164 )
2165
2166 (define-method get_id
2167   (of-object "EmpathyTpChat")
2168   (c-name "empathy_tp_chat_get_id")
2169   (return-type "const-gchar*")
2170 )
2171
2172 (define-method get_remote_contact
2173   (of-object "EmpathyTpChat")
2174   (c-name "empathy_tp_chat_get_remote_contact")
2175   (return-type "EmpathyContact*")
2176 )
2177
2178 (define-method get_channel
2179   (of-object "EmpathyTpChat")
2180   (c-name "empathy_tp_chat_get_channel")
2181   (return-type "TpChannel*")
2182 )
2183
2184 (define-method get_connection
2185   (of-object "EmpathyTpChat")
2186   (c-name "empathy_tp_chat_get_connection")
2187   (return-type "TpConnection*")
2188 )
2189
2190 (define-method is_ready
2191   (of-object "EmpathyTpChat")
2192   (c-name "empathy_tp_chat_is_ready")
2193   (return-type "gboolean")
2194 )
2195
2196 (define-method send
2197   (of-object "EmpathyTpChat")
2198   (c-name "empathy_tp_chat_send")
2199   (return-type "none")
2200   (parameters
2201     '("EmpathyMessage*" "message")
2202   )
2203 )
2204
2205 (define-method set_state
2206   (of-object "EmpathyTpChat")
2207   (c-name "empathy_tp_chat_set_state")
2208   (return-type "none")
2209   (parameters
2210     '("TpChannelChatState" "state")
2211   )
2212 )
2213
2214 (define-method set_property
2215   (of-object "EmpathyTpChat")
2216   (c-name "empathy_tp_chat_set_property")
2217   (return-type "none")
2218   (parameters
2219     '("const-gchar*" "name")
2220     '("const-GValue*" "value")
2221   )
2222 )
2223
2224 (define-method get_pending_messages
2225   (of-object "EmpathyTpChat")
2226   (c-name "empathy_tp_chat_get_pending_messages")
2227   (return-type "const-GList*")
2228 )
2229
2230 (define-method acknowledge_message
2231   (of-object "EmpathyTpChat")
2232   (c-name "empathy_tp_chat_acknowledge_message")
2233   (return-type "none")
2234   (parameters
2235     '("EmpathyMessage*" "message")
2236   )
2237 )
2238
2239 (define-method acknowledge_messages
2240   (of-object "EmpathyTpChat")
2241   (c-name "empathy_tp_chat_acknowledge_messages")
2242   (return-type "none")
2243   (parameters
2244     '("const-GList*" "messages")
2245   )
2246 )
2247
2248
2249
2250 ;; From empathy-tp-contact-factory.h
2251
2252 (define-function tp_contact_factory_get_type
2253   (c-name "empathy_tp_contact_factory_get_type")
2254   (return-type "GType")
2255 )
2256
2257 (define-function tp_contact_factory_dup_singleton
2258   (c-name "empathy_tp_contact_factory_dup_singleton")
2259   (return-type "EmpathyTpContactFactory*")
2260   (parameters
2261     '("TpConnection*" "connection")
2262   )
2263 )
2264
2265 (define-method get_from_ids
2266   (of-object "EmpathyTpContactFactory")
2267   (c-name "empathy_tp_contact_factory_get_from_ids")
2268   (return-type "none")
2269   (parameters
2270     '("guint" "n_ids")
2271     '("const-gchar*-const*" "ids")
2272     '("EmpathyTpContactFactoryContactsByIdCb" "callback")
2273     '("gpointer" "user_data")
2274     '("GDestroyNotify" "destroy")
2275     '("GObject*" "weak_object")
2276   )
2277 )
2278
2279 (define-method get_from_handles
2280   (of-object "EmpathyTpContactFactory")
2281   (c-name "empathy_tp_contact_factory_get_from_handles")
2282   (return-type "none")
2283   (parameters
2284     '("guint" "n_handles")
2285     '("const-TpHandle*" "handles")
2286     '("EmpathyTpContactFactoryContactsByHandleCb" "callback")
2287     '("gpointer" "user_data")
2288     '("GDestroyNotify" "destroy")
2289     '("GObject*" "weak_object")
2290   )
2291 )
2292
2293 (define-method get_from_id
2294   (of-object "EmpathyTpContactFactory")
2295   (c-name "empathy_tp_contact_factory_get_from_id")
2296   (return-type "none")
2297   (parameters
2298     '("const-gchar*" "id")
2299     '("EmpathyTpContactFactoryContactCb" "callback")
2300     '("gpointer" "user_data")
2301     '("GDestroyNotify" "destroy")
2302     '("GObject*" "weak_object")
2303   )
2304 )
2305
2306 (define-method get_from_handle
2307   (of-object "EmpathyTpContactFactory")
2308   (c-name "empathy_tp_contact_factory_get_from_handle")
2309   (return-type "none")
2310   (parameters
2311     '("TpHandle" "handle")
2312     '("EmpathyTpContactFactoryContactCb" "callback")
2313     '("gpointer" "user_data")
2314     '("GDestroyNotify" "destroy")
2315     '("GObject*" "weak_object")
2316   )
2317 )
2318
2319 (define-method set_alias
2320   (of-object "EmpathyTpContactFactory")
2321   (c-name "empathy_tp_contact_factory_set_alias")
2322   (return-type "none")
2323   (parameters
2324     '("EmpathyContact*" "contact")
2325     '("const-gchar*" "alias")
2326   )
2327 )
2328
2329 (define-method set_avatar
2330   (of-object "EmpathyTpContactFactory")
2331   (c-name "empathy_tp_contact_factory_set_avatar")
2332   (return-type "none")
2333   (parameters
2334     '("const-gchar*" "data")
2335     '("gsize" "size")
2336     '("const-gchar*" "mime_type")
2337   )
2338 )
2339
2340 (define-method set_location
2341   (of-object "EmpathyTpContactFactory")
2342   (c-name "empathy_tp_contact_factory_set_location")
2343   (return-type "none")
2344   (parameters
2345     '("GHashTable*" "location")
2346   )
2347 )
2348
2349
2350
2351 ;; From empathy-tp-contact-list.h
2352
2353 (define-function tp_contact_list_get_type
2354   (c-name "empathy_tp_contact_list_get_type")
2355   (return-type "GType")
2356 )
2357
2358 (define-function tp_contact_list_new
2359   (c-name "empathy_tp_contact_list_new")
2360   (is-constructor-of "EmpathyTpContactList")
2361   (return-type "EmpathyTpContactList*")
2362   (parameters
2363     '("TpConnection*" "connection")
2364   )
2365 )
2366
2367 (define-method get_connection
2368   (of-object "EmpathyTpContactList")
2369   (c-name "empathy_tp_contact_list_get_connection")
2370   (return-type "TpConnection*")
2371 )
2372
2373 (define-method can_add
2374   (of-object "EmpathyTpContactList")
2375   (c-name "empathy_tp_contact_list_can_add")
2376   (return-type "gboolean")
2377 )
2378
2379 (define-method remove_all
2380   (of-object "EmpathyTpContactList")
2381   (c-name "empathy_tp_contact_list_remove_all")
2382   (return-type "none")
2383 )
2384
2385
2386
2387 ;; From empathy-tp-file.h
2388
2389 (define-function tp_file_get_type
2390   (c-name "empathy_tp_file_get_type")
2391   (return-type "GType")
2392 )
2393
2394 (define-function tp_file_new
2395   (c-name "empathy_tp_file_new")
2396   (is-constructor-of "EmpathyTpFile")
2397   (return-type "EmpathyTpFile*")
2398   (parameters
2399     '("TpChannel*" "channel")
2400   )
2401 )
2402
2403 (define-method get_channel
2404   (of-object "EmpathyTpFile")
2405   (c-name "empathy_tp_file_get_channel")
2406   (return-type "TpChannel*")
2407 )
2408
2409 (define-method accept
2410   (of-object "EmpathyTpFile")
2411   (c-name "empathy_tp_file_accept")
2412   (return-type "none")
2413   (parameters
2414     '("guint64" "offset")
2415     '("GFile*" "gfile")
2416     '("GError**" "error")
2417   )
2418 )
2419
2420 (define-method cancel
2421   (of-object "EmpathyTpFile")
2422   (c-name "empathy_tp_file_cancel")
2423   (return-type "none")
2424 )
2425
2426 (define-method offer
2427   (of-object "EmpathyTpFile")
2428   (c-name "empathy_tp_file_offer")
2429   (return-type "none")
2430   (parameters
2431     '("GFile*" "gfile")
2432     '("GError**" "error")
2433   )
2434 )
2435
2436 (define-method get_contact
2437   (of-object "EmpathyTpFile")
2438   (c-name "empathy_tp_file_get_contact")
2439   (return-type "EmpathyContact*")
2440 )
2441
2442 (define-method get_filename
2443   (of-object "EmpathyTpFile")
2444   (c-name "empathy_tp_file_get_filename")
2445   (return-type "const-gchar*")
2446 )
2447
2448 (define-method is_incoming
2449   (of-object "EmpathyTpFile")
2450   (c-name "empathy_tp_file_is_incoming")
2451   (return-type "gboolean")
2452 )
2453
2454 (define-method get_state
2455   (of-object "EmpathyTpFile")
2456   (c-name "empathy_tp_file_get_state")
2457   (return-type "TpFileTransferState")
2458   (parameters
2459     '("TpFileTransferStateChangeReason*" "reason")
2460   )
2461 )
2462
2463 (define-method get_size
2464   (of-object "EmpathyTpFile")
2465   (c-name "empathy_tp_file_get_size")
2466   (return-type "guint64")
2467 )
2468
2469 (define-method get_transferred_bytes
2470   (of-object "EmpathyTpFile")
2471   (c-name "empathy_tp_file_get_transferred_bytes")
2472   (return-type "guint64")
2473 )
2474
2475 (define-method get_remaining_time
2476   (of-object "EmpathyTpFile")
2477   (c-name "empathy_tp_file_get_remaining_time")
2478   (return-type "gint")
2479 )
2480
2481 (define-method get_speed
2482   (of-object "EmpathyTpFile")
2483   (c-name "empathy_tp_file_get_speed")
2484   (return-type "gdouble")
2485 )
2486
2487 (define-method get_content_type
2488   (of-object "EmpathyTpFile")
2489   (c-name "empathy_tp_file_get_content_type")
2490   (return-type "const-gchar*")
2491 )
2492
2493 (define-method is_ready
2494   (of-object "EmpathyTpFile")
2495   (c-name "empathy_tp_file_is_ready")
2496   (return-type "gboolean")
2497 )
2498
2499
2500
2501 ;; From empathy-tp-roomlist.h
2502
2503 (define-function tp_roomlist_get_type
2504   (c-name "empathy_tp_roomlist_get_type")
2505   (return-type "GType")
2506 )
2507
2508 (define-function tp_roomlist_new
2509   (c-name "empathy_tp_roomlist_new")
2510   (is-constructor-of "EmpathyTpRoomlist")
2511   (return-type "EmpathyTpRoomlist*")
2512   (parameters
2513     '("McAccount*" "account")
2514   )
2515 )
2516
2517 (define-method is_listing
2518   (of-object "EmpathyTpRoomlist")
2519   (c-name "empathy_tp_roomlist_is_listing")
2520   (return-type "gboolean")
2521 )
2522
2523 (define-method start
2524   (of-object "EmpathyTpRoomlist")
2525   (c-name "empathy_tp_roomlist_start")
2526   (return-type "none")
2527 )
2528
2529 (define-method stop
2530   (of-object "EmpathyTpRoomlist")
2531   (c-name "empathy_tp_roomlist_stop")
2532   (return-type "none")
2533 )
2534
2535
2536
2537 ;; From empathy-tp-tube.h
2538
2539 (define-function tp_tube_get_type
2540   (c-name "empathy_tp_tube_get_type")
2541   (return-type "GType")
2542 )
2543
2544 (define-function tp_tube_new
2545   (c-name "empathy_tp_tube_new")
2546   (is-constructor-of "EmpathyTpTube")
2547   (return-type "EmpathyTpTube*")
2548   (parameters
2549     '("TpChannel*" "channel")
2550   )
2551 )
2552
2553 (define-function tp_tube_new_stream_tube
2554   (c-name "empathy_tp_tube_new_stream_tube")
2555   (return-type "EmpathyTpTube*")
2556   (parameters
2557     '("EmpathyContact*" "contact")
2558     '("TpSocketAddressType" "type")
2559     '("const-gchar*" "hostname")
2560     '("guint" "port")
2561     '("const-gchar*" "service")
2562     '("GHashTable*" "parameters")
2563   )
2564 )
2565
2566 (define-method accept_stream_tube
2567   (of-object "EmpathyTpTube")
2568   (c-name "empathy_tp_tube_accept_stream_tube")
2569   (return-type "none")
2570   (parameters
2571     '("TpSocketAddressType" "type")
2572     '("EmpathyTpTubeAcceptStreamTubeCb*" "callback")
2573     '("gpointer" "user_data")
2574   )
2575 )
2576
2577 (define-method call_when_ready
2578   (of-object "EmpathyTpTube")
2579   (c-name "empathy_tp_tube_call_when_ready")
2580   (return-type "none")
2581   (parameters
2582     '("EmpathyTpTubeReadyCb*" "callback")
2583     '("gpointer" "user_data")
2584     '("GDestroyNotify" "destroy")
2585     '("GObject*" "weak_object")
2586   )
2587 )
2588
2589
2590
2591 ;; From empathy-tube-handler.h
2592
2593 (define-function tube_handler_get_type
2594   (c-name "empathy_tube_handler_get_type")
2595   (return-type "GType")
2596 )
2597
2598 (define-function tube_handler_new
2599   (c-name "empathy_tube_handler_new")
2600   (is-constructor-of "EmpathyTubeHandler")
2601   (return-type "EmpathyTubeHandler*")
2602   (parameters
2603     '("TpTubeType" "type")
2604     '("const-gchar*" "service")
2605   )
2606 )
2607
2608 (define-function tube_handler_build_bus_name
2609   (c-name "empathy_tube_handler_build_bus_name")
2610   (return-type "gchar*")
2611   (parameters
2612     '("TpTubeType" "type")
2613     '("const-gchar*" "service")
2614   )
2615 )
2616
2617 (define-function tube_handler_build_object_path
2618   (c-name "empathy_tube_handler_build_object_path")
2619   (return-type "gchar*")
2620   (parameters
2621     '("TpTubeType" "type")
2622     '("const-gchar*" "service")
2623   )
2624 )
2625
2626
2627
2628 ;; From empathy-types.h
2629
2630
2631
2632 ;; From empathy-utils.h
2633
2634 (define-function init
2635   (c-name "empathy_init")
2636   (return-type "none")
2637 )
2638
2639 (define-function substring
2640   (c-name "empathy_substring")
2641   (return-type "gchar*")
2642   (parameters
2643     '("const-gchar*" "str")
2644     '("gint" "start")
2645     '("gint" "end")
2646   )
2647 )
2648
2649 (define-function strcasecmp
2650   (c-name "empathy_strcasecmp")
2651   (return-type "gint")
2652   (parameters
2653     '("const-gchar*" "s1")
2654     '("const-gchar*" "s2")
2655   )
2656 )
2657
2658 (define-function strncasecmp
2659   (c-name "empathy_strncasecmp")
2660   (return-type "gint")
2661   (parameters
2662     '("const-gchar*" "s1")
2663     '("const-gchar*" "s2")
2664     '("gsize" "n")
2665   )
2666 )
2667
2668 (define-function xml_validate
2669   (c-name "empathy_xml_validate")
2670   (return-type "gboolean")
2671   (parameters
2672     '("xmlDoc*" "doc")
2673     '("const-gchar*" "dtd_filename")
2674   )
2675 )
2676
2677 (define-function xml_node_get_child
2678   (c-name "empathy_xml_node_get_child")
2679   (return-type "xmlNodePtr")
2680   (parameters
2681     '("xmlNodePtr" "node")
2682     '("const-gchar*" "child_name")
2683   )
2684 )
2685
2686 (define-function xml_node_get_child_content
2687   (c-name "empathy_xml_node_get_child_content")
2688   (return-type "xmlChar*")
2689   (parameters
2690     '("xmlNodePtr" "node")
2691     '("const-gchar*" "child_name")
2692   )
2693 )
2694
2695 (define-function xml_node_find_child_prop_value
2696   (c-name "empathy_xml_node_find_child_prop_value")
2697   (return-type "xmlNodePtr")
2698   (parameters
2699     '("xmlNodePtr" "node")
2700     '("const-gchar*" "prop_name")
2701     '("const-gchar*" "prop_value")
2702   )
2703 )
2704
2705 (define-function account_hash
2706   (c-name "empathy_account_hash")
2707   (return-type "guint")
2708   (parameters
2709     '("gconstpointer" "key")
2710   )
2711 )
2712
2713 (define-function account_equal
2714   (c-name "empathy_account_equal")
2715   (return-type "gboolean")
2716   (parameters
2717     '("gconstpointer" "a")
2718     '("gconstpointer" "b")
2719   )
2720 )
2721
2722 (define-function mission_control_dup_singleton
2723   (c-name "empathy_mission_control_dup_singleton")
2724   (return-type "MissionControl*")
2725 )
2726
2727 (define-function presence_get_default_message
2728   (c-name "empathy_presence_get_default_message")
2729   (return-type "const-gchar*")
2730   (parameters
2731     '("TpConnectionPresenceType" "presence")
2732   )
2733 )
2734
2735 (define-function presence_to_str
2736   (c-name "empathy_presence_to_str")
2737   (return-type "const-gchar*")
2738   (parameters
2739     '("TpConnectionPresenceType" "presence")
2740   )
2741 )
2742
2743 (define-function presence_from_str
2744   (c-name "empathy_presence_from_str")
2745   (return-type "TpConnectionPresenceType")
2746   (parameters
2747     '("const-gchar*" "str")
2748   )
2749 )
2750
2751 (define-function file_lookup
2752   (c-name "empathy_file_lookup")
2753   (return-type "gchar*")
2754   (parameters
2755     '("const-gchar*" "filename")
2756     '("const-gchar*" "subdir")
2757   )
2758 )
2759
2760 (define-function proxy_equal
2761   (c-name "empathy_proxy_equal")
2762   (return-type "gboolean")
2763   (parameters
2764     '("gconstpointer" "a")
2765     '("gconstpointer" "b")
2766   )
2767 )
2768
2769 (define-function proxy_hash
2770   (c-name "empathy_proxy_hash")
2771   (return-type "guint")
2772   (parameters
2773     '("gconstpointer" "key")
2774   )
2775 )
2776
2777 (define-function check_available_state
2778   (c-name "empathy_check_available_state")
2779   (return-type "gboolean")
2780 )
2781
2782