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