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