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