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