]> git.0d.be Git - empathy.git/blob - python/pyempathy/pyempathy.defs
Update python bindings
[empathy.git] / python / pyempathy / pyempathy.defs
1 ;; -*- scheme -*-
2 ; object definitions ...
3 (define-object 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 should_highlight
1449   (of-object "EmpathyMessage")
1450   (c-name "empathy_message_should_highlight")
1451   (return-type "gboolean")
1452 )
1453
1454 (define-function message_type_from_str
1455   (c-name "empathy_message_type_from_str")
1456   (return-type "TpChannelTextMessageType")
1457   (parameters
1458     '("const-gchar*" "type_str")
1459   )
1460 )
1461
1462 (define-function message_type_to_str
1463   (c-name "empathy_message_type_to_str")
1464   (return-type "const-gchar*")
1465   (parameters
1466     '("TpChannelTextMessageType" "type")
1467   )
1468 )
1469
1470
1471
1472 ;; From empathy-status-presets.h
1473
1474 (define-function status_presets_get_all
1475   (c-name "empathy_status_presets_get_all")
1476   (return-type "none")
1477 )
1478
1479 (define-function status_presets_get
1480   (c-name "empathy_status_presets_get")
1481   (return-type "GList*")
1482   (parameters
1483     '("McPresence" "state")
1484     '("gint" "max_number")
1485   )
1486 )
1487
1488 (define-function status_presets_set_last
1489   (c-name "empathy_status_presets_set_last")
1490   (return-type "none")
1491   (parameters
1492     '("McPresence" "state")
1493     '("const-gchar*" "status")
1494   )
1495 )
1496
1497 (define-function status_presets_remove
1498   (c-name "empathy_status_presets_remove")
1499   (return-type "none")
1500   (parameters
1501     '("McPresence" "state")
1502     '("const-gchar*" "status")
1503   )
1504 )
1505
1506 (define-function status_presets_reset
1507   (c-name "empathy_status_presets_reset")
1508   (return-type "none")
1509 )
1510
1511 (define-function status_presets_get_default_state
1512   (c-name "empathy_status_presets_get_default_state")
1513   (return-type "McPresence")
1514 )
1515
1516 (define-function status_presets_get_default_status
1517   (c-name "empathy_status_presets_get_default_status")
1518   (return-type "const-gchar*")
1519 )
1520
1521 (define-function status_presets_set_default
1522   (c-name "empathy_status_presets_set_default")
1523   (return-type "none")
1524   (parameters
1525     '("McPresence" "state")
1526     '("const-gchar*" "status")
1527   )
1528 )
1529
1530 (define-function status_presets_clear_default
1531   (c-name "empathy_status_presets_clear_default")
1532   (return-type "none")
1533 )
1534
1535
1536
1537 ;; From empathy-time.h
1538
1539 (define-function time_get_current
1540   (c-name "empathy_time_get_current")
1541   (return-type "time_t")
1542 )
1543
1544 (define-function time_get_local_time
1545   (c-name "empathy_time_get_local_time")
1546   (return-type "time_t")
1547   (parameters
1548     '("struct-tm*" "tm")
1549   )
1550 )
1551
1552 (define-function time_parse
1553   (c-name "empathy_time_parse")
1554   (return-type "time_t")
1555   (parameters
1556     '("const-gchar*" "str")
1557   )
1558 )
1559
1560 (define-function time_to_string_utc
1561   (c-name "empathy_time_to_string_utc")
1562   (return-type "gchar*")
1563   (parameters
1564     '("time_t" "t")
1565     '("const-gchar*" "format")
1566   )
1567 )
1568
1569 (define-function time_to_string_local
1570   (c-name "empathy_time_to_string_local")
1571   (return-type "gchar*")
1572   (parameters
1573     '("time_t" "t")
1574     '("const-gchar*" "format")
1575   )
1576 )
1577
1578
1579
1580 ;; From empathy-tp-call.h
1581
1582 (define-function tp_call_get_type
1583   (c-name "empathy_tp_call_get_type")
1584   (return-type "GType")
1585 )
1586
1587 (define-function tp_call_new
1588   (c-name "empathy_tp_call_new")
1589   (is-constructor-of "EmpathyTpCall")
1590   (return-type "EmpathyTpCall*")
1591   (parameters
1592     '("TpChannel*" "channel")
1593   )
1594 )
1595
1596 (define-method accept_incoming_call
1597   (of-object "EmpathyTpCall")
1598   (c-name "empathy_tp_call_accept_incoming_call")
1599   (return-type "none")
1600 )
1601
1602 (define-method request_video_stream_direction
1603   (of-object "EmpathyTpCall")
1604   (c-name "empathy_tp_call_request_video_stream_direction")
1605   (return-type "none")
1606   (parameters
1607     '("gboolean" "is_sending")
1608   )
1609 )
1610
1611 (define-method add_preview_video
1612   (of-object "EmpathyTpCall")
1613   (c-name "empathy_tp_call_add_preview_video")
1614   (return-type "none")
1615   (parameters
1616     '("guint" "preview_video_socket_id")
1617   )
1618 )
1619
1620 (define-method remove_preview_video
1621   (of-object "EmpathyTpCall")
1622   (c-name "empathy_tp_call_remove_preview_video")
1623   (return-type "none")
1624   (parameters
1625     '("guint" "preview_video_socket_id")
1626   )
1627 )
1628
1629 (define-method add_output_video
1630   (of-object "EmpathyTpCall")
1631   (c-name "empathy_tp_call_add_output_video")
1632   (return-type "none")
1633   (parameters
1634     '("guint" "output_video_socket_id")
1635   )
1636 )
1637
1638 (define-method set_output_volume
1639   (of-object "EmpathyTpCall")
1640   (c-name "empathy_tp_call_set_output_volume")
1641   (return-type "none")
1642   (parameters
1643     '("guint" "volume")
1644   )
1645 )
1646
1647 (define-method mute_output
1648   (of-object "EmpathyTpCall")
1649   (c-name "empathy_tp_call_mute_output")
1650   (return-type "none")
1651   (parameters
1652     '("gboolean" "is_muted")
1653   )
1654 )
1655
1656 (define-method mute_input
1657   (of-object "EmpathyTpCall")
1658   (c-name "empathy_tp_call_mute_input")
1659   (return-type "none")
1660   (parameters
1661     '("gboolean" "is_muted")
1662   )
1663 )
1664
1665 (define-method start_tone
1666   (of-object "EmpathyTpCall")
1667   (c-name "empathy_tp_call_start_tone")
1668   (return-type "none")
1669   (parameters
1670     '("TpDTMFEvent" "event")
1671   )
1672 )
1673
1674 (define-method stop_tone
1675   (of-object "EmpathyTpCall")
1676   (c-name "empathy_tp_call_stop_tone")
1677   (return-type "none")
1678 )
1679
1680 (define-method has_dtmf
1681   (of-object "EmpathyTpCall")
1682   (c-name "empathy_tp_call_has_dtmf")
1683   (return-type "gboolean")
1684 )
1685
1686
1687
1688 ;; From empathy-tp-chat.h
1689
1690 (define-function tp_chat_get_type
1691   (c-name "empathy_tp_chat_get_type")
1692   (return-type "GType")
1693 )
1694
1695 (define-function tp_chat_new
1696   (c-name "empathy_tp_chat_new")
1697   (is-constructor-of "EmpathyTpChat")
1698   (return-type "EmpathyTpChat*")
1699   (parameters
1700     '("TpChannel*" "channel")
1701   )
1702 )
1703
1704 (define-method get_id
1705   (of-object "EmpathyTpChat")
1706   (c-name "empathy_tp_chat_get_id")
1707   (return-type "const-gchar*")
1708 )
1709
1710 (define-method get_remote_contact
1711   (of-object "EmpathyTpChat")
1712   (c-name "empathy_tp_chat_get_remote_contact")
1713   (return-type "EmpathyContact*")
1714 )
1715
1716 (define-method get_account
1717   (of-object "EmpathyTpChat")
1718   (c-name "empathy_tp_chat_get_account")
1719   (return-type "McAccount*")
1720 )
1721
1722 (define-method get_channel
1723   (of-object "EmpathyTpChat")
1724   (c-name "empathy_tp_chat_get_channel")
1725   (return-type "TpChannel*")
1726 )
1727
1728 (define-method is_ready
1729   (of-object "EmpathyTpChat")
1730   (c-name "empathy_tp_chat_is_ready")
1731   (return-type "gboolean")
1732 )
1733
1734 (define-method get_members_count
1735   (of-object "EmpathyTpChat")
1736   (c-name "empathy_tp_chat_get_members_count")
1737   (return-type "guint")
1738 )
1739
1740 (define-method set_acknowledge
1741   (of-object "EmpathyTpChat")
1742   (c-name "empathy_tp_chat_set_acknowledge")
1743   (return-type "none")
1744   (parameters
1745     '("gboolean" "acknowledge")
1746   )
1747 )
1748
1749 (define-method emit_pendings
1750   (of-object "EmpathyTpChat")
1751   (c-name "empathy_tp_chat_emit_pendings")
1752   (return-type "none")
1753 )
1754
1755 (define-method send
1756   (of-object "EmpathyTpChat")
1757   (c-name "empathy_tp_chat_send")
1758   (return-type "none")
1759   (parameters
1760     '("EmpathyMessage*" "message")
1761   )
1762 )
1763
1764 (define-method set_state
1765   (of-object "EmpathyTpChat")
1766   (c-name "empathy_tp_chat_set_state")
1767   (return-type "none")
1768   (parameters
1769     '("TpChannelChatState" "state")
1770   )
1771 )
1772
1773 (define-method set_property
1774   (of-object "EmpathyTpChat")
1775   (c-name "empathy_tp_chat_set_property")
1776   (return-type "none")
1777   (parameters
1778     '("const-gchar*" "name")
1779     '("const-GValue*" "value")
1780   )
1781 )
1782
1783
1784
1785 ;; From empathy-tp-contact-factory.h
1786
1787 (define-function tp_contact_factory_get_type
1788   (c-name "empathy_tp_contact_factory_get_type")
1789   (return-type "GType")
1790 )
1791
1792 (define-function tp_contact_factory_new
1793   (c-name "empathy_tp_contact_factory_new")
1794   (is-constructor-of "EmpathyTpContactFactory")
1795   (return-type "EmpathyTpContactFactory*")
1796   (parameters
1797     '("McAccount*" "account")
1798   )
1799 )
1800
1801 (define-method get_user
1802   (of-object "EmpathyTpContactFactory")
1803   (c-name "empathy_tp_contact_factory_get_user")
1804   (return-type "EmpathyContact*")
1805 )
1806
1807 (define-method get_from_id
1808   (of-object "EmpathyTpContactFactory")
1809   (c-name "empathy_tp_contact_factory_get_from_id")
1810   (return-type "EmpathyContact*")
1811   (parameters
1812     '("const-gchar*" "id")
1813   )
1814 )
1815
1816 (define-method get_from_handle
1817   (of-object "EmpathyTpContactFactory")
1818   (c-name "empathy_tp_contact_factory_get_from_handle")
1819   (return-type "EmpathyContact*")
1820   (parameters
1821     '("guint" "handle")
1822   )
1823 )
1824
1825 (define-method get_from_handles
1826   (of-object "EmpathyTpContactFactory")
1827   (c-name "empathy_tp_contact_factory_get_from_handles")
1828   (return-type "GList*")
1829   (parameters
1830     '("const-GArray*" "handles")
1831   )
1832 )
1833
1834 (define-method set_alias
1835   (of-object "EmpathyTpContactFactory")
1836   (c-name "empathy_tp_contact_factory_set_alias")
1837   (return-type "none")
1838   (parameters
1839     '("EmpathyContact*" "contact")
1840     '("const-gchar*" "alias")
1841   )
1842 )
1843
1844 (define-method set_avatar
1845   (of-object "EmpathyTpContactFactory")
1846   (c-name "empathy_tp_contact_factory_set_avatar")
1847   (return-type "none")
1848   (parameters
1849     '("const-gchar*" "data")
1850     '("gsize" "size")
1851     '("const-gchar*" "mime_type")
1852   )
1853 )
1854
1855 (define-method is_ready
1856   (of-object "EmpathyTpContactFactory")
1857   (c-name "empathy_tp_contact_factory_is_ready")
1858   (return-type "gboolean")
1859 )
1860
1861
1862
1863 ;; From empathy-tp-contact-list.h
1864
1865 (define-function tp_contact_list_get_type
1866   (c-name "empathy_tp_contact_list_get_type")
1867   (return-type "GType")
1868 )
1869
1870 (define-function tp_contact_list_new
1871   (c-name "empathy_tp_contact_list_new")
1872   (is-constructor-of "EmpathyTpContactList")
1873   (return-type "EmpathyTpContactList*")
1874   (parameters
1875     '("McAccount*" "account")
1876   )
1877 )
1878
1879 (define-method get_account
1880   (of-object "EmpathyTpContactList")
1881   (c-name "empathy_tp_contact_list_get_account")
1882   (return-type "McAccount*")
1883 )
1884
1885
1886
1887 ;; From empathy-tp-file.h
1888
1889 (define-function tp_file_get_type
1890   (c-name "empathy_tp_file_get_type")
1891   (return-type "GType")
1892 )
1893
1894 (define-function tp_file_new
1895   (c-name "empathy_tp_file_new")
1896   (is-constructor-of "EmpathyTpFile")
1897   (return-type "EmpathyTpFile*")
1898   (parameters
1899     '("TpChannel*" "channel")
1900   )
1901 )
1902
1903 (define-method get_channel
1904   (of-object "EmpathyTpFile")
1905   (c-name "empathy_tp_file_get_channel")
1906   (return-type "TpChannel*")
1907 )
1908
1909 (define-method accept
1910   (of-object "EmpathyTpFile")
1911   (c-name "empathy_tp_file_accept")
1912   (return-type "none")
1913   (parameters
1914     '("guint64" "offset")
1915     '("GFile*" "gfile")
1916     '("GError**" "error")
1917   )
1918 )
1919
1920 (define-method cancel
1921   (of-object "EmpathyTpFile")
1922   (c-name "empathy_tp_file_cancel")
1923   (return-type "none")
1924 )
1925
1926 (define-method offer
1927   (of-object "EmpathyTpFile")
1928   (c-name "empathy_tp_file_offer")
1929   (return-type "none")
1930   (parameters
1931     '("GFile*" "gfile")
1932     '("GError**" "error")
1933   )
1934 )
1935
1936 (define-method get_contact
1937   (of-object "EmpathyTpFile")
1938   (c-name "empathy_tp_file_get_contact")
1939   (return-type "EmpathyContact*")
1940 )
1941
1942 (define-method get_filename
1943   (of-object "EmpathyTpFile")
1944   (c-name "empathy_tp_file_get_filename")
1945   (return-type "const-gchar*")
1946 )
1947
1948 (define-method is_incoming
1949   (of-object "EmpathyTpFile")
1950   (c-name "empathy_tp_file_is_incoming")
1951   (return-type "gboolean")
1952 )
1953
1954 (define-method get_state
1955   (of-object "EmpathyTpFile")
1956   (c-name "empathy_tp_file_get_state")
1957   (return-type "EmpFileTransferState")
1958   (parameters
1959     '("EmpFileTransferStateChangeReason*" "reason")
1960   )
1961 )
1962
1963 (define-method get_size
1964   (of-object "EmpathyTpFile")
1965   (c-name "empathy_tp_file_get_size")
1966   (return-type "guint64")
1967 )
1968
1969 (define-method get_transferred_bytes
1970   (of-object "EmpathyTpFile")
1971   (c-name "empathy_tp_file_get_transferred_bytes")
1972   (return-type "guint64")
1973 )
1974
1975 (define-method get_remaining_time
1976   (of-object "EmpathyTpFile")
1977   (c-name "empathy_tp_file_get_remaining_time")
1978   (return-type "gint")
1979 )
1980
1981 (define-method get_content_type
1982   (of-object "EmpathyTpFile")
1983   (c-name "empathy_tp_file_get_content_type")
1984   (return-type "const-gchar*")
1985 )
1986
1987
1988
1989 ;; From empathy-tp-group.h
1990
1991 (define-function tp_group_get_type
1992   (c-name "empathy_tp_group_get_type")
1993   (return-type "GType")
1994 )
1995
1996 (define-function tp_group_new
1997   (c-name "empathy_tp_group_new")
1998   (is-constructor-of "EmpathyTpGroup")
1999   (return-type "EmpathyTpGroup*")
2000   (parameters
2001     '("TpChannel*" "channel")
2002   )
2003 )
2004
2005 (define-method close
2006   (of-object "EmpathyTpGroup")
2007   (c-name "empathy_tp_group_close")
2008   (return-type "none")
2009 )
2010
2011 (define-method add_members
2012   (of-object "EmpathyTpGroup")
2013   (c-name "empathy_tp_group_add_members")
2014   (return-type "none")
2015   (parameters
2016     '("GList*" "contacts")
2017     '("const-gchar*" "message")
2018   )
2019 )
2020
2021 (define-method add_member
2022   (of-object "EmpathyTpGroup")
2023   (c-name "empathy_tp_group_add_member")
2024   (return-type "none")
2025   (parameters
2026     '("EmpathyContact*" "contact")
2027     '("const-gchar*" "message")
2028   )
2029 )
2030
2031 (define-method remove_members
2032   (of-object "EmpathyTpGroup")
2033   (c-name "empathy_tp_group_remove_members")
2034   (return-type "none")
2035   (parameters
2036     '("GList*" "contacts")
2037     '("const-gchar*" "message")
2038   )
2039 )
2040
2041 (define-method remove_member
2042   (of-object "EmpathyTpGroup")
2043   (c-name "empathy_tp_group_remove_member")
2044   (return-type "none")
2045   (parameters
2046     '("EmpathyContact*" "contact")
2047     '("const-gchar*" "message")
2048   )
2049 )
2050
2051 (define-method get_members
2052   (of-object "EmpathyTpGroup")
2053   (c-name "empathy_tp_group_get_members")
2054   (return-type "GList*")
2055 )
2056
2057 (define-method get_local_pendings
2058   (of-object "EmpathyTpGroup")
2059   (c-name "empathy_tp_group_get_local_pendings")
2060   (return-type "GList*")
2061 )
2062
2063 (define-method get_remote_pendings
2064   (of-object "EmpathyTpGroup")
2065   (c-name "empathy_tp_group_get_remote_pendings")
2066   (return-type "GList*")
2067 )
2068
2069 (define-method get_name
2070   (of-object "EmpathyTpGroup")
2071   (c-name "empathy_tp_group_get_name")
2072   (return-type "const-gchar*")
2073 )
2074
2075 (define-method get_self_contact
2076   (of-object "EmpathyTpGroup")
2077   (c-name "empathy_tp_group_get_self_contact")
2078   (return-type "EmpathyContact*")
2079 )
2080
2081 (define-method is_member
2082   (of-object "EmpathyTpGroup")
2083   (c-name "empathy_tp_group_is_member")
2084   (return-type "gboolean")
2085   (parameters
2086     '("EmpathyContact*" "contact")
2087   )
2088 )
2089
2090 (define-method is_ready
2091   (of-object "EmpathyTpGroup")
2092   (c-name "empathy_tp_group_is_ready")
2093   (return-type "gboolean")
2094 )
2095
2096 (define-method get_invitation
2097   (of-object "EmpathyTpGroup")
2098   (c-name "empathy_tp_group_get_invitation")
2099   (return-type "EmpathyPendingInfo*")
2100   (parameters
2101     '("EmpathyContact**" "remote_contact")
2102   )
2103 )
2104
2105 (define-function pending_info_new
2106   (c-name "empathy_pending_info_new")
2107   (is-constructor-of "EmpathyPendingInfo")
2108   (return-type "EmpathyPendingInfo*")
2109   (parameters
2110     '("EmpathyContact*" "member")
2111     '("EmpathyContact*" "actor")
2112     '("const-gchar*" "message")
2113   )
2114 )
2115
2116 (define-method free
2117   (of-object "EmpathyPendingInfo")
2118   (c-name "empathy_pending_info_free")
2119   (return-type "none")
2120 )
2121
2122
2123
2124 ;; From empathy-tp-roomlist.h
2125
2126 (define-function tp_roomlist_get_type
2127   (c-name "empathy_tp_roomlist_get_type")
2128   (return-type "GType")
2129 )
2130
2131 (define-function tp_roomlist_new
2132   (c-name "empathy_tp_roomlist_new")
2133   (is-constructor-of "EmpathyTpRoomlist")
2134   (return-type "EmpathyTpRoomlist*")
2135   (parameters
2136     '("McAccount*" "account")
2137   )
2138 )
2139
2140 (define-method is_listing
2141   (of-object "EmpathyTpRoomlist")
2142   (c-name "empathy_tp_roomlist_is_listing")
2143   (return-type "gboolean")
2144 )
2145
2146 (define-method start
2147   (of-object "EmpathyTpRoomlist")
2148   (c-name "empathy_tp_roomlist_start")
2149   (return-type "none")
2150 )
2151
2152 (define-method stop
2153   (of-object "EmpathyTpRoomlist")
2154   (c-name "empathy_tp_roomlist_stop")
2155   (return-type "none")
2156 )
2157
2158
2159
2160 ;; From empathy-tp-tube.h
2161
2162 (define-function tp_tube_get_type
2163   (c-name "empathy_tp_tube_get_type")
2164   (return-type "GType")
2165 )
2166
2167 (define-function tp_tube_new
2168   (c-name "empathy_tp_tube_new")
2169   (is-constructor-of "EmpathyTpTube")
2170   (return-type "EmpathyTpTube*")
2171   (parameters
2172     '("TpChannel*" "channel")
2173     '("guint" "tube_id")
2174   )
2175 )
2176
2177 (define-function tp_tube_new_stream_tube
2178   (c-name "empathy_tp_tube_new_stream_tube")
2179   (return-type "EmpathyTpTube*")
2180   (parameters
2181     '("EmpathyContact*" "contact")
2182     '("TpSocketAddressType" "type")
2183     '("const-gchar*" "hostname")
2184     '("guint" "port")
2185     '("const-gchar*" "service")
2186   )
2187 )
2188
2189 (define-method accept_stream_tube
2190   (of-object "EmpathyTpTube")
2191   (c-name "empathy_tp_tube_accept_stream_tube")
2192   (return-type "none")
2193   (parameters
2194     '("TpSocketAddressType" "type")
2195   )
2196 )
2197
2198 (define-method get_socket
2199   (of-object "EmpathyTpTube")
2200   (c-name "empathy_tp_tube_get_socket")
2201   (return-type "none")
2202   (parameters
2203     '("gchar**" "hostname")
2204     '("guint*" "port")
2205   )
2206 )
2207
2208
2209
2210 ;; From empathy-tube-handler.h
2211
2212 (define-function tube_handler_get_type
2213   (c-name "empathy_tube_handler_get_type")
2214   (return-type "GType")
2215 )
2216
2217 (define-function tube_handler_new
2218   (c-name "empathy_tube_handler_new")
2219   (is-constructor-of "EmpathyTubeHandler")
2220   (return-type "EmpathyTubeHandler*")
2221   (parameters
2222     '("TpTubeType" "type")
2223     '("const-gchar*" "service")
2224   )
2225 )
2226
2227 (define-function tube_handler_build_bus_name
2228   (c-name "empathy_tube_handler_build_bus_name")
2229   (return-type "gchar*")
2230   (parameters
2231     '("TpTubeType" "type")
2232     '("const-gchar*" "service")
2233   )
2234 )
2235
2236 (define-function tube_handler_build_object_path
2237   (c-name "empathy_tube_handler_build_object_path")
2238   (return-type "gchar*")
2239   (parameters
2240     '("TpTubeType" "type")
2241     '("const-gchar*" "service")
2242   )
2243 )
2244
2245
2246
2247 ;; From empathy-utils.h
2248
2249 (define-function substring
2250   (c-name "empathy_substring")
2251   (return-type "gchar*")
2252   (parameters
2253     '("const-gchar*" "str")
2254     '("gint" "start")
2255     '("gint" "end")
2256   )
2257 )
2258
2259 (define-function strcasecmp
2260   (c-name "empathy_strcasecmp")
2261   (return-type "gint")
2262   (parameters
2263     '("const-gchar*" "s1")
2264     '("const-gchar*" "s2")
2265   )
2266 )
2267
2268 (define-function strncasecmp
2269   (c-name "empathy_strncasecmp")
2270   (return-type "gint")
2271   (parameters
2272     '("const-gchar*" "s1")
2273     '("const-gchar*" "s2")
2274     '("gsize" "n")
2275   )
2276 )
2277
2278 (define-function xml_validate
2279   (c-name "empathy_xml_validate")
2280   (return-type "gboolean")
2281   (parameters
2282     '("xmlDoc*" "doc")
2283     '("const-gchar*" "dtd_filename")
2284   )
2285 )
2286
2287 (define-function xml_node_get_child
2288   (c-name "empathy_xml_node_get_child")
2289   (return-type "xmlNodePtr")
2290   (parameters
2291     '("xmlNodePtr" "node")
2292     '("const-gchar*" "child_name")
2293   )
2294 )
2295
2296 (define-function xml_node_get_child_content
2297   (c-name "empathy_xml_node_get_child_content")
2298   (return-type "xmlChar*")
2299   (parameters
2300     '("xmlNodePtr" "node")
2301     '("const-gchar*" "child_name")
2302   )
2303 )
2304
2305 (define-function xml_node_find_child_prop_value
2306   (c-name "empathy_xml_node_find_child_prop_value")
2307   (return-type "xmlNodePtr")
2308   (parameters
2309     '("xmlNodePtr" "node")
2310     '("const-gchar*" "prop_name")
2311     '("const-gchar*" "prop_value")
2312   )
2313 )
2314
2315 (define-function account_hash
2316   (c-name "empathy_account_hash")
2317   (return-type "guint")
2318   (parameters
2319     '("gconstpointer" "key")
2320   )
2321 )
2322
2323 (define-function account_equal
2324   (c-name "empathy_account_equal")
2325   (return-type "gboolean")
2326   (parameters
2327     '("gconstpointer" "a")
2328     '("gconstpointer" "b")
2329   )
2330 )
2331
2332 (define-function mission_control_new
2333   (c-name "empathy_mission_control_new")
2334   (is-constructor-of "EmpathyMissionControl")
2335   (return-type "MissionControl*")
2336 )
2337
2338 (define-function presence_get_default_message
2339   (c-name "empathy_presence_get_default_message")
2340   (return-type "const-gchar*")
2341   (parameters
2342     '("McPresence" "presence")
2343   )
2344 )
2345
2346 (define-function presence_to_str
2347   (c-name "empathy_presence_to_str")
2348   (return-type "const-gchar*")
2349   (parameters
2350     '("McPresence" "presence")
2351   )
2352 )
2353
2354 (define-function presence_from_str
2355   (c-name "empathy_presence_from_str")
2356   (return-type "McPresence")
2357   (parameters
2358     '("const-gchar*" "str")
2359   )
2360 )
2361
2362 (define-function file_lookup
2363   (c-name "empathy_file_lookup")
2364   (return-type "gchar*")
2365   (parameters
2366     '("const-gchar*" "filename")
2367     '("const-gchar*" "subdir")
2368   )
2369 )
2370
2371 (define-function run_until_ready
2372   (c-name "empathy_run_until_ready")
2373   (return-type "none")
2374   (parameters
2375     '("gpointer" "object")
2376   )
2377 )
2378
2379 (define-function run_until_ready_full
2380   (c-name "empathy_run_until_ready_full")
2381   (return-type "none")
2382   (parameters
2383     '("gpointer" "object")
2384     '("const-gchar*" "signal")
2385     '("EmpathyRunUntilReadyFunc" "func")
2386     '("gpointer" "user_data")
2387     '("GMainLoop**" "loop")
2388   )
2389 )
2390
2391 (define-function channel_get_account
2392   (c-name "empathy_channel_get_account")
2393   (return-type "McAccount*")
2394   (parameters
2395     '("TpChannel*" "channel")
2396   )
2397 )
2398
2399 (define-function connect_to_account_status_changed
2400   (c-name "empathy_connect_to_account_status_changed")
2401   (return-type "gpointer")
2402   (parameters
2403     '("MissionControl*" "mc")
2404     '("GCallback" "handler")
2405     '("gpointer" "user_data")
2406     '("GClosureNotify" "free_func")
2407   )
2408 )
2409
2410 (define-function disconnect_account_status_changed
2411   (c-name "empathy_disconnect_account_status_changed")
2412   (return-type "none")
2413   (parameters
2414     '("gpointer" "token")
2415   )
2416 )
2417
2418 (define-function proxy_equal
2419   (c-name "empathy_proxy_equal")
2420   (return-type "gboolean")
2421   (parameters
2422     '("gconstpointer" "a")
2423     '("gconstpointer" "b")
2424   )
2425 )
2426
2427 (define-function proxy_hash
2428   (c-name "empathy_proxy_hash")
2429   (return-type "guint")
2430   (parameters
2431     '("gconstpointer" "key")
2432   )
2433 )
2434
2435 (define-function connection_request_channel
2436   (c-name "empathy_connection_request_channel")
2437   (return-type "none")
2438   (parameters
2439     '("TpConnection*" "proxy")
2440     '("gint" "timeout_ms")
2441     '("const-gchar*" "channel_type")
2442     '("guint" "handle_type")
2443     '("const-gchar*" "name")
2444     '("gboolean" "suppress_handler")
2445     '("empathy_connection_callback_for_request_channel" "callback")
2446     '("gpointer" "user_data")
2447     '("GDestroyNotify" "destroy")
2448     '("GObject*" "weak_object")
2449   )
2450 )
2451
2452