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