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