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