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