]> git.0d.be Git - empathy.git/blob - python/pyempathy/pyempathy.defs
Update python binding
[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 (define-function connection_request_channel
558   (c-name "empathy_connection_request_channel")
559   (return-type "none")
560   (parameters
561     '("TpConnection*" "proxy")
562     '("gint" "timeout_ms")
563     '("const-gchar*" "channel_type")
564     '("guint" "handle_type")
565     '("const-gchar*" "name")
566     '("gboolean" "suppress_handler")
567     '("empathy_connection_callback_for_request_channel" "callback")
568     '("gpointer" "user_data")
569     '("GDestroyNotify" "destroy")
570     '("GObject*" "weak_object")
571   )
572 )
573
574
575
576 ;; From empathy-message.h
577
578 (define-function message_get_type
579   (c-name "empathy_message_get_type")
580   (return-type "GType")
581 )
582
583 (define-function message_new
584   (c-name "empathy_message_new")
585   (is-constructor-of "EmpathyMessage")
586   (return-type "EmpathyMessage*")
587   (parameters
588     '("const-gchar*" "body")
589   )
590 )
591
592 (define-method get_tptype
593   (of-object "EmpathyMessage")
594   (c-name "empathy_message_get_tptype")
595   (return-type "TpChannelTextMessageType")
596 )
597
598 (define-method set_tptype
599   (of-object "EmpathyMessage")
600   (c-name "empathy_message_set_tptype")
601   (return-type "none")
602   (parameters
603     '("TpChannelTextMessageType" "type")
604   )
605 )
606
607 (define-method get_sender
608   (of-object "EmpathyMessage")
609   (c-name "empathy_message_get_sender")
610   (return-type "EmpathyContact*")
611 )
612
613 (define-method set_sender
614   (of-object "EmpathyMessage")
615   (c-name "empathy_message_set_sender")
616   (return-type "none")
617   (parameters
618     '("EmpathyContact*" "contact")
619   )
620 )
621
622 (define-method get_receiver
623   (of-object "EmpathyMessage")
624   (c-name "empathy_message_get_receiver")
625   (return-type "EmpathyContact*")
626 )
627
628 (define-method set_receiver
629   (of-object "EmpathyMessage")
630   (c-name "empathy_message_set_receiver")
631   (return-type "none")
632   (parameters
633     '("EmpathyContact*" "contact")
634   )
635 )
636
637 (define-method get_body
638   (of-object "EmpathyMessage")
639   (c-name "empathy_message_get_body")
640   (return-type "const-gchar*")
641 )
642
643 (define-method set_body
644   (of-object "EmpathyMessage")
645   (c-name "empathy_message_set_body")
646   (return-type "none")
647   (parameters
648     '("const-gchar*" "body")
649   )
650 )
651
652 (define-method get_timestamp
653   (of-object "EmpathyMessage")
654   (c-name "empathy_message_get_timestamp")
655   (return-type "time_t")
656 )
657
658 (define-method set_timestamp
659   (of-object "EmpathyMessage")
660   (c-name "empathy_message_set_timestamp")
661   (return-type "none")
662   (parameters
663     '("time_t" "timestamp")
664   )
665 )
666
667 (define-method get_date_and_time
668   (of-object "EmpathyMessage")
669   (c-name "empathy_message_get_date_and_time")
670   (return-type "GDate*")
671   (parameters
672     '("time_t*" "timestamp")
673   )
674 )
675
676 (define-method should_highlight
677   (of-object "EmpathyMessage")
678   (c-name "empathy_message_should_highlight")
679   (return-type "gboolean")
680 )
681
682 (define-function message_type_from_str
683   (c-name "empathy_message_type_from_str")
684   (return-type "TpChannelTextMessageType")
685   (parameters
686     '("const-gchar*" "type_str")
687   )
688 )
689
690 (define-function message_type_to_str
691   (c-name "empathy_message_type_to_str")
692   (return-type "const-gchar*")
693   (parameters
694     '("TpChannelTextMessageType" "type")
695   )
696 )
697
698
699
700 ;; From empathy-chatroom-manager.h
701
702 (define-function chatroom_manager_get_type
703   (c-name "empathy_chatroom_manager_get_type")
704   (return-type "GType")
705 )
706
707 (define-function chatroom_manager_new
708   (c-name "empathy_chatroom_manager_new")
709   (is-constructor-of "EmpathyChatroomManager")
710   (return-type "EmpathyChatroomManager*")
711 )
712
713 (define-method add
714   (of-object "EmpathyChatroomManager")
715   (c-name "empathy_chatroom_manager_add")
716   (return-type "gboolean")
717   (parameters
718     '("EmpathyChatroom*" "chatroom")
719   )
720 )
721
722 (define-method remove
723   (of-object "EmpathyChatroomManager")
724   (c-name "empathy_chatroom_manager_remove")
725   (return-type "none")
726   (parameters
727     '("EmpathyChatroom*" "chatroom")
728   )
729 )
730
731 (define-method find
732   (of-object "EmpathyChatroomManager")
733   (c-name "empathy_chatroom_manager_find")
734   (return-type "EmpathyChatroom*")
735   (parameters
736     '("McAccount*" "account")
737     '("const-gchar*" "room")
738   )
739 )
740
741 (define-method get_chatrooms
742   (of-object "EmpathyChatroomManager")
743   (c-name "empathy_chatroom_manager_get_chatrooms")
744   (return-type "GList*")
745   (parameters
746     '("McAccount*" "account")
747   )
748 )
749
750 (define-method get_count
751   (of-object "EmpathyChatroomManager")
752   (c-name "empathy_chatroom_manager_get_count")
753   (return-type "guint")
754   (parameters
755     '("McAccount*" "account")
756   )
757 )
758
759 (define-method store
760   (of-object "EmpathyChatroomManager")
761   (c-name "empathy_chatroom_manager_store")
762   (return-type "none")
763 )
764
765
766
767 ;; From empathy-chatroom.h
768
769 (define-function chatroom_get_type
770   (c-name "empathy_chatroom_get_type")
771   (return-type "GType")
772 )
773
774 (define-function chatroom_new
775   (c-name "empathy_chatroom_new")
776   (is-constructor-of "EmpathyChatroom")
777   (return-type "EmpathyChatroom*")
778   (parameters
779     '("McAccount*" "account")
780   )
781 )
782
783 (define-function chatroom_new_full
784   (c-name "empathy_chatroom_new_full")
785   (return-type "EmpathyChatroom*")
786   (parameters
787     '("McAccount*" "account")
788     '("const-gchar*" "room")
789     '("const-gchar*" "name")
790     '("gboolean" "auto_connect")
791   )
792 )
793
794 (define-method get_account
795   (of-object "EmpathyChatroom")
796   (c-name "empathy_chatroom_get_account")
797   (return-type "McAccount*")
798 )
799
800 (define-method set_account
801   (of-object "EmpathyChatroom")
802   (c-name "empathy_chatroom_set_account")
803   (return-type "none")
804   (parameters
805     '("McAccount*" "account")
806   )
807 )
808
809 (define-method get_room
810   (of-object "EmpathyChatroom")
811   (c-name "empathy_chatroom_get_room")
812   (return-type "const-gchar*")
813 )
814
815 (define-method set_room
816   (of-object "EmpathyChatroom")
817   (c-name "empathy_chatroom_set_room")
818   (return-type "none")
819   (parameters
820     '("const-gchar*" "room")
821   )
822 )
823
824 (define-method get_name
825   (of-object "EmpathyChatroom")
826   (c-name "empathy_chatroom_get_name")
827   (return-type "const-gchar*")
828 )
829
830 (define-method set_name
831   (of-object "EmpathyChatroom")
832   (c-name "empathy_chatroom_set_name")
833   (return-type "none")
834   (parameters
835     '("const-gchar*" "name")
836   )
837 )
838
839 (define-method get_auto_connect
840   (of-object "EmpathyChatroom")
841   (c-name "empathy_chatroom_get_auto_connect")
842   (return-type "gboolean")
843 )
844
845 (define-method set_auto_connect
846   (of-object "EmpathyChatroom")
847   (c-name "empathy_chatroom_set_auto_connect")
848   (return-type "none")
849   (parameters
850     '("gboolean" "auto_connect")
851   )
852 )
853
854 (define-function chatroom_equal
855   (c-name "empathy_chatroom_equal")
856   (return-type "gboolean")
857   (parameters
858     '("gconstpointer" "v1")
859     '("gconstpointer" "v2")
860   )
861 )
862
863
864
865 ;; From empathy-contact.h
866
867 (define-function contact_get_type
868   (c-name "empathy_contact_get_type")
869   (return-type "GType")
870 )
871
872 (define-function contact_new
873   (c-name "empathy_contact_new")
874   (is-constructor-of "EmpathyContact")
875   (return-type "EmpathyContact*")
876   (parameters
877     '("McAccount*" "account")
878   )
879 )
880
881 (define-function contact_new_full
882   (c-name "empathy_contact_new_full")
883   (return-type "EmpathyContact*")
884   (parameters
885     '("McAccount*" "account")
886     '("const-gchar*" "id")
887     '("const-gchar*" "name")
888   )
889 )
890
891 (define-method get_id
892   (of-object "EmpathyContact")
893   (c-name "empathy_contact_get_id")
894   (return-type "const-gchar*")
895 )
896
897 (define-method set_id
898   (of-object "EmpathyContact")
899   (c-name "empathy_contact_set_id")
900   (return-type "none")
901   (parameters
902     '("const-gchar*" "id")
903   )
904 )
905
906 (define-method get_name
907   (of-object "EmpathyContact")
908   (c-name "empathy_contact_get_name")
909   (return-type "const-gchar*")
910 )
911
912 (define-method set_name
913   (of-object "EmpathyContact")
914   (c-name "empathy_contact_set_name")
915   (return-type "none")
916   (parameters
917     '("const-gchar*" "name")
918   )
919 )
920
921 (define-method get_avatar
922   (of-object "EmpathyContact")
923   (c-name "empathy_contact_get_avatar")
924   (return-type "EmpathyAvatar*")
925 )
926
927 (define-method set_avatar
928   (of-object "EmpathyContact")
929   (c-name "empathy_contact_set_avatar")
930   (return-type "none")
931   (parameters
932     '("EmpathyAvatar*" "avatar")
933   )
934 )
935
936 (define-method get_account
937   (of-object "EmpathyContact")
938   (c-name "empathy_contact_get_account")
939   (return-type "McAccount*")
940 )
941
942 (define-method set_account
943   (of-object "EmpathyContact")
944   (c-name "empathy_contact_set_account")
945   (return-type "none")
946   (parameters
947     '("McAccount*" "account")
948   )
949 )
950
951 (define-method get_presence
952   (of-object "EmpathyContact")
953   (c-name "empathy_contact_get_presence")
954   (return-type "McPresence")
955 )
956
957 (define-method set_presence
958   (of-object "EmpathyContact")
959   (c-name "empathy_contact_set_presence")
960   (return-type "none")
961   (parameters
962     '("McPresence" "presence")
963   )
964 )
965
966 (define-method get_presence_message
967   (of-object "EmpathyContact")
968   (c-name "empathy_contact_get_presence_message")
969   (return-type "const-gchar*")
970 )
971
972 (define-method set_presence_message
973   (of-object "EmpathyContact")
974   (c-name "empathy_contact_set_presence_message")
975   (return-type "none")
976   (parameters
977     '("const-gchar*" "message")
978   )
979 )
980
981 (define-method get_handle
982   (of-object "EmpathyContact")
983   (c-name "empathy_contact_get_handle")
984   (return-type "guint")
985 )
986
987 (define-method set_handle
988   (of-object "EmpathyContact")
989   (c-name "empathy_contact_set_handle")
990   (return-type "none")
991   (parameters
992     '("guint" "handle")
993   )
994 )
995
996 (define-method get_capabilities
997   (of-object "EmpathyContact")
998   (c-name "empathy_contact_get_capabilities")
999   (return-type "EmpathyCapabilities")
1000 )
1001
1002 (define-method set_capabilities
1003   (of-object "EmpathyContact")
1004   (c-name "empathy_contact_set_capabilities")
1005   (return-type "none")
1006   (parameters
1007     '("EmpathyCapabilities" "capabilities")
1008   )
1009 )
1010
1011 (define-method get_ready
1012   (of-object "EmpathyContact")
1013   (c-name "empathy_contact_get_ready")
1014   (return-type "EmpathyContactReady")
1015 )
1016
1017 (define-method is_user
1018   (of-object "EmpathyContact")
1019   (c-name "empathy_contact_is_user")
1020   (return-type "gboolean")
1021 )
1022
1023 (define-method set_is_user
1024   (of-object "EmpathyContact")
1025   (c-name "empathy_contact_set_is_user")
1026   (return-type "none")
1027   (parameters
1028     '("gboolean" "is_user")
1029   )
1030 )
1031
1032 (define-method is_online
1033   (of-object "EmpathyContact")
1034   (c-name "empathy_contact_is_online")
1035   (return-type "gboolean")
1036 )
1037
1038 (define-method get_status
1039   (of-object "EmpathyContact")
1040   (c-name "empathy_contact_get_status")
1041   (return-type "const-gchar*")
1042 )
1043
1044 (define-method can_voip
1045   (of-object "EmpathyContact")
1046   (c-name "empathy_contact_can_voip")
1047   (return-type "gboolean")
1048 )
1049
1050 (define-function contact_equal
1051   (c-name "empathy_contact_equal")
1052   (return-type "gboolean")
1053   (parameters
1054     '("gconstpointer" "v1")
1055     '("gconstpointer" "v2")
1056   )
1057 )
1058
1059 (define-function contact_hash
1060   (c-name "empathy_contact_hash")
1061   (return-type "guint")
1062   (parameters
1063     '("gconstpointer" "key")
1064   )
1065 )
1066
1067 (define-method run_until_ready
1068   (of-object "EmpathyContact")
1069   (c-name "empathy_contact_run_until_ready")
1070   (return-type "none")
1071   (parameters
1072     '("EmpathyContactReady" "ready")
1073     '("GMainLoop**" "loop")
1074   )
1075 )
1076
1077 (define-method load_avatar_data
1078   (of-object "EmpathyContact")
1079   (c-name "empathy_contact_load_avatar_data")
1080   (return-type "none")
1081   (parameters
1082     '("const-guchar*" "data")
1083     '("const-gsize" "len")
1084     '("const-gchar*" "format")
1085     '("const-gchar*" "token")
1086   )
1087 )
1088
1089 (define-method load_avatar_cache
1090   (of-object "EmpathyContact")
1091   (c-name "empathy_contact_load_avatar_cache")
1092   (return-type "gboolean")
1093   (parameters
1094     '("const-gchar*" "token")
1095   )
1096 )
1097
1098 (define-function avatar_get_type
1099   (c-name "empathy_avatar_get_type")
1100   (return-type "GType")
1101 )
1102
1103 (define-function avatar_new
1104   (c-name "empathy_avatar_new")
1105   (is-constructor-of "EmpathyAvatar")
1106   (return-type "EmpathyAvatar*")
1107   (parameters
1108     '("guchar*" "data")
1109     '("gsize" "len")
1110     '("gchar*" "format")
1111     '("gchar*" "token")
1112   )
1113 )
1114
1115 (define-method ref
1116   (of-object "EmpathyAvatar")
1117   (c-name "empathy_avatar_ref")
1118   (return-type "EmpathyAvatar*")
1119 )
1120
1121 (define-method unref
1122   (of-object "EmpathyAvatar")
1123   (c-name "empathy_avatar_unref")
1124   (return-type "none")
1125 )
1126
1127 (define-method save_to_file
1128   (of-object "EmpathyAvatar")
1129   (c-name "empathy_avatar_save_to_file")
1130   (return-type "gboolean")
1131   (parameters
1132     '("const-gchar*" "filename")
1133     '("GError**" "error")
1134   )
1135 )
1136
1137
1138
1139 ;; From empathy-contact-groups.h
1140
1141 (define-function contact_groups_get_all
1142   (c-name "empathy_contact_groups_get_all")
1143   (return-type "none")
1144 )
1145
1146 (define-function contact_group_get_expanded
1147   (c-name "empathy_contact_group_get_expanded")
1148   (return-type "gboolean")
1149   (parameters
1150     '("const-gchar*" "group")
1151   )
1152 )
1153
1154 (define-function contact_group_set_expanded
1155   (c-name "empathy_contact_group_set_expanded")
1156   (return-type "none")
1157   (parameters
1158     '("const-gchar*" "group")
1159     '("gboolean" "expanded")
1160   )
1161 )
1162
1163
1164
1165 ;; From empathy-contact-list.h
1166
1167 (define-function contact_list_get_type
1168   (c-name "empathy_contact_list_get_type")
1169   (return-type "GType")
1170 )
1171
1172 (define-method add
1173   (of-object "EmpathyContactList")
1174   (c-name "empathy_contact_list_add")
1175   (return-type "none")
1176   (parameters
1177     '("EmpathyContact*" "contact")
1178     '("const-gchar*" "message")
1179   )
1180 )
1181
1182 (define-method remove
1183   (of-object "EmpathyContactList")
1184   (c-name "empathy_contact_list_remove")
1185   (return-type "none")
1186   (parameters
1187     '("EmpathyContact*" "contact")
1188     '("const-gchar*" "message")
1189   )
1190 )
1191
1192 (define-method get_members
1193   (of-object "EmpathyContactList")
1194   (c-name "empathy_contact_list_get_members")
1195   (return-type "GList*")
1196 )
1197
1198 (define-method get_pendings
1199   (of-object "EmpathyContactList")
1200   (c-name "empathy_contact_list_get_pendings")
1201   (return-type "GList*")
1202 )
1203
1204 (define-method get_all_groups
1205   (of-object "EmpathyContactList")
1206   (c-name "empathy_contact_list_get_all_groups")
1207   (return-type "GList*")
1208 )
1209
1210 (define-method get_groups
1211   (of-object "EmpathyContactList")
1212   (c-name "empathy_contact_list_get_groups")
1213   (return-type "GList*")
1214   (parameters
1215     '("EmpathyContact*" "contact")
1216   )
1217 )
1218
1219 (define-method add_to_group
1220   (of-object "EmpathyContactList")
1221   (c-name "empathy_contact_list_add_to_group")
1222   (return-type "none")
1223   (parameters
1224     '("EmpathyContact*" "contact")
1225     '("const-gchar*" "group")
1226   )
1227 )
1228
1229 (define-method remove_from_group
1230   (of-object "EmpathyContactList")
1231   (c-name "empathy_contact_list_remove_from_group")
1232   (return-type "none")
1233   (parameters
1234     '("EmpathyContact*" "contact")
1235     '("const-gchar*" "group")
1236   )
1237 )
1238
1239 (define-method rename_group
1240   (of-object "EmpathyContactList")
1241   (c-name "empathy_contact_list_rename_group")
1242   (return-type "none")
1243   (parameters
1244     '("const-gchar*" "old_group")
1245     '("const-gchar*" "new_group")
1246   )
1247 )
1248
1249 (define-method remove_group
1250   (of-object "EmpathyContactList")
1251   (c-name "empathy_contact_list_remove_group")
1252   (return-type "none")
1253   (parameters
1254     '("const-gchar*" "group")
1255   )
1256 )
1257
1258
1259
1260 ;; From empathy-contact-manager.h
1261
1262 (define-function contact_manager_get_type
1263   (c-name "empathy_contact_manager_get_type")
1264   (return-type "GType")
1265 )
1266
1267 (define-function contact_manager_new
1268   (c-name "empathy_contact_manager_new")
1269   (is-constructor-of "EmpathyContactManager")
1270   (return-type "EmpathyContactManager*")
1271 )
1272
1273 (define-method get_list
1274   (of-object "EmpathyContactManager")
1275   (c-name "empathy_contact_manager_get_list")
1276   (return-type "EmpathyTpContactList*")
1277   (parameters
1278     '("McAccount*" "account")
1279   )
1280 )
1281
1282
1283
1284 ;; From empathy-contact-factory.h
1285
1286 (define-function contact_factory_get_type
1287   (c-name "empathy_contact_factory_get_type")
1288   (return-type "GType")
1289 )
1290
1291 (define-function contact_factory_new
1292   (c-name "empathy_contact_factory_new")
1293   (is-constructor-of "EmpathyContactFactory")
1294   (return-type "EmpathyContactFactory*")
1295 )
1296
1297 (define-method get_tp_factory
1298   (of-object "EmpathyContactFactory")
1299   (c-name "empathy_contact_factory_get_tp_factory")
1300   (return-type "EmpathyTpContactFactory*")
1301   (parameters
1302     '("McAccount*" "account")
1303   )
1304 )
1305
1306 (define-method get_user
1307   (of-object "EmpathyContactFactory")
1308   (c-name "empathy_contact_factory_get_user")
1309   (return-type "EmpathyContact*")
1310   (parameters
1311     '("McAccount*" "account")
1312   )
1313 )
1314
1315 (define-method get_from_id
1316   (of-object "EmpathyContactFactory")
1317   (c-name "empathy_contact_factory_get_from_id")
1318   (return-type "EmpathyContact*")
1319   (parameters
1320     '("McAccount*" "account")
1321     '("const-gchar*" "id")
1322   )
1323 )
1324
1325 (define-method get_from_handle
1326   (of-object "EmpathyContactFactory")
1327   (c-name "empathy_contact_factory_get_from_handle")
1328   (return-type "EmpathyContact*")
1329   (parameters
1330     '("McAccount*" "account")
1331     '("guint" "handle")
1332   )
1333 )
1334
1335 (define-method get_from_handles
1336   (of-object "EmpathyContactFactory")
1337   (c-name "empathy_contact_factory_get_from_handles")
1338   (return-type "GList*")
1339   (parameters
1340     '("McAccount*" "account")
1341     '("const-GArray*" "handles")
1342   )
1343 )
1344
1345 (define-method set_alias
1346   (of-object "EmpathyContactFactory")
1347   (c-name "empathy_contact_factory_set_alias")
1348   (return-type "none")
1349   (parameters
1350     '("EmpathyContact*" "contact")
1351     '("const-gchar*" "alias")
1352   )
1353 )
1354
1355 (define-method set_avatar
1356   (of-object "EmpathyContactFactory")
1357   (c-name "empathy_contact_factory_set_avatar")
1358   (return-type "none")
1359   (parameters
1360     '("McAccount*" "account")
1361     '("const-gchar*" "data")
1362     '("gsize" "size")
1363     '("const-gchar*" "mime_type")
1364   )
1365 )
1366
1367
1368
1369 ;; From empathy-tp-contact-factory.h
1370
1371 (define-function tp_contact_factory_get_type
1372   (c-name "empathy_tp_contact_factory_get_type")
1373   (return-type "GType")
1374 )
1375
1376 (define-function tp_contact_factory_new
1377   (c-name "empathy_tp_contact_factory_new")
1378   (is-constructor-of "EmpathyTpContactFactory")
1379   (return-type "EmpathyTpContactFactory*")
1380   (parameters
1381     '("McAccount*" "account")
1382   )
1383 )
1384
1385 (define-method get_user
1386   (of-object "EmpathyTpContactFactory")
1387   (c-name "empathy_tp_contact_factory_get_user")
1388   (return-type "EmpathyContact*")
1389 )
1390
1391 (define-method get_from_id
1392   (of-object "EmpathyTpContactFactory")
1393   (c-name "empathy_tp_contact_factory_get_from_id")
1394   (return-type "EmpathyContact*")
1395   (parameters
1396     '("const-gchar*" "id")
1397   )
1398 )
1399
1400 (define-method get_from_handle
1401   (of-object "EmpathyTpContactFactory")
1402   (c-name "empathy_tp_contact_factory_get_from_handle")
1403   (return-type "EmpathyContact*")
1404   (parameters
1405     '("guint" "handle")
1406   )
1407 )
1408
1409 (define-method get_from_handles
1410   (of-object "EmpathyTpContactFactory")
1411   (c-name "empathy_tp_contact_factory_get_from_handles")
1412   (return-type "GList*")
1413   (parameters
1414     '("const-GArray*" "handles")
1415   )
1416 )
1417
1418 (define-method set_alias
1419   (of-object "EmpathyTpContactFactory")
1420   (c-name "empathy_tp_contact_factory_set_alias")
1421   (return-type "none")
1422   (parameters
1423     '("EmpathyContact*" "contact")
1424     '("const-gchar*" "alias")
1425   )
1426 )
1427
1428 (define-method set_avatar
1429   (of-object "EmpathyTpContactFactory")
1430   (c-name "empathy_tp_contact_factory_set_avatar")
1431   (return-type "none")
1432   (parameters
1433     '("const-gchar*" "data")
1434     '("gsize" "size")
1435     '("const-gchar*" "mime_type")
1436   )
1437 )
1438
1439 (define-method is_ready
1440   (of-object "EmpathyTpContactFactory")
1441   (c-name "empathy_tp_contact_factory_is_ready")
1442   (return-type "gboolean")
1443 )
1444
1445
1446
1447 ;; From empathy-tp-group.h
1448
1449 (define-function tp_group_get_type
1450   (c-name "empathy_tp_group_get_type")
1451   (return-type "GType")
1452 )
1453
1454 (define-function tp_group_new
1455   (c-name "empathy_tp_group_new")
1456   (is-constructor-of "EmpathyTpGroup")
1457   (return-type "EmpathyTpGroup*")
1458   (parameters
1459     '("TpChannel*" "channel")
1460   )
1461 )
1462
1463 (define-method close
1464   (of-object "EmpathyTpGroup")
1465   (c-name "empathy_tp_group_close")
1466   (return-type "none")
1467 )
1468
1469 (define-method add_members
1470   (of-object "EmpathyTpGroup")
1471   (c-name "empathy_tp_group_add_members")
1472   (return-type "none")
1473   (parameters
1474     '("GList*" "contacts")
1475     '("const-gchar*" "message")
1476   )
1477 )
1478
1479 (define-method add_member
1480   (of-object "EmpathyTpGroup")
1481   (c-name "empathy_tp_group_add_member")
1482   (return-type "none")
1483   (parameters
1484     '("EmpathyContact*" "contact")
1485     '("const-gchar*" "message")
1486   )
1487 )
1488
1489 (define-method remove_members
1490   (of-object "EmpathyTpGroup")
1491   (c-name "empathy_tp_group_remove_members")
1492   (return-type "none")
1493   (parameters
1494     '("GList*" "contacts")
1495     '("const-gchar*" "message")
1496   )
1497 )
1498
1499 (define-method remove_member
1500   (of-object "EmpathyTpGroup")
1501   (c-name "empathy_tp_group_remove_member")
1502   (return-type "none")
1503   (parameters
1504     '("EmpathyContact*" "contact")
1505     '("const-gchar*" "message")
1506   )
1507 )
1508
1509 (define-method get_members
1510   (of-object "EmpathyTpGroup")
1511   (c-name "empathy_tp_group_get_members")
1512   (return-type "GList*")
1513 )
1514
1515 (define-method get_local_pendings
1516   (of-object "EmpathyTpGroup")
1517   (c-name "empathy_tp_group_get_local_pendings")
1518   (return-type "GList*")
1519 )
1520
1521 (define-method get_remote_pendings
1522   (of-object "EmpathyTpGroup")
1523   (c-name "empathy_tp_group_get_remote_pendings")
1524   (return-type "GList*")
1525 )
1526
1527 (define-method get_name
1528   (of-object "EmpathyTpGroup")
1529   (c-name "empathy_tp_group_get_name")
1530   (return-type "const-gchar*")
1531 )
1532
1533 (define-method get_self_contact
1534   (of-object "EmpathyTpGroup")
1535   (c-name "empathy_tp_group_get_self_contact")
1536   (return-type "EmpathyContact*")
1537 )
1538
1539 (define-method is_member
1540   (of-object "EmpathyTpGroup")
1541   (c-name "empathy_tp_group_is_member")
1542   (return-type "gboolean")
1543   (parameters
1544     '("EmpathyContact*" "contact")
1545   )
1546 )
1547
1548 (define-method is_ready
1549   (of-object "EmpathyTpGroup")
1550   (c-name "empathy_tp_group_is_ready")
1551   (return-type "gboolean")
1552 )
1553
1554 (define-method get_invitation
1555   (of-object "EmpathyTpGroup")
1556   (c-name "empathy_tp_group_get_invitation")
1557   (return-type "EmpathyPendingInfo*")
1558   (parameters
1559     '("EmpathyContact**" "remote_contact")
1560   )
1561 )
1562
1563 (define-function pending_info_new
1564   (c-name "empathy_pending_info_new")
1565   (is-constructor-of "EmpathyPendingInfo")
1566   (return-type "EmpathyPendingInfo*")
1567   (parameters
1568     '("EmpathyContact*" "member")
1569     '("EmpathyContact*" "actor")
1570     '("const-gchar*" "message")
1571   )
1572 )
1573
1574 (define-method free
1575   (of-object "EmpathyPendingInfo")
1576   (c-name "empathy_pending_info_free")
1577   (return-type "none")
1578 )
1579
1580
1581
1582 ;; From empathy-tp-contact-list.h
1583
1584 (define-function tp_contact_list_get_type
1585   (c-name "empathy_tp_contact_list_get_type")
1586   (return-type "GType")
1587 )
1588
1589 (define-function tp_contact_list_new
1590   (c-name "empathy_tp_contact_list_new")
1591   (is-constructor-of "EmpathyTpContactList")
1592   (return-type "EmpathyTpContactList*")
1593   (parameters
1594     '("McAccount*" "account")
1595   )
1596 )
1597
1598 (define-method get_account
1599   (of-object "EmpathyTpContactList")
1600   (c-name "empathy_tp_contact_list_get_account")
1601   (return-type "McAccount*")
1602 )
1603
1604
1605
1606 ;; From empathy-tp-chat.h
1607
1608 (define-function tp_chat_get_type
1609   (c-name "empathy_tp_chat_get_type")
1610   (return-type "GType")
1611 )
1612
1613 (define-function tp_chat_new
1614   (c-name "empathy_tp_chat_new")
1615   (is-constructor-of "EmpathyTpChat")
1616   (return-type "EmpathyTpChat*")
1617   (parameters
1618     '("TpChannel*" "channel")
1619   )
1620 )
1621
1622 (define-method get_id
1623   (of-object "EmpathyTpChat")
1624   (c-name "empathy_tp_chat_get_id")
1625   (return-type "const-gchar*")
1626 )
1627
1628 (define-method get_remote_contact
1629   (of-object "EmpathyTpChat")
1630   (c-name "empathy_tp_chat_get_remote_contact")
1631   (return-type "EmpathyContact*")
1632 )
1633
1634 (define-method get_account
1635   (of-object "EmpathyTpChat")
1636   (c-name "empathy_tp_chat_get_account")
1637   (return-type "McAccount*")
1638 )
1639
1640 (define-method get_channel
1641   (of-object "EmpathyTpChat")
1642   (c-name "empathy_tp_chat_get_channel")
1643   (return-type "TpChannel*")
1644 )
1645
1646 (define-method is_ready
1647   (of-object "EmpathyTpChat")
1648   (c-name "empathy_tp_chat_is_ready")
1649   (return-type "gboolean")
1650 )
1651
1652 (define-method get_members_count
1653   (of-object "EmpathyTpChat")
1654   (c-name "empathy_tp_chat_get_members_count")
1655   (return-type "guint")
1656 )
1657
1658 (define-method set_acknowledge
1659   (of-object "EmpathyTpChat")
1660   (c-name "empathy_tp_chat_set_acknowledge")
1661   (return-type "none")
1662   (parameters
1663     '("gboolean" "acknowledge")
1664   )
1665 )
1666
1667 (define-method emit_pendings
1668   (of-object "EmpathyTpChat")
1669   (c-name "empathy_tp_chat_emit_pendings")
1670   (return-type "none")
1671 )
1672
1673 (define-method send
1674   (of-object "EmpathyTpChat")
1675   (c-name "empathy_tp_chat_send")
1676   (return-type "none")
1677   (parameters
1678     '("EmpathyMessage*" "message")
1679   )
1680 )
1681
1682 (define-method set_state
1683   (of-object "EmpathyTpChat")
1684   (c-name "empathy_tp_chat_set_state")
1685   (return-type "none")
1686   (parameters
1687     '("TpChannelChatState" "state")
1688   )
1689 )
1690
1691 (define-method set_property
1692   (of-object "EmpathyTpChat")
1693   (c-name "empathy_tp_chat_set_property")
1694   (return-type "none")
1695   (parameters
1696     '("const-gchar*" "name")
1697     '("const-GValue*" "value")
1698   )
1699 )
1700
1701
1702
1703 ;; From empathy-tp-roomlist.h
1704
1705 (define-function tp_roomlist_get_type
1706   (c-name "empathy_tp_roomlist_get_type")
1707   (return-type "GType")
1708 )
1709
1710 (define-function tp_roomlist_new
1711   (c-name "empathy_tp_roomlist_new")
1712   (is-constructor-of "EmpathyTpRoomlist")
1713   (return-type "EmpathyTpRoomlist*")
1714   (parameters
1715     '("McAccount*" "account")
1716   )
1717 )
1718
1719 (define-method is_listing
1720   (of-object "EmpathyTpRoomlist")
1721   (c-name "empathy_tp_roomlist_is_listing")
1722   (return-type "gboolean")
1723 )
1724
1725 (define-method start
1726   (of-object "EmpathyTpRoomlist")
1727   (c-name "empathy_tp_roomlist_start")
1728   (return-type "none")
1729 )
1730
1731 (define-method stop
1732   (of-object "EmpathyTpRoomlist")
1733   (c-name "empathy_tp_roomlist_stop")
1734   (return-type "none")
1735 )
1736
1737
1738
1739 ;; From empathy-tp-call.h
1740
1741 (define-function tp_call_get_type
1742   (c-name "empathy_tp_call_get_type")
1743   (return-type "GType")
1744 )
1745
1746 (define-function tp_call_new
1747   (c-name "empathy_tp_call_new")
1748   (is-constructor-of "EmpathyTpCall")
1749   (return-type "EmpathyTpCall*")
1750   (parameters
1751     '("TpChannel*" "channel")
1752   )
1753 )
1754
1755 (define-method accept_incoming_call
1756   (of-object "EmpathyTpCall")
1757   (c-name "empathy_tp_call_accept_incoming_call")
1758   (return-type "none")
1759 )
1760
1761 (define-method request_video_stream_direction
1762   (of-object "EmpathyTpCall")
1763   (c-name "empathy_tp_call_request_video_stream_direction")
1764   (return-type "none")
1765   (parameters
1766     '("gboolean" "is_sending")
1767   )
1768 )
1769
1770 (define-method add_preview_video
1771   (of-object "EmpathyTpCall")
1772   (c-name "empathy_tp_call_add_preview_video")
1773   (return-type "none")
1774   (parameters
1775     '("guint" "preview_video_socket_id")
1776   )
1777 )
1778
1779 (define-method remove_preview_video
1780   (of-object "EmpathyTpCall")
1781   (c-name "empathy_tp_call_remove_preview_video")
1782   (return-type "none")
1783   (parameters
1784     '("guint" "preview_video_socket_id")
1785   )
1786 )
1787
1788 (define-method add_output_video
1789   (of-object "EmpathyTpCall")
1790   (c-name "empathy_tp_call_add_output_video")
1791   (return-type "none")
1792   (parameters
1793     '("guint" "output_video_socket_id")
1794   )
1795 )
1796
1797 (define-method set_output_volume
1798   (of-object "EmpathyTpCall")
1799   (c-name "empathy_tp_call_set_output_volume")
1800   (return-type "none")
1801   (parameters
1802     '("guint" "volume")
1803   )
1804 )
1805
1806 (define-method mute_output
1807   (of-object "EmpathyTpCall")
1808   (c-name "empathy_tp_call_mute_output")
1809   (return-type "none")
1810   (parameters
1811     '("gboolean" "is_muted")
1812   )
1813 )
1814
1815 (define-method mute_input
1816   (of-object "EmpathyTpCall")
1817   (c-name "empathy_tp_call_mute_input")
1818   (return-type "none")
1819   (parameters
1820     '("gboolean" "is_muted")
1821   )
1822 )
1823
1824 (define-method start_tone
1825   (of-object "EmpathyTpCall")
1826   (c-name "empathy_tp_call_start_tone")
1827   (return-type "none")
1828   (parameters
1829     '("TpDTMFEvent" "event")
1830   )
1831 )
1832
1833 (define-method stop_tone
1834   (of-object "EmpathyTpCall")
1835   (c-name "empathy_tp_call_stop_tone")
1836   (return-type "none")
1837 )
1838
1839 (define-method has_dtmf
1840   (of-object "EmpathyTpCall")
1841   (c-name "empathy_tp_call_has_dtmf")
1842   (return-type "gboolean")
1843 )
1844
1845
1846
1847 ;; From empathy-tp-tube.h
1848
1849 (define-function tp_tube_get_type
1850   (c-name "empathy_tp_tube_get_type")
1851   (return-type "GType")
1852 )
1853
1854 (define-function tp_tube_new
1855   (c-name "empathy_tp_tube_new")
1856   (is-constructor-of "EmpathyTpTube")
1857   (return-type "EmpathyTpTube*")
1858   (parameters
1859     '("TpChannel*" "channel")
1860     '("guint" "tube_id")
1861   )
1862 )
1863
1864 (define-function tp_tube_new_stream_tube
1865   (c-name "empathy_tp_tube_new_stream_tube")
1866   (return-type "EmpathyTpTube*")
1867   (parameters
1868     '("EmpathyContact*" "contact")
1869     '("TpSocketAddressType" "type")
1870     '("const-gchar*" "hostname")
1871     '("guint" "port")
1872     '("const-gchar*" "service")
1873   )
1874 )
1875
1876 (define-method accept_stream_tube
1877   (of-object "EmpathyTpTube")
1878   (c-name "empathy_tp_tube_accept_stream_tube")
1879   (return-type "none")
1880   (parameters
1881     '("TpSocketAddressType" "type")
1882   )
1883 )
1884
1885 (define-method get_socket
1886   (of-object "EmpathyTpTube")
1887   (c-name "empathy_tp_tube_get_socket")
1888   (return-type "none")
1889   (parameters
1890     '("gchar**" "hostname")
1891     '("guint*" "port")
1892   )
1893 )
1894
1895
1896
1897 ;; From empathy-idle.h
1898
1899 (define-function idle_get_type
1900   (c-name "empathy_idle_get_type")
1901   (return-type "GType")
1902 )
1903
1904 (define-function idle_new
1905   (c-name "empathy_idle_new")
1906   (is-constructor-of "EmpathyIdle")
1907   (return-type "EmpathyIdle*")
1908 )
1909
1910 (define-method get_state
1911   (of-object "EmpathyIdle")
1912   (c-name "empathy_idle_get_state")
1913   (return-type "McPresence")
1914 )
1915
1916 (define-method set_state
1917   (of-object "EmpathyIdle")
1918   (c-name "empathy_idle_set_state")
1919   (return-type "none")
1920   (parameters
1921     '("McPresence" "state")
1922   )
1923 )
1924
1925 (define-method get_status
1926   (of-object "EmpathyIdle")
1927   (c-name "empathy_idle_get_status")
1928   (return-type "const-gchar*")
1929 )
1930
1931 (define-method set_status
1932   (of-object "EmpathyIdle")
1933   (c-name "empathy_idle_set_status")
1934   (return-type "none")
1935   (parameters
1936     '("const-gchar*" "status")
1937   )
1938 )
1939
1940 (define-method get_flash_state
1941   (of-object "EmpathyIdle")
1942   (c-name "empathy_idle_get_flash_state")
1943   (return-type "McPresence")
1944 )
1945
1946 (define-method set_flash_state
1947   (of-object "EmpathyIdle")
1948   (c-name "empathy_idle_set_flash_state")
1949   (return-type "none")
1950   (parameters
1951     '("McPresence" "state")
1952   )
1953 )
1954
1955 (define-method set_presence
1956   (of-object "EmpathyIdle")
1957   (c-name "empathy_idle_set_presence")
1958   (return-type "none")
1959   (parameters
1960     '("McPresence" "state")
1961     '("const-gchar*" "status")
1962   )
1963 )
1964
1965 (define-method get_auto_away
1966   (of-object "EmpathyIdle")
1967   (c-name "empathy_idle_get_auto_away")
1968   (return-type "gboolean")
1969 )
1970
1971 (define-method set_auto_away
1972   (of-object "EmpathyIdle")
1973   (c-name "empathy_idle_set_auto_away")
1974   (return-type "none")
1975   (parameters
1976     '("gboolean" "auto_away")
1977   )
1978 )
1979
1980 (define-method get_use_nm
1981   (of-object "EmpathyIdle")
1982   (c-name "empathy_idle_get_use_nm")
1983   (return-type "gboolean")
1984 )
1985
1986 (define-method set_use_nm
1987   (of-object "EmpathyIdle")
1988   (c-name "empathy_idle_set_use_nm")
1989   (return-type "none")
1990   (parameters
1991     '("gboolean" "use_nm")
1992   )
1993 )
1994
1995
1996
1997 ;; From empathy-log-manager.h
1998
1999 (define-function log_manager_get_type
2000   (c-name "empathy_log_manager_get_type")
2001   (return-type "GType")
2002 )
2003
2004 (define-function log_manager_new
2005   (c-name "empathy_log_manager_new")
2006   (is-constructor-of "EmpathyLogManager")
2007   (return-type "EmpathyLogManager*")
2008 )
2009
2010 (define-method add_message
2011   (of-object "EmpathyLogManager")
2012   (c-name "empathy_log_manager_add_message")
2013   (return-type "none")
2014   (parameters
2015     '("const-gchar*" "chat_id")
2016     '("gboolean" "chatroom")
2017     '("EmpathyMessage*" "message")
2018   )
2019 )
2020
2021 (define-method exists
2022   (of-object "EmpathyLogManager")
2023   (c-name "empathy_log_manager_exists")
2024   (return-type "gboolean")
2025   (parameters
2026     '("McAccount*" "account")
2027     '("const-gchar*" "chat_id")
2028     '("gboolean" "chatroom")
2029   )
2030 )
2031
2032 (define-method get_dates
2033   (of-object "EmpathyLogManager")
2034   (c-name "empathy_log_manager_get_dates")
2035   (return-type "GList*")
2036   (parameters
2037     '("McAccount*" "account")
2038     '("const-gchar*" "chat_id")
2039     '("gboolean" "chatroom")
2040   )
2041 )
2042
2043 (define-method get_messages_for_file
2044   (of-object "EmpathyLogManager")
2045   (c-name "empathy_log_manager_get_messages_for_file")
2046   (return-type "GList*")
2047   (parameters
2048     '("const-gchar*" "filename")
2049   )
2050 )
2051
2052 (define-method get_messages_for_date
2053   (of-object "EmpathyLogManager")
2054   (c-name "empathy_log_manager_get_messages_for_date")
2055   (return-type "GList*")
2056   (parameters
2057     '("McAccount*" "account")
2058     '("const-gchar*" "chat_id")
2059     '("gboolean" "chatroom")
2060     '("const-gchar*" "date")
2061   )
2062 )
2063
2064 (define-method get_last_messages
2065   (of-object "EmpathyLogManager")
2066   (c-name "empathy_log_manager_get_last_messages")
2067   (return-type "GList*")
2068   (parameters
2069     '("McAccount*" "account")
2070     '("const-gchar*" "chat_id")
2071     '("gboolean" "chatroom")
2072   )
2073 )
2074
2075 (define-method get_messages_for_file
2076   (of-object "EmpathyLogManager")
2077   (c-name "empathy_log_manager_get_messages_for_file")
2078   (return-type "GList*")
2079   (parameters
2080     '("const-gchar*" "filename")
2081   )
2082 )
2083
2084 (define-method get_chats
2085   (of-object "EmpathyLogManager")
2086   (c-name "empathy_log_manager_get_chats")
2087   (return-type "GList*")
2088   (parameters
2089     '("McAccount*" "account")
2090   )
2091 )
2092
2093 (define-method search_new
2094   (of-object "EmpathyLogManager")
2095   (c-name "empathy_log_manager_search_new")
2096   (return-type "GList*")
2097   (parameters
2098     '("const-gchar*" "text")
2099   )
2100 )
2101
2102 (define-function log_manager_search_free
2103   (c-name "empathy_log_manager_search_free")
2104   (return-type "none")
2105   (parameters
2106     '("GList*" "hits")
2107   )
2108 )
2109
2110 (define-function log_manager_get_date_readable
2111   (c-name "empathy_log_manager_get_date_readable")
2112   (return-type "gchar*")
2113   (parameters
2114     '("const-gchar*" "date")
2115   )
2116 )
2117
2118
2119
2120 ;; From empathy-irc-network-manager.h
2121
2122 (define-function irc_network_manager_get_type
2123   (c-name "empathy_irc_network_manager_get_type")
2124   (return-type "GType")
2125 )
2126
2127 (define-function irc_network_manager_new
2128   (c-name "empathy_irc_network_manager_new")
2129   (is-constructor-of "EmpathyIrcNetworkManager")
2130   (return-type "EmpathyIrcNetworkManager*")
2131   (parameters
2132     '("const-gchar*" "global_file")
2133     '("const-gchar*" "user_file")
2134   )
2135 )
2136
2137 (define-method add
2138   (of-object "EmpathyIrcNetworkManager")
2139   (c-name "empathy_irc_network_manager_add")
2140   (return-type "none")
2141   (parameters
2142     '("EmpathyIrcNetwork*" "network")
2143   )
2144 )
2145
2146 (define-method remove
2147   (of-object "EmpathyIrcNetworkManager")
2148   (c-name "empathy_irc_network_manager_remove")
2149   (return-type "none")
2150   (parameters
2151     '("EmpathyIrcNetwork*" "network")
2152   )
2153 )
2154
2155 (define-method get_networks
2156   (of-object "EmpathyIrcNetworkManager")
2157   (c-name "empathy_irc_network_manager_get_networks")
2158   (return-type "GSList*")
2159 )
2160
2161 (define-method find_network_by_address
2162   (of-object "EmpathyIrcNetworkManager")
2163   (c-name "empathy_irc_network_manager_find_network_by_address")
2164   (return-type "EmpathyIrcNetwork*")
2165   (parameters
2166     '("const-gchar*" "address")
2167   )
2168 )
2169
2170
2171
2172 ;; From empathy-irc-network.h
2173
2174 (define-function irc_network_get_type
2175   (c-name "empathy_irc_network_get_type")
2176   (return-type "GType")
2177 )
2178
2179 (define-function irc_network_new
2180   (c-name "empathy_irc_network_new")
2181   (is-constructor-of "EmpathyIrcNetwork")
2182   (return-type "EmpathyIrcNetwork*")
2183   (parameters
2184     '("const-gchar*" "name")
2185   )
2186 )
2187
2188 (define-method get_servers
2189   (of-object "EmpathyIrcNetwork")
2190   (c-name "empathy_irc_network_get_servers")
2191   (return-type "GSList*")
2192 )
2193
2194 (define-method append_server
2195   (of-object "EmpathyIrcNetwork")
2196   (c-name "empathy_irc_network_append_server")
2197   (return-type "none")
2198   (parameters
2199     '("EmpathyIrcServer*" "server")
2200   )
2201 )
2202
2203 (define-method remove_server
2204   (of-object "EmpathyIrcNetwork")
2205   (c-name "empathy_irc_network_remove_server")
2206   (return-type "none")
2207   (parameters
2208     '("EmpathyIrcServer*" "server")
2209   )
2210 )
2211
2212 (define-method set_server_position
2213   (of-object "EmpathyIrcNetwork")
2214   (c-name "empathy_irc_network_set_server_position")
2215   (return-type "none")
2216   (parameters
2217     '("EmpathyIrcServer*" "server")
2218     '("gint" "pos")
2219   )
2220 )
2221
2222
2223
2224 ;; From empathy-irc-server.h
2225
2226 (define-function irc_server_get_type
2227   (c-name "empathy_irc_server_get_type")
2228   (return-type "GType")
2229 )
2230
2231 (define-function irc_server_new
2232   (c-name "empathy_irc_server_new")
2233   (is-constructor-of "EmpathyIrcServer")
2234   (return-type "EmpathyIrcServer*")
2235   (parameters
2236     '("const-gchar*" "address")
2237     '("guint" "port")
2238     '("gboolean" "ssl")
2239   )
2240 )
2241
2242
2243
2244 ;; From empathy-tube-handler.h
2245
2246 (define-function tube_handler_get_type
2247   (c-name "empathy_tube_handler_get_type")
2248   (return-type "GType")
2249 )
2250
2251 (define-function tube_handler_new
2252   (c-name "empathy_tube_handler_new")
2253   (is-constructor-of "EmpathyTubeHandler")
2254   (return-type "EmpathyTubeHandler*")
2255   (parameters
2256     '("TpTubeType" "type")
2257     '("const-gchar*" "service")
2258   )
2259 )
2260
2261 (define-function tube_handler_build_bus_name
2262   (c-name "empathy_tube_handler_build_bus_name")
2263   (return-type "gchar*")
2264   (parameters
2265     '("TpTubeType" "type")
2266     '("const-gchar*" "service")
2267   )
2268 )
2269
2270 (define-function tube_handler_build_object_path
2271   (c-name "empathy_tube_handler_build_object_path")
2272   (return-type "gchar*")
2273   (parameters
2274     '("TpTubeType" "type")
2275     '("const-gchar*" "service")
2276   )
2277 )
2278
2279
2280
2281 ;; From empathy-dispatcher.h
2282
2283 (define-function dispatcher_get_type
2284   (c-name "empathy_dispatcher_get_type")
2285   (return-type "GType")
2286 )
2287
2288 (define-function dispatcher_new
2289   (c-name "empathy_dispatcher_new")
2290   (is-constructor-of "EmpathyDispatcher")
2291   (return-type "EmpathyDispatcher*")
2292 )
2293
2294 (define-method channel_process
2295   (of-object "EmpathyDispatcher")
2296   (c-name "empathy_dispatcher_channel_process")
2297   (return-type "none")
2298   (parameters
2299     '("TpChannel*" "channel")
2300   )
2301 )
2302
2303 (define-function dispatcher_tube_get_type
2304   (c-name "empathy_dispatcher_tube_get_type")
2305   (return-type "GType")
2306 )
2307
2308 (define-method ref
2309   (of-object "EmpathyDispatcherTube")
2310   (c-name "empathy_dispatcher_tube_ref")
2311   (return-type "EmpathyDispatcherTube*")
2312 )
2313
2314 (define-method unref
2315   (of-object "EmpathyDispatcherTube")
2316   (c-name "empathy_dispatcher_tube_unref")
2317   (return-type "none")
2318 )
2319
2320 (define-method tube_process
2321   (of-object "EmpathyDispatcher")
2322   (c-name "empathy_dispatcher_tube_process")
2323   (return-type "none")
2324   (parameters
2325     '("EmpathyDispatcherTube*" "tube")
2326   )
2327 )
2328
2329 (define-function dispatcher_call_with_contact
2330   (c-name "empathy_dispatcher_call_with_contact")
2331   (return-type "none")
2332   (parameters
2333     '("EmpathyContact*" "contact")
2334   )
2335 )
2336
2337 (define-function dispatcher_call_with_contact_id
2338   (c-name "empathy_dispatcher_call_with_contact_id")
2339   (return-type "none")
2340   (parameters
2341     '("McAccount*" "account")
2342     '("const-gchar*" "contact_id")
2343   )
2344 )
2345
2346 (define-function dispatcher_chat_with_contact_id
2347   (c-name "empathy_dispatcher_chat_with_contact_id")
2348   (return-type "none")
2349   (parameters
2350     '("McAccount*" "account")
2351     '("const-gchar*" "contact_id")
2352   )
2353 )
2354
2355 (define-function dispatcher_chat_with_contact
2356   (c-name "empathy_dispatcher_chat_with_contact")
2357   (return-type "none")
2358   (parameters
2359     '("EmpathyContact*" "contact")
2360   )
2361 )
2362
2363