]> git.0d.be Git - empathy.git/blob - python/pyempathy/pyempathy.defs
Merge back from master
[empathy.git] / python / pyempathy / pyempathy.defs
1 ;; -*- scheme -*-
2 ; object definitions ...
3 (define-object AccountManager
4   (in-module "Empathy")
5   (parent "GObject")
6   (c-name "EmpathyAccountManager")
7   (gtype-id "EMPATHY_TYPE_ACCOUNT_MANAGER")
8 )
9
10 (define-object CallFactory
11   (in-module "Empathy")
12   (parent "GObject")
13   (c-name "EmpathyCallFactory")
14   (gtype-id "EMPATHY_TYPE_CALL_FACTORY")
15 )
16
17 (define-object CallHandler
18   (in-module "Empathy")
19   (parent "GObject")
20   (c-name "EmpathyCallHandler")
21   (gtype-id "EMPATHY_TYPE_CALL_HANDLER")
22 )
23
24 (define-object Chatroom
25   (in-module "Empathy")
26   (parent "GObject")
27   (c-name "EmpathyChatroom")
28   (gtype-id "EMPATHY_TYPE_CHATROOM")
29 )
30
31 (define-object ChatroomManager
32   (in-module "Empathy")
33   (parent "GObject")
34   (c-name "EmpathyChatroomManager")
35   (gtype-id "EMPATHY_TYPE_CHATROOM_MANAGER")
36 )
37
38 (define-object Contact
39   (in-module "Empathy")
40   (parent "GObject")
41   (c-name "EmpathyContact")
42   (gtype-id "EMPATHY_TYPE_CONTACT")
43 )
44
45 (define-interface ContactList
46   (in-module "Empathy")
47   (c-name "EmpathyContactList")
48   (gtype-id "EMPATHY_TYPE_CONTACT_LIST")
49 )
50
51 (define-object ContactManager
52   (in-module "Empathy")
53   (parent "GObject")
54   (implements "EmpathyContactList")
55   (c-name "EmpathyContactManager")
56   (gtype-id "EMPATHY_TYPE_CONTACT_MANAGER")
57 )
58
59 (define-object ContactMonitor
60   (in-module "Empathy")
61   (parent "GObject")
62   (c-name "EmpathyContactMonitor")
63   (gtype-id "EMPATHY_TYPE_CONTACT_MONITOR")
64 )
65
66 (define-object DispatchOperation
67   (in-module "Empathy")
68   (parent "GObject")
69   (c-name "EmpathyDispatchOperation")
70   (gtype-id "EMPATHY_TYPE_DISPATCH_OPERATION")
71 )
72
73 (define-object Dispatcher
74   (in-module "Empathy")
75   (parent "GObject")
76   (c-name "EmpathyDispatcher")
77   (gtype-id "EMPATHY_TYPE_DISPATCHER")
78 )
79
80 (define-object FTFactory
81   (in-module "Empathy")
82   (parent "GObject")
83   (c-name "EmpathyFTFactory")
84   (gtype-id "EMPATHY_TYPE_FT_FACTORY")
85 )
86
87 (define-object FTHandler
88   (in-module "Empathy")
89   (parent "GObject")
90   (c-name "EmpathyFTHandler")
91   (gtype-id "EMPATHY_TYPE_FT_HANDLER")
92 )
93
94 (define-object Idle
95   (in-module "Empathy")
96   (parent "GObject")
97   (c-name "EmpathyIdle")
98   (gtype-id "EMPATHY_TYPE_IDLE")
99 )
100
101 (define-object IrcNetwork
102   (in-module "Empathy")
103   (parent "GObject")
104   (c-name "EmpathyIrcNetwork")
105   (gtype-id "EMPATHY_TYPE_IRC_NETWORK")
106 )
107
108 (define-object IrcNetworkManager
109   (in-module "Empathy")
110   (parent "GObject")
111   (c-name "EmpathyIrcNetworkManager")
112   (gtype-id "EMPATHY_TYPE_IRC_NETWORK_MANAGER")
113 )
114
115 (define-object IrcServer
116   (in-module "Empathy")
117   (parent "GObject")
118   (c-name "EmpathyIrcServer")
119   (gtype-id "EMPATHY_TYPE_IRC_SERVER")
120 )
121
122 (define-object LogManager
123   (in-module "Empathy")
124   (parent "GObject")
125   (c-name "EmpathyLogManager")
126   (gtype-id "EMPATHY_TYPE_LOG_MANAGER")
127 )
128
129 (define-object LogStoreEmpathy
130   (in-module "Empathy")
131   (parent "GObject")
132   (c-name "EmpathyLogStoreEmpathy")
133   (gtype-id "EMPATHY_TYPE_LOG_STORE_EMPATHY")
134 )
135
136 (define-object Message
137   (in-module "Empathy")
138   (parent "GObject")
139   (c-name "EmpathyMessage")
140   (gtype-id "EMPATHY_TYPE_MESSAGE")
141 )
142
143 (define-object TpCall
144   (in-module "Empathy")
145   (parent "GObject")
146   (c-name "EmpathyTpCall")
147   (gtype-id "EMPATHY_TYPE_TP_CALL")
148 )
149
150 (define-object TpChat
151   (in-module "Empathy")
152   (parent "GObject")
153   (c-name "EmpathyTpChat")
154   (gtype-id "EMPATHY_TYPE_TP_CHAT")
155 )
156
157 (define-object TpContactFactory
158   (in-module "Empathy")
159   (parent "GObject")
160   (c-name "EmpathyTpContactFactory")
161   (gtype-id "EMPATHY_TYPE_TP_CONTACT_FACTORY")
162 )
163
164 (define-object TpContactList
165   (in-module "Empathy")
166   (parent "GObject")
167   (implements "EmpathyContactList")
168   (c-name "EmpathyTpContactList")
169   (gtype-id "EMPATHY_TYPE_TP_CONTACT_LIST")
170 )
171
172 (define-object TpFile
173   (in-module "Empathy")
174   (parent "GObject")
175   (c-name "EmpathyTpFile")
176   (gtype-id "EMPATHY_TYPE_TP_FILE")
177 )
178
179 (define-object TpRoomlist
180   (in-module "Empathy")
181   (parent "GObject")
182   (c-name "EmpathyTpRoomlist")
183   (gtype-id "EMPATHY_TYPE_TP_ROOMLIST")
184 )
185
186 (define-object TubeHandler
187   (in-module "Empathy")
188   (parent "GObject")
189   (c-name "EmpathyTubeHandler")
190   (gtype-id "EMPATHY_TYPE_TUBE_HANDLER")
191 )
192
193 ;; Enumerations and flags ...
194
195 (define-flags Capabilities
196   (in-module "Empathy")
197   (c-name "EmpathyCapabilities")
198   (gtype-id "EMPATHY_TYPE_CAPABILITIES")
199   (values
200     '("none" "EMPATHY_CAPABILITIES_NONE")
201     '("audio" "EMPATHY_CAPABILITIES_AUDIO")
202     '("video" "EMPATHY_CAPABILITIES_VIDEO")
203     '("ft" "EMPATHY_CAPABILITIES_FT")
204     '("stream-tube" "EMPATHY_CAPABILITIES_STREAM_TUBE")
205     '("unknown" "EMPATHY_CAPABILITIES_UNKNOWN")
206   )
207 )
208
209 (define-flags ContactListFlags
210   (in-module "Empathy")
211   (c-name "EmpathyContactListFlags")
212   (gtype-id "EMPATHY_TYPE_CONTACT_LIST_FLAGS")
213   (values
214     '("add" "EMPATHY_CONTACT_LIST_CAN_ADD")
215     '("remove" "EMPATHY_CONTACT_LIST_CAN_REMOVE")
216     '("alias" "EMPATHY_CONTACT_LIST_CAN_ALIAS")
217     '("group" "EMPATHY_CONTACT_LIST_CAN_GROUP")
218   )
219 )
220
221 (define-flags DebugFlags
222   (in-module "Empathy")
223   (c-name "EmpathyDebugFlags")
224   (gtype-id "EMPATHY_TYPE_DEBUG_FLAGS")
225   (values
226     '("tp" "EMPATHY_DEBUG_TP")
227     '("chat" "EMPATHY_DEBUG_CHAT")
228     '("contact" "EMPATHY_DEBUG_CONTACT")
229     '("account" "EMPATHY_DEBUG_ACCOUNT")
230     '("irc" "EMPATHY_DEBUG_IRC")
231     '("dispatcher" "EMPATHY_DEBUG_DISPATCHER")
232     '("ft" "EMPATHY_DEBUG_FT")
233     '("location" "EMPATHY_DEBUG_LOCATION")
234     '("other" "EMPATHY_DEBUG_OTHER")
235     '("share-desktop" "EMPATHY_DEBUG_SHARE_DESKTOP")
236     '("connectivity" "EMPATHY_DEBUG_CONNECTIVITY")
237   )
238 )
239
240 (define-enum DispatchOperationState
241   (in-module "Empathy")
242   (c-name "EmpathyDispatchOperationState")
243   (gtype-id "EMPATHY_TYPE_DISPATCH_OPERATION_STATE")
244   (values
245     '("preparing" "EMPATHY_DISPATCHER_OPERATION_STATE_PREPARING")
246     '("pending" "EMPATHY_DISPATCHER_OPERATION_STATE_PENDING")
247     '("approving" "EMPATHY_DISPATCHER_OPERATION_STATE_APPROVING")
248     '("dispatching" "EMPATHY_DISPATCHER_OPERATION_STATE_DISPATCHING")
249     '("claimed" "EMPATHY_DISPATCHER_OPERATION_STATE_CLAIMED")
250     '("invalidated" "EMPATHY_DISPATCHER_OPERATION_STATE_INVALIDATED")
251   )
252 )
253
254 (define-enum TpCallStatus
255   (in-module "Empathy")
256   (c-name "EmpathyTpCallStatus")
257   (gtype-id "EMPATHY_TYPE_TP_CALL_STATUS")
258   (values
259     '("readying" "EMPATHY_TP_CALL_STATUS_READYING")
260     '("pending" "EMPATHY_TP_CALL_STATUS_PENDING")
261     '("accepted" "EMPATHY_TP_CALL_STATUS_ACCEPTED")
262     '("closed" "EMPATHY_TP_CALL_STATUS_CLOSED")
263   )
264 )
265
266 (define-enum FTErrorEnum
267   (in-module "Empathy")
268   (c-name "EmpathyFTErrorEnum")
269   (gtype-id "EMPATHY_TYPE_FT_ERROR_ENUM")
270   (values
271     '("failed" "EMPATHY_FT_ERROR_FAILED")
272     '("hash-mismatch" "EMPATHY_FT_ERROR_HASH_MISMATCH")
273     '("tp-error" "EMPATHY_FT_ERROR_TP_ERROR")
274     '("socket" "EMPATHY_FT_ERROR_SOCKET")
275     '("not-supported" "EMPATHY_FT_ERROR_NOT_SUPPORTED")
276     '("invalid-source-file" "EMPATHY_FT_ERROR_INVALID_SOURCE_FILE")
277     '("empty-source-file" "EMPATHY_FT_ERROR_EMPTY_SOURCE_FILE")
278   )
279 )
280
281
282 ;; From empathy-account-manager.h
283
284 (define-function account_manager_get_type
285   (c-name "empathy_account_manager_get_type")
286   (return-type "GType")
287 )
288
289 (define-function account_manager_dup_singleton
290   (c-name "empathy_account_manager_dup_singleton")
291   (return-type "EmpathyAccountManager*")
292 )
293
294 (define-method is_ready
295   (of-object "EmpathyAccountManager")
296   (c-name "empathy_account_manager_is_ready")
297   (return-type "gboolean")
298 )
299
300 (define-method get_connected_accounts
301   (of-object "EmpathyAccountManager")
302   (c-name "empathy_account_manager_get_connected_accounts")
303   (return-type "int")
304 )
305
306 (define-method get_connecting_accounts
307   (of-object "EmpathyAccountManager")
308   (c-name "empathy_account_manager_get_connecting_accounts")
309   (return-type "int")
310 )
311
312 (define-method get_count
313   (of-object "EmpathyAccountManager")
314   (c-name "empathy_account_manager_get_count")
315   (return-type "int")
316 )
317
318 (define-method get_account_for_connection
319   (of-object "EmpathyAccountManager")
320   (c-name "empathy_account_manager_get_account_for_connection")
321   (return-type "EmpathyAccount*")
322   (parameters
323     '("TpConnection*" "connection")
324   )
325 )
326
327 (define-method get_account
328   (of-object "EmpathyAccountManager")
329   (c-name "empathy_account_manager_get_account")
330   (return-type "EmpathyAccount*")
331   (parameters
332     '("const-gchar*" "unique_name")
333   )
334 )
335
336 (define-method dup_accounts
337   (of-object "EmpathyAccountManager")
338   (c-name "empathy_account_manager_dup_accounts")
339   (return-type "GList*")
340 )
341
342 (define-method dup_connections
343   (of-object "EmpathyAccountManager")
344   (c-name "empathy_account_manager_dup_connections")
345   (return-type "GList*")
346 )
347
348 (define-method remove
349   (of-object "EmpathyAccountManager")
350   (c-name "empathy_account_manager_remove")
351   (return-type "none")
352   (parameters
353     '("EmpathyAccount*" "account")
354   )
355 )
356
357 (define-method request_global_presence
358   (of-object "EmpathyAccountManager")
359   (c-name "empathy_account_manager_request_global_presence")
360   (return-type "none")
361   (parameters
362     '("TpConnectionPresenceType" "type")
363     '("const-gchar*" "status")
364     '("const-gchar*" "message")
365   )
366 )
367
368 (define-method get_global_presence
369   (of-object "EmpathyAccountManager")
370   (c-name "empathy_account_manager_get_global_presence")
371   (return-type "TpConnectionPresenceType")
372   (parameters
373     '("gchar**" "status")
374     '("gchar**" "message")
375   )
376 )
377
378 (define-method create_account_async
379   (of-object "EmpathyAccountManager")
380   (c-name "empathy_account_manager_create_account_async")
381   (return-type "none")
382   (parameters
383     '("const-gchar*" "connection_manager")
384     '("const-gchar*" "protocol")
385     '("const-gchar*" "display_name")
386     '("GHashTable*" "parameters")
387     '("GHashTable*" "properties")
388     '("GAsyncReadyCallback" "callback")
389     '("gpointer" "user_data")
390   )
391 )
392
393 (define-method create_account_finish
394   (of-object "EmpathyAccountManager")
395   (c-name "empathy_account_manager_create_account_finish")
396   (return-type "EmpathyAccount*")
397   (parameters
398     '("GAsyncResult*" "result")
399     '("GError**" "error")
400   )
401 )
402
403
404
405 ;; From empathy-chatroom.h
406
407 (define-function chatroom_get_type
408   (c-name "empathy_chatroom_get_type")
409   (return-type "GType")
410 )
411
412 (define-function chatroom_new
413   (c-name "empathy_chatroom_new")
414   (is-constructor-of "EmpathyChatroom")
415   (return-type "EmpathyChatroom*")
416   (parameters
417     '("EmpathyAccount*" "account")
418   )
419 )
420
421 (define-function chatroom_new_full
422   (c-name "empathy_chatroom_new_full")
423   (return-type "EmpathyChatroom*")
424   (parameters
425     '("EmpathyAccount*" "account")
426     '("const-gchar*" "room")
427     '("const-gchar*" "name")
428     '("gboolean" "auto_connect")
429   )
430 )
431
432 (define-method get_account
433   (of-object "EmpathyChatroom")
434   (c-name "empathy_chatroom_get_account")
435   (return-type "EmpathyAccount*")
436 )
437
438 (define-method set_account
439   (of-object "EmpathyChatroom")
440   (c-name "empathy_chatroom_set_account")
441   (return-type "none")
442   (parameters
443     '("EmpathyAccount*" "account")
444   )
445 )
446
447 (define-method get_room
448   (of-object "EmpathyChatroom")
449   (c-name "empathy_chatroom_get_room")
450   (return-type "const-gchar*")
451 )
452
453 (define-method set_room
454   (of-object "EmpathyChatroom")
455   (c-name "empathy_chatroom_set_room")
456   (return-type "none")
457   (parameters
458     '("const-gchar*" "room")
459   )
460 )
461
462 (define-method get_name
463   (of-object "EmpathyChatroom")
464   (c-name "empathy_chatroom_get_name")
465   (return-type "const-gchar*")
466 )
467
468 (define-method set_name
469   (of-object "EmpathyChatroom")
470   (c-name "empathy_chatroom_set_name")
471   (return-type "none")
472   (parameters
473     '("const-gchar*" "name")
474   )
475 )
476
477 (define-method get_auto_connect
478   (of-object "EmpathyChatroom")
479   (c-name "empathy_chatroom_get_auto_connect")
480   (return-type "gboolean")
481 )
482
483 (define-method set_auto_connect
484   (of-object "EmpathyChatroom")
485   (c-name "empathy_chatroom_set_auto_connect")
486   (return-type "none")
487   (parameters
488     '("gboolean" "auto_connect")
489   )
490 )
491
492 (define-method get_subject
493   (of-object "EmpathyChatroom")
494   (c-name "empathy_chatroom_get_subject")
495   (return-type "const-gchar*")
496 )
497
498 (define-method set_subject
499   (of-object "EmpathyChatroom")
500   (c-name "empathy_chatroom_set_subject")
501   (return-type "none")
502   (parameters
503     '("const-gchar*" "subject")
504   )
505 )
506
507 (define-method get_members_count
508   (of-object "EmpathyChatroom")
509   (c-name "empathy_chatroom_get_members_count")
510   (return-type "guint")
511 )
512
513 (define-method set_members_count
514   (of-object "EmpathyChatroom")
515   (c-name "empathy_chatroom_set_members_count")
516   (return-type "none")
517   (parameters
518     '("guint" "count")
519   )
520 )
521
522 (define-method get_need_password
523   (of-object "EmpathyChatroom")
524   (c-name "empathy_chatroom_get_need_password")
525   (return-type "gboolean")
526 )
527
528 (define-method set_need_password
529   (of-object "EmpathyChatroom")
530   (c-name "empathy_chatroom_set_need_password")
531   (return-type "none")
532   (parameters
533     '("gboolean" "need_password")
534   )
535 )
536
537 (define-method get_invite_only
538   (of-object "EmpathyChatroom")
539   (c-name "empathy_chatroom_get_invite_only")
540   (return-type "gboolean")
541 )
542
543 (define-method set_invite_only
544   (of-object "EmpathyChatroom")
545   (c-name "empathy_chatroom_set_invite_only")
546   (return-type "none")
547   (parameters
548     '("gboolean" "invite_only")
549   )
550 )
551
552 (define-function chatroom_equal
553   (c-name "empathy_chatroom_equal")
554   (return-type "gboolean")
555   (parameters
556     '("gconstpointer" "v1")
557     '("gconstpointer" "v2")
558   )
559 )
560
561 (define-method get_tp_chat
562   (of-object "EmpathyChatroom")
563   (c-name "empathy_chatroom_get_tp_chat")
564   (return-type "EmpathyTpChat*")
565 )
566
567 (define-method set_tp_chat
568   (of-object "EmpathyChatroom")
569   (c-name "empathy_chatroom_set_tp_chat")
570   (return-type "none")
571   (parameters
572     '("EmpathyTpChat*" "tp_chat")
573   )
574 )
575
576 (define-method is_favorite
577   (of-object "EmpathyChatroom")
578   (c-name "empathy_chatroom_is_favorite")
579   (return-type "gboolean")
580 )
581
582 (define-method set_favorite
583   (of-object "EmpathyChatroom")
584   (c-name "empathy_chatroom_set_favorite")
585   (return-type "none")
586   (parameters
587     '("gboolean" "favorite")
588   )
589 )
590
591
592
593 ;; From empathy-chatroom-manager.h
594
595 (define-function chatroom_manager_get_type
596   (c-name "empathy_chatroom_manager_get_type")
597   (return-type "GType")
598 )
599
600 (define-function chatroom_manager_dup_singleton
601   (c-name "empathy_chatroom_manager_dup_singleton")
602   (return-type "EmpathyChatroomManager*")
603   (parameters
604     '("const-gchar*" "file")
605   )
606 )
607
608 (define-method add
609   (of-object "EmpathyChatroomManager")
610   (c-name "empathy_chatroom_manager_add")
611   (return-type "gboolean")
612   (parameters
613     '("EmpathyChatroom*" "chatroom")
614   )
615 )
616
617 (define-method remove
618   (of-object "EmpathyChatroomManager")
619   (c-name "empathy_chatroom_manager_remove")
620   (return-type "none")
621   (parameters
622     '("EmpathyChatroom*" "chatroom")
623   )
624 )
625
626 (define-method find
627   (of-object "EmpathyChatroomManager")
628   (c-name "empathy_chatroom_manager_find")
629   (return-type "EmpathyChatroom*")
630   (parameters
631     '("EmpathyAccount*" "account")
632     '("const-gchar*" "room")
633   )
634 )
635
636 (define-method get_chatrooms
637   (of-object "EmpathyChatroomManager")
638   (c-name "empathy_chatroom_manager_get_chatrooms")
639   (return-type "GList*")
640   (parameters
641     '("EmpathyAccount*" "account")
642   )
643 )
644
645 (define-method get_count
646   (of-object "EmpathyChatroomManager")
647   (c-name "empathy_chatroom_manager_get_count")
648   (return-type "guint")
649   (parameters
650     '("EmpathyAccount*" "account")
651   )
652 )
653
654 (define-method observe
655   (of-object "EmpathyChatroomManager")
656   (c-name "empathy_chatroom_manager_observe")
657   (return-type "none")
658   (parameters
659     '("EmpathyDispatcher*" "dispatcher")
660   )
661 )
662
663
664
665 ;; From empathy-call-factory.h
666
667 (define-function call_factory_get_type
668   (c-name "empathy_call_factory_get_type")
669   (return-type "GType")
670 )
671
672 (define-function call_factory_initialise
673   (c-name "empathy_call_factory_initialise")
674   (return-type "EmpathyCallFactory*")
675 )
676
677 (define-function call_factory_get
678   (c-name "empathy_call_factory_get")
679   (return-type "EmpathyCallFactory*")
680 )
681
682 (define-method new_call
683   (of-object "EmpathyCallFactory")
684   (c-name "empathy_call_factory_new_call")
685   (return-type "none")
686   (parameters
687     '("EmpathyContact*" "contact")
688   )
689 )
690
691 (define-method new_call_with_streams
692   (of-object "EmpathyCallFactory")
693   (c-name "empathy_call_factory_new_call_with_streams")
694   (return-type "none")
695   (parameters
696     '("EmpathyContact*" "contact")
697     '("gboolean" "initial_audio")
698     '("gboolean" "initial_video")
699   )
700 )
701
702 (define-method claim_channel
703   (of-object "EmpathyCallFactory")
704   (c-name "empathy_call_factory_claim_channel")
705   (return-type "none")
706   (parameters
707     '("EmpathyDispatchOperation*" "operation")
708   )
709 )
710
711
712
713 ;; From empathy-call-handler.h
714
715 (define-function call_handler_get_type
716   (c-name "empathy_call_handler_get_type")
717   (return-type "GType")
718 )
719
720 (define-function call_handler_new_for_contact
721   (c-name "empathy_call_handler_new_for_contact")
722   (return-type "EmpathyCallHandler*")
723   (parameters
724     '("EmpathyContact*" "contact")
725   )
726 )
727
728 (define-function call_handler_new_for_contact_with_streams
729   (c-name "empathy_call_handler_new_for_contact_with_streams")
730   (return-type "EmpathyCallHandler*")
731   (parameters
732     '("EmpathyContact*" "contact")
733     '("gboolean" "audio")
734     '("gboolean" "video")
735   )
736 )
737
738 (define-function call_handler_new_for_channel
739   (c-name "empathy_call_handler_new_for_channel")
740   (return-type "EmpathyCallHandler*")
741   (parameters
742     '("EmpathyTpCall*" "call")
743   )
744 )
745
746 (define-method start_call
747   (of-object "EmpathyCallHandler")
748   (c-name "empathy_call_handler_start_call")
749   (return-type "none")
750 )
751
752 (define-method stop_call
753   (of-object "EmpathyCallHandler")
754   (c-name "empathy_call_handler_stop_call")
755   (return-type "none")
756 )
757
758 (define-method has_initial_video
759   (of-object "EmpathyCallHandler")
760   (c-name "empathy_call_handler_has_initial_video")
761   (return-type "gboolean")
762 )
763
764 (define-method bus_message
765   (of-object "EmpathyCallHandler")
766   (c-name "empathy_call_handler_bus_message")
767   (return-type "none")
768   (parameters
769     '("GstBus*" "bus")
770     '("GstMessage*" "message")
771   )
772 )
773
774
775
776 ;; From empathy-contact.h
777
778 (define-function contact_get_type
779   (c-name "empathy_contact_get_type")
780   (return-type "GType")
781 )
782
783 (define-function contact_new
784   (c-name "empathy_contact_new")
785   (is-constructor-of "EmpathyContact")
786   (return-type "EmpathyContact*")
787   (parameters
788     '("TpContact*" "tp_contact")
789   )
790 )
791
792 (define-function contact_new_for_log
793   (c-name "empathy_contact_new_for_log")
794   (return-type "EmpathyContact*")
795   (parameters
796     '("EmpathyAccount*" "account")
797     '("const-gchar*" "id")
798     '("const-gchar*" "name")
799     '("gboolean" "is_user")
800   )
801 )
802
803 (define-method get_tp_contact
804   (of-object "EmpathyContact")
805   (c-name "empathy_contact_get_tp_contact")
806   (return-type "TpContact*")
807 )
808
809 (define-method get_id
810   (of-object "EmpathyContact")
811   (c-name "empathy_contact_get_id")
812   (return-type "const-gchar*")
813 )
814
815 (define-method set_id
816   (of-object "EmpathyContact")
817   (c-name "empathy_contact_set_id")
818   (return-type "none")
819   (parameters
820     '("const-gchar*" "id")
821   )
822 )
823
824 (define-method get_name
825   (of-object "EmpathyContact")
826   (c-name "empathy_contact_get_name")
827   (return-type "const-gchar*")
828 )
829
830 (define-method set_name
831   (of-object "EmpathyContact")
832   (c-name "empathy_contact_set_name")
833   (return-type "none")
834   (parameters
835     '("const-gchar*" "name")
836   )
837 )
838
839 (define-method get_avatar
840   (of-object "EmpathyContact")
841   (c-name "empathy_contact_get_avatar")
842   (return-type "EmpathyAvatar*")
843 )
844
845 (define-method set_avatar
846   (of-object "EmpathyContact")
847   (c-name "empathy_contact_set_avatar")
848   (return-type "none")
849   (parameters
850     '("EmpathyAvatar*" "avatar")
851   )
852 )
853
854 (define-method get_account
855   (of-object "EmpathyContact")
856   (c-name "empathy_contact_get_account")
857   (return-type "EmpathyAccount*")
858 )
859
860 (define-method get_connection
861   (of-object "EmpathyContact")
862   (c-name "empathy_contact_get_connection")
863   (return-type "TpConnection*")
864 )
865
866 (define-method get_presence
867   (of-object "EmpathyContact")
868   (c-name "empathy_contact_get_presence")
869   (return-type "TpConnectionPresenceType")
870 )
871
872 (define-method set_presence
873   (of-object "EmpathyContact")
874   (c-name "empathy_contact_set_presence")
875   (return-type "none")
876   (parameters
877     '("TpConnectionPresenceType" "presence")
878   )
879 )
880
881 (define-method get_presence_message
882   (of-object "EmpathyContact")
883   (c-name "empathy_contact_get_presence_message")
884   (return-type "const-gchar*")
885 )
886
887 (define-method set_presence_message
888   (of-object "EmpathyContact")
889   (c-name "empathy_contact_set_presence_message")
890   (return-type "none")
891   (parameters
892     '("const-gchar*" "message")
893   )
894 )
895
896 (define-method get_handle
897   (of-object "EmpathyContact")
898   (c-name "empathy_contact_get_handle")
899   (return-type "guint")
900 )
901
902 (define-method set_handle
903   (of-object "EmpathyContact")
904   (c-name "empathy_contact_set_handle")
905   (return-type "none")
906   (parameters
907     '("guint" "handle")
908   )
909 )
910
911 (define-method get_capabilities
912   (of-object "EmpathyContact")
913   (c-name "empathy_contact_get_capabilities")
914   (return-type "EmpathyCapabilities")
915 )
916
917 (define-method set_capabilities
918   (of-object "EmpathyContact")
919   (c-name "empathy_contact_set_capabilities")
920   (return-type "none")
921   (parameters
922     '("EmpathyCapabilities" "capabilities")
923   )
924 )
925
926 (define-method is_user
927   (of-object "EmpathyContact")
928   (c-name "empathy_contact_is_user")
929   (return-type "gboolean")
930 )
931
932 (define-method set_is_user
933   (of-object "EmpathyContact")
934   (c-name "empathy_contact_set_is_user")
935   (return-type "none")
936   (parameters
937     '("gboolean" "is_user")
938   )
939 )
940
941 (define-method is_online
942   (of-object "EmpathyContact")
943   (c-name "empathy_contact_is_online")
944   (return-type "gboolean")
945 )
946
947 (define-method get_status
948   (of-object "EmpathyContact")
949   (c-name "empathy_contact_get_status")
950   (return-type "const-gchar*")
951 )
952
953 (define-method can_voip
954   (of-object "EmpathyContact")
955   (c-name "empathy_contact_can_voip")
956   (return-type "gboolean")
957 )
958
959 (define-method can_voip_audio
960   (of-object "EmpathyContact")
961   (c-name "empathy_contact_can_voip_audio")
962   (return-type "gboolean")
963 )
964
965 (define-method can_voip_video
966   (of-object "EmpathyContact")
967   (c-name "empathy_contact_can_voip_video")
968   (return-type "gboolean")
969 )
970
971 (define-method can_send_files
972   (of-object "EmpathyContact")
973   (c-name "empathy_contact_can_send_files")
974   (return-type "gboolean")
975 )
976
977 (define-method can_use_stream_tube
978   (of-object "EmpathyContact")
979   (c-name "empathy_contact_can_use_stream_tube")
980   (return-type "gboolean")
981 )
982
983 (define-function contact_hash
984   (c-name "empathy_contact_hash")
985   (return-type "guint")
986   (parameters
987     '("gconstpointer" "key")
988   )
989 )
990
991 (define-method load_avatar_data
992   (of-object "EmpathyContact")
993   (c-name "empathy_contact_load_avatar_data")
994   (return-type "none")
995   (parameters
996     '("const-guchar*" "data")
997     '("const-gsize" "len")
998     '("const-gchar*" "format")
999     '("const-gchar*" "token")
1000   )
1001 )
1002
1003 (define-method load_avatar_cache
1004   (of-object "EmpathyContact")
1005   (c-name "empathy_contact_load_avatar_cache")
1006   (return-type "gboolean")
1007   (parameters
1008     '("const-gchar*" "token")
1009   )
1010 )
1011
1012 (define-function avatar_get_type
1013   (c-name "empathy_avatar_get_type")
1014   (return-type "GType")
1015 )
1016
1017 (define-function avatar_new
1018   (c-name "empathy_avatar_new")
1019   (is-constructor-of "EmpathyAvatar")
1020   (return-type "EmpathyAvatar*")
1021   (parameters
1022     '("guchar*" "data")
1023     '("gsize" "len")
1024     '("gchar*" "format")
1025     '("gchar*" "token")
1026     '("gchar*" "filename")
1027   )
1028 )
1029
1030 (define-method ref
1031   (of-object "EmpathyAvatar")
1032   (c-name "empathy_avatar_ref")
1033   (return-type "EmpathyAvatar*")
1034 )
1035
1036 (define-method unref
1037   (of-object "EmpathyAvatar")
1038   (c-name "empathy_avatar_unref")
1039   (return-type "none")
1040 )
1041
1042 (define-method save_to_file
1043   (of-object "EmpathyAvatar")
1044   (c-name "empathy_avatar_save_to_file")
1045   (return-type "gboolean")
1046   (parameters
1047     '("const-gchar*" "filename")
1048     '("GError**" "error")
1049   )
1050 )
1051
1052 (define-method get_location
1053   (of-object "EmpathyContact")
1054   (c-name "empathy_contact_get_location")
1055   (return-type "GHashTable*")
1056 )
1057
1058 (define-method set_location
1059   (of-object "EmpathyContact")
1060   (c-name "empathy_contact_set_location")
1061   (return-type "none")
1062   (parameters
1063     '("GHashTable*" "location")
1064   )
1065 )
1066
1067 (define-function contact_equal
1068   (c-name "empathy_contact_equal")
1069   (return-type "gboolean")
1070   (parameters
1071     '("gconstpointer" "contact1")
1072     '("gconstpointer" "contact2")
1073   )
1074 )
1075
1076
1077
1078 ;; From empathy-contact-groups.h
1079
1080 (define-function contact_groups_get_all
1081   (c-name "empathy_contact_groups_get_all")
1082   (return-type "none")
1083 )
1084
1085 (define-function contact_group_get_expanded
1086   (c-name "empathy_contact_group_get_expanded")
1087   (return-type "gboolean")
1088   (parameters
1089     '("const-gchar*" "group")
1090   )
1091 )
1092
1093 (define-function contact_group_set_expanded
1094   (c-name "empathy_contact_group_set_expanded")
1095   (return-type "none")
1096   (parameters
1097     '("const-gchar*" "group")
1098     '("gboolean" "expanded")
1099   )
1100 )
1101
1102
1103
1104 ;; From empathy-contact-list.h
1105
1106 (define-function contact_list_get_type
1107   (c-name "empathy_contact_list_get_type")
1108   (return-type "GType")
1109 )
1110
1111 (define-method add
1112   (of-object "EmpathyContactList")
1113   (c-name "empathy_contact_list_add")
1114   (return-type "none")
1115   (parameters
1116     '("EmpathyContact*" "contact")
1117     '("const-gchar*" "message")
1118   )
1119 )
1120
1121 (define-method remove
1122   (of-object "EmpathyContactList")
1123   (c-name "empathy_contact_list_remove")
1124   (return-type "none")
1125   (parameters
1126     '("EmpathyContact*" "contact")
1127     '("const-gchar*" "message")
1128   )
1129 )
1130
1131 (define-method get_members
1132   (of-object "EmpathyContactList")
1133   (c-name "empathy_contact_list_get_members")
1134   (return-type "GList*")
1135 )
1136
1137 (define-method get_pendings
1138   (of-object "EmpathyContactList")
1139   (c-name "empathy_contact_list_get_pendings")
1140   (return-type "GList*")
1141 )
1142
1143 (define-method get_all_groups
1144   (of-object "EmpathyContactList")
1145   (c-name "empathy_contact_list_get_all_groups")
1146   (return-type "GList*")
1147 )
1148
1149 (define-method get_groups
1150   (of-object "EmpathyContactList")
1151   (c-name "empathy_contact_list_get_groups")
1152   (return-type "GList*")
1153   (parameters
1154     '("EmpathyContact*" "contact")
1155   )
1156 )
1157
1158 (define-method add_to_group
1159   (of-object "EmpathyContactList")
1160   (c-name "empathy_contact_list_add_to_group")
1161   (return-type "none")
1162   (parameters
1163     '("EmpathyContact*" "contact")
1164     '("const-gchar*" "group")
1165   )
1166 )
1167
1168 (define-method remove_from_group
1169   (of-object "EmpathyContactList")
1170   (c-name "empathy_contact_list_remove_from_group")
1171   (return-type "none")
1172   (parameters
1173     '("EmpathyContact*" "contact")
1174     '("const-gchar*" "group")
1175   )
1176 )
1177
1178 (define-method rename_group
1179   (of-object "EmpathyContactList")
1180   (c-name "empathy_contact_list_rename_group")
1181   (return-type "none")
1182   (parameters
1183     '("const-gchar*" "old_group")
1184     '("const-gchar*" "new_group")
1185   )
1186 )
1187
1188 (define-method remove_group
1189   (of-object "EmpathyContactList")
1190   (c-name "empathy_contact_list_remove_group")
1191   (return-type "none")
1192   (parameters
1193     '("const-gchar*" "group")
1194   )
1195 )
1196
1197 (define-method get_monitor
1198   (of-object "EmpathyContactList")
1199   (c-name "empathy_contact_list_get_monitor")
1200   (return-type "EmpathyContactMonitor*")
1201 )
1202
1203 (define-method get_flags
1204   (of-object "EmpathyContactList")
1205   (c-name "empathy_contact_list_get_flags")
1206   (return-type "EmpathyContactListFlags")
1207 )
1208
1209
1210
1211 ;; From empathy-contact-manager.h
1212
1213 (define-function contact_manager_get_type
1214   (c-name "empathy_contact_manager_get_type")
1215   (return-type "GType")
1216 )
1217
1218 (define-function contact_manager_initialized
1219   (c-name "empathy_contact_manager_initialized")
1220   (return-type "gboolean")
1221 )
1222
1223 (define-function contact_manager_dup_singleton
1224   (c-name "empathy_contact_manager_dup_singleton")
1225   (return-type "EmpathyContactManager*")
1226 )
1227
1228 (define-method get_list
1229   (of-object "EmpathyContactManager")
1230   (c-name "empathy_contact_manager_get_list")
1231   (return-type "EmpathyTpContactList*")
1232   (parameters
1233     '("TpConnection*" "connection")
1234   )
1235 )
1236
1237 (define-method get_flags_for_connection
1238   (of-object "EmpathyContactManager")
1239   (c-name "empathy_contact_manager_get_flags_for_connection")
1240   (return-type "EmpathyContactListFlags")
1241   (parameters
1242     '("TpConnection*" "connection")
1243   )
1244 )
1245
1246
1247
1248 ;; From empathy-contact-monitor.h
1249
1250 (define-function contact_monitor_get_type
1251   (c-name "empathy_contact_monitor_get_type")
1252   (return-type "GType")
1253 )
1254
1255 (define-method set_iface
1256   (of-object "EmpathyContactMonitor")
1257   (c-name "empathy_contact_monitor_set_iface")
1258   (return-type "none")
1259   (parameters
1260     '("EmpathyContactList*" "iface")
1261   )
1262 )
1263
1264 (define-function contact_monitor_new_for_iface
1265   (c-name "empathy_contact_monitor_new_for_iface")
1266   (return-type "EmpathyContactMonitor*")
1267   (parameters
1268     '("EmpathyContactList*" "iface")
1269   )
1270 )
1271
1272
1273
1274 ;; From empathy-debug.h
1275
1276 (define-function debug_flag_is_set
1277   (c-name "empathy_debug_flag_is_set")
1278   (return-type "gboolean")
1279   (parameters
1280     '("EmpathyDebugFlags" "flag")
1281   )
1282 )
1283
1284 (define-function debug
1285   (c-name "empathy_debug")
1286   (return-type "none")
1287   (parameters
1288     '("EmpathyDebugFlags" "flag")
1289     '("const-gchar*" "format")
1290   )
1291   (varargs #t)
1292 )
1293
1294 (define-function debug_free
1295   (c-name "empathy_debug_free")
1296   (return-type "none")
1297 )
1298
1299 (define-function debug_set_flags
1300   (c-name "empathy_debug_set_flags")
1301   (return-type "none")
1302   (parameters
1303     '("const-gchar*" "flags_string")
1304   )
1305 )
1306
1307
1308
1309 ;; From empathy-dispatcher.h
1310
1311 (define-function dispatcher_get_type
1312   (c-name "empathy_dispatcher_get_type")
1313   (return-type "GType")
1314 )
1315
1316 (define-method create_channel
1317   (of-object "EmpathyDispatcher")
1318   (c-name "empathy_dispatcher_create_channel")
1319   (return-type "none")
1320   (parameters
1321     '("TpConnection*" "connection")
1322     '("GHashTable*" "request")
1323     '("EmpathyDispatcherRequestCb*" "callback")
1324     '("gpointer" "user_data")
1325   )
1326 )
1327
1328 (define-function dispatcher_chat_with_contact_id
1329   (c-name "empathy_dispatcher_chat_with_contact_id")
1330   (return-type "none")
1331   (parameters
1332     '("TpConnection*" "connection")
1333     '("const-gchar*" "contact_id")
1334     '("EmpathyDispatcherRequestCb*" "callback")
1335     '("gpointer" "user_data")
1336   )
1337 )
1338
1339 (define-function dispatcher_chat_with_contact
1340   (c-name "empathy_dispatcher_chat_with_contact")
1341   (return-type "none")
1342   (parameters
1343     '("EmpathyContact*" "contact")
1344     '("EmpathyDispatcherRequestCb*" "callback")
1345     '("gpointer" "user_data")
1346   )
1347 )
1348
1349 (define-function dispatcher_send_file_to_contact
1350   (c-name "empathy_dispatcher_send_file_to_contact")
1351   (return-type "none")
1352   (parameters
1353     '("EmpathyContact*" "contact")
1354     '("const-gchar*" "filename")
1355     '("guint64" "size")
1356     '("guint64" "date")
1357     '("const-gchar*" "content_type")
1358     '("EmpathyDispatcherRequestCb*" "callback")
1359     '("gpointer" "user_data")
1360   )
1361 )
1362
1363 (define-function dispatcher_join_muc
1364   (c-name "empathy_dispatcher_join_muc")
1365   (return-type "none")
1366   (parameters
1367     '("TpConnection*" "connection")
1368     '("const-gchar*" "roomname")
1369     '("EmpathyDispatcherRequestCb*" "callback")
1370     '("gpointer" "user_data")
1371   )
1372 )
1373
1374 (define-method find_requestable_channel_classes_async
1375   (of-object "EmpathyDispatcher")
1376   (c-name "empathy_dispatcher_find_requestable_channel_classes_async")
1377   (return-type "none")
1378   (parameters
1379     '("TpConnection*" "connection")
1380     '("const-gchar*" "channel_type")
1381     '("guint" "handle_type")
1382     '("EmpathyDispatcherFindChannelClassCb" "callback")
1383     '("gpointer" "user_data")
1384     '("const-char*" "first_property_name")
1385   )
1386   (varargs #t)
1387 )
1388
1389 (define-method find_requestable_channel_classes
1390   (of-object "EmpathyDispatcher")
1391   (c-name "empathy_dispatcher_find_requestable_channel_classes")
1392   (return-type "GList*")
1393   (parameters
1394     '("TpConnection*" "connection")
1395     '("const-gchar*" "channel_type")
1396     '("guint" "handle_type")
1397     '("const-char*" "first_property_name")
1398   )
1399   (varargs #t)
1400 )
1401
1402 (define-function dispatcher_dup_singleton
1403   (c-name "empathy_dispatcher_dup_singleton")
1404   (return-type "EmpathyDispatcher*")
1405 )
1406
1407
1408
1409 ;; From empathy-dispatch-operation.h
1410
1411 (define-function dispatch_operation_get_type
1412   (c-name "empathy_dispatch_operation_get_type")
1413   (return-type "GType")
1414 )
1415
1416 (define-function dispatch_operation_new
1417   (c-name "empathy_dispatch_operation_new")
1418   (is-constructor-of "EmpathyDispatchOperation")
1419   (return-type "EmpathyDispatchOperation*")
1420   (parameters
1421     '("TpConnection*" "connection")
1422     '("TpChannel*" "channel")
1423     '("EmpathyContact*" "contact")
1424     '("gboolean" "incoming")
1425   )
1426 )
1427
1428 (define-function dispatch_operation_new_with_wrapper
1429   (c-name "empathy_dispatch_operation_new_with_wrapper")
1430   (return-type "EmpathyDispatchOperation*")
1431   (parameters
1432     '("TpConnection*" "connection")
1433     '("TpChannel*" "channel")
1434     '("EmpathyContact*" "contact")
1435     '("gboolean" "incoming")
1436     '("GObject*" "channel_wrapper")
1437   )
1438 )
1439
1440 (define-method start
1441   (of-object "EmpathyDispatchOperation")
1442   (c-name "empathy_dispatch_operation_start")
1443   (return-type "none")
1444 )
1445
1446 (define-method approve
1447   (of-object "EmpathyDispatchOperation")
1448   (c-name "empathy_dispatch_operation_approve")
1449   (return-type "none")
1450 )
1451
1452 (define-method claim
1453   (of-object "EmpathyDispatchOperation")
1454   (c-name "empathy_dispatch_operation_claim")
1455   (return-type "gboolean")
1456 )
1457
1458 (define-method get_channel
1459   (of-object "EmpathyDispatchOperation")
1460   (c-name "empathy_dispatch_operation_get_channel")
1461   (return-type "TpChannel*")
1462 )
1463
1464 (define-method get_channel_wrapper
1465   (of-object "EmpathyDispatchOperation")
1466   (c-name "empathy_dispatch_operation_get_channel_wrapper")
1467   (return-type "GObject*")
1468 )
1469
1470 (define-method get_tp_connection
1471   (of-object "EmpathyDispatchOperation")
1472   (c-name "empathy_dispatch_operation_get_tp_connection")
1473   (return-type "TpConnection*")
1474 )
1475
1476 (define-method get_channel_type
1477   (of-object "EmpathyDispatchOperation")
1478   (c-name "empathy_dispatch_operation_get_channel_type")
1479   (return-type "const-gchar*")
1480 )
1481
1482 (define-method get_channel_type_id
1483   (of-object "EmpathyDispatchOperation")
1484   (c-name "empathy_dispatch_operation_get_channel_type_id")
1485   (return-type "GQuark")
1486 )
1487
1488 (define-method get_object_path
1489   (of-object "EmpathyDispatchOperation")
1490   (c-name "empathy_dispatch_operation_get_object_path")
1491   (return-type "const-gchar*")
1492 )
1493
1494 (define-method get_status
1495   (of-object "EmpathyDispatchOperation")
1496   (c-name "empathy_dispatch_operation_get_status")
1497   (return-type "EmpathyDispatchOperationState")
1498 )
1499
1500 (define-method is_incoming
1501   (of-object "EmpathyDispatchOperation")
1502   (c-name "empathy_dispatch_operation_is_incoming")
1503   (return-type "gboolean")
1504 )
1505
1506
1507
1508 ;; From empathy-ft-factory.h
1509
1510 (define-function ft_factory_get_type
1511   (c-name "empathy_ft_factory_get_type")
1512   (return-type "GType")
1513 )
1514
1515 (define-function ft_factory_dup_singleton
1516   (c-name "empathy_ft_factory_dup_singleton")
1517   (return-type "EmpathyFTFactory*")
1518 )
1519
1520 (define-method new_transfer_outgoing
1521   (of-object "EmpathyFTFactory")
1522   (c-name "empathy_ft_factory_new_transfer_outgoing")
1523   (return-type "none")
1524   (parameters
1525     '("EmpathyContact*" "contact")
1526     '("GFile*" "source")
1527   )
1528 )
1529
1530 (define-method claim_channel
1531   (of-object "EmpathyFTFactory")
1532   (c-name "empathy_ft_factory_claim_channel")
1533   (return-type "none")
1534   (parameters
1535     '("EmpathyDispatchOperation*" "operation")
1536   )
1537 )
1538
1539 (define-method set_destination_for_incoming_handler
1540   (of-object "EmpathyFTFactory")
1541   (c-name "empathy_ft_factory_set_destination_for_incoming_handler")
1542   (return-type "none")
1543   (parameters
1544     '("EmpathyFTHandler*" "handler")
1545     '("GFile*" "destination")
1546   )
1547 )
1548
1549
1550
1551 ;; From empathy-ft-handler.h
1552
1553 (define-function ft_handler_get_type
1554   (c-name "empathy_ft_handler_get_type")
1555   (return-type "GType")
1556 )
1557
1558 (define-function ft_handler_new_outgoing
1559   (c-name "empathy_ft_handler_new_outgoing")
1560   (return-type "none")
1561   (parameters
1562     '("EmpathyContact*" "contact")
1563     '("GFile*" "source")
1564     '("EmpathyFTHandlerReadyCallback" "callback")
1565     '("gpointer" "user_data")
1566   )
1567 )
1568
1569 (define-function ft_handler_new_incoming
1570   (c-name "empathy_ft_handler_new_incoming")
1571   (return-type "none")
1572   (parameters
1573     '("EmpathyTpFile*" "tp_file")
1574     '("EmpathyFTHandlerReadyCallback" "callback")
1575     '("gpointer" "user_data")
1576   )
1577 )
1578
1579 (define-method incoming_set_destination
1580   (of-object "EmpathyFTHandler")
1581   (c-name "empathy_ft_handler_incoming_set_destination")
1582   (return-type "none")
1583   (parameters
1584     '("GFile*" "destination")
1585   )
1586 )
1587
1588 (define-method start_transfer
1589   (of-object "EmpathyFTHandler")
1590   (c-name "empathy_ft_handler_start_transfer")
1591   (return-type "none")
1592 )
1593
1594 (define-method cancel_transfer
1595   (of-object "EmpathyFTHandler")
1596   (c-name "empathy_ft_handler_cancel_transfer")
1597   (return-type "none")
1598 )
1599
1600 (define-method get_filename
1601   (of-object "EmpathyFTHandler")
1602   (c-name "empathy_ft_handler_get_filename")
1603   (return-type "const-char*")
1604 )
1605
1606 (define-method get_content_type
1607   (of-object "EmpathyFTHandler")
1608   (c-name "empathy_ft_handler_get_content_type")
1609   (return-type "const-char*")
1610 )
1611
1612 (define-method get_contact
1613   (of-object "EmpathyFTHandler")
1614   (c-name "empathy_ft_handler_get_contact")
1615   (return-type "EmpathyContact*")
1616 )
1617
1618 (define-method get_gfile
1619   (of-object "EmpathyFTHandler")
1620   (c-name "empathy_ft_handler_get_gfile")
1621   (return-type "GFile*")
1622 )
1623
1624 (define-method get_use_hash
1625   (of-object "EmpathyFTHandler")
1626   (c-name "empathy_ft_handler_get_use_hash")
1627   (return-type "gboolean")
1628 )
1629
1630 (define-method is_incoming
1631   (of-object "EmpathyFTHandler")
1632   (c-name "empathy_ft_handler_is_incoming")
1633   (return-type "gboolean")
1634 )
1635
1636 (define-method get_transferred_bytes
1637   (of-object "EmpathyFTHandler")
1638   (c-name "empathy_ft_handler_get_transferred_bytes")
1639   (return-type "guint64")
1640 )
1641
1642 (define-method get_total_bytes
1643   (of-object "EmpathyFTHandler")
1644   (c-name "empathy_ft_handler_get_total_bytes")
1645   (return-type "guint64")
1646 )
1647
1648 (define-method is_completed
1649   (of-object "EmpathyFTHandler")
1650   (c-name "empathy_ft_handler_is_completed")
1651   (return-type "gboolean")
1652 )
1653
1654 (define-method is_cancelled
1655   (of-object "EmpathyFTHandler")
1656   (c-name "empathy_ft_handler_is_cancelled")
1657   (return-type "gboolean")
1658 )
1659
1660
1661
1662 ;; From empathy-idle.h
1663
1664 (define-function idle_get_type
1665   (c-name "empathy_idle_get_type")
1666   (return-type "GType")
1667 )
1668
1669 (define-function idle_dup_singleton
1670   (c-name "empathy_idle_dup_singleton")
1671   (return-type "EmpathyIdle*")
1672 )
1673
1674 (define-method get_state
1675   (of-object "EmpathyIdle")
1676   (c-name "empathy_idle_get_state")
1677   (return-type "TpConnectionPresenceType")
1678 )
1679
1680 (define-method set_state
1681   (of-object "EmpathyIdle")
1682   (c-name "empathy_idle_set_state")
1683   (return-type "none")
1684   (parameters
1685     '("TpConnectionPresenceType" "state")
1686   )
1687 )
1688
1689 (define-method get_status
1690   (of-object "EmpathyIdle")
1691   (c-name "empathy_idle_get_status")
1692   (return-type "const-gchar*")
1693 )
1694
1695 (define-method set_status
1696   (of-object "EmpathyIdle")
1697   (c-name "empathy_idle_set_status")
1698   (return-type "none")
1699   (parameters
1700     '("const-gchar*" "status")
1701   )
1702 )
1703
1704 (define-method get_flash_state
1705   (of-object "EmpathyIdle")
1706   (c-name "empathy_idle_get_flash_state")
1707   (return-type "TpConnectionPresenceType")
1708 )
1709
1710 (define-method set_flash_state
1711   (of-object "EmpathyIdle")
1712   (c-name "empathy_idle_set_flash_state")
1713   (return-type "none")
1714   (parameters
1715     '("TpConnectionPresenceType" "state")
1716   )
1717 )
1718
1719 (define-method set_presence
1720   (of-object "EmpathyIdle")
1721   (c-name "empathy_idle_set_presence")
1722   (return-type "none")
1723   (parameters
1724     '("TpConnectionPresenceType" "state")
1725     '("const-gchar*" "status")
1726   )
1727 )
1728
1729 (define-method get_auto_away
1730   (of-object "EmpathyIdle")
1731   (c-name "empathy_idle_get_auto_away")
1732   (return-type "gboolean")
1733 )
1734
1735 (define-method set_auto_away
1736   (of-object "EmpathyIdle")
1737   (c-name "empathy_idle_set_auto_away")
1738   (return-type "none")
1739   (parameters
1740     '("gboolean" "auto_away")
1741   )
1742 )
1743
1744
1745
1746 ;; From empathy-irc-network.h
1747
1748 (define-function irc_network_get_type
1749   (c-name "empathy_irc_network_get_type")
1750   (return-type "GType")
1751 )
1752
1753 (define-function irc_network_new
1754   (c-name "empathy_irc_network_new")
1755   (is-constructor-of "EmpathyIrcNetwork")
1756   (return-type "EmpathyIrcNetwork*")
1757   (parameters
1758     '("const-gchar*" "name")
1759   )
1760 )
1761
1762 (define-method get_servers
1763   (of-object "EmpathyIrcNetwork")
1764   (c-name "empathy_irc_network_get_servers")
1765   (return-type "GSList*")
1766 )
1767
1768 (define-method append_server
1769   (of-object "EmpathyIrcNetwork")
1770   (c-name "empathy_irc_network_append_server")
1771   (return-type "none")
1772   (parameters
1773     '("EmpathyIrcServer*" "server")
1774   )
1775 )
1776
1777 (define-method remove_server
1778   (of-object "EmpathyIrcNetwork")
1779   (c-name "empathy_irc_network_remove_server")
1780   (return-type "none")
1781   (parameters
1782     '("EmpathyIrcServer*" "server")
1783   )
1784 )
1785
1786 (define-method set_server_position
1787   (of-object "EmpathyIrcNetwork")
1788   (c-name "empathy_irc_network_set_server_position")
1789   (return-type "none")
1790   (parameters
1791     '("EmpathyIrcServer*" "server")
1792     '("gint" "pos")
1793   )
1794 )
1795
1796
1797
1798 ;; From empathy-irc-network-manager.h
1799
1800 (define-function irc_network_manager_get_type
1801   (c-name "empathy_irc_network_manager_get_type")
1802   (return-type "GType")
1803 )
1804
1805 (define-function irc_network_manager_new
1806   (c-name "empathy_irc_network_manager_new")
1807   (is-constructor-of "EmpathyIrcNetworkManager")
1808   (return-type "EmpathyIrcNetworkManager*")
1809   (parameters
1810     '("const-gchar*" "global_file")
1811     '("const-gchar*" "user_file")
1812   )
1813 )
1814
1815 (define-method add
1816   (of-object "EmpathyIrcNetworkManager")
1817   (c-name "empathy_irc_network_manager_add")
1818   (return-type "none")
1819   (parameters
1820     '("EmpathyIrcNetwork*" "network")
1821   )
1822 )
1823
1824 (define-method remove
1825   (of-object "EmpathyIrcNetworkManager")
1826   (c-name "empathy_irc_network_manager_remove")
1827   (return-type "none")
1828   (parameters
1829     '("EmpathyIrcNetwork*" "network")
1830   )
1831 )
1832
1833 (define-method get_networks
1834   (of-object "EmpathyIrcNetworkManager")
1835   (c-name "empathy_irc_network_manager_get_networks")
1836   (return-type "GSList*")
1837 )
1838
1839 (define-method find_network_by_address
1840   (of-object "EmpathyIrcNetworkManager")
1841   (c-name "empathy_irc_network_manager_find_network_by_address")
1842   (return-type "EmpathyIrcNetwork*")
1843   (parameters
1844     '("const-gchar*" "address")
1845   )
1846 )
1847
1848
1849
1850 ;; From empathy-irc-server.h
1851
1852 (define-function irc_server_get_type
1853   (c-name "empathy_irc_server_get_type")
1854   (return-type "GType")
1855 )
1856
1857 (define-function irc_server_new
1858   (c-name "empathy_irc_server_new")
1859   (is-constructor-of "EmpathyIrcServer")
1860   (return-type "EmpathyIrcServer*")
1861   (parameters
1862     '("const-gchar*" "address")
1863     '("guint" "port")
1864     '("gboolean" "ssl")
1865   )
1866 )
1867
1868
1869
1870 ;; From empathy-log-manager.h
1871
1872 (define-function log_manager_get_type
1873   (c-name "empathy_log_manager_get_type")
1874   (return-type "GType")
1875 )
1876
1877 (define-function log_manager_dup_singleton
1878   (c-name "empathy_log_manager_dup_singleton")
1879   (return-type "EmpathyLogManager*")
1880 )
1881
1882 (define-method add_message
1883   (of-object "EmpathyLogManager")
1884   (c-name "empathy_log_manager_add_message")
1885   (return-type "gboolean")
1886   (parameters
1887     '("const-gchar*" "chat_id")
1888     '("gboolean" "chatroom")
1889     '("EmpathyMessage*" "message")
1890     '("GError**" "error")
1891   )
1892 )
1893
1894 (define-method exists
1895   (of-object "EmpathyLogManager")
1896   (c-name "empathy_log_manager_exists")
1897   (return-type "gboolean")
1898   (parameters
1899     '("EmpathyAccount*" "account")
1900     '("const-gchar*" "chat_id")
1901     '("gboolean" "chatroom")
1902   )
1903 )
1904
1905 (define-method get_dates
1906   (of-object "EmpathyLogManager")
1907   (c-name "empathy_log_manager_get_dates")
1908   (return-type "GList*")
1909   (parameters
1910     '("EmpathyAccount*" "account")
1911     '("const-gchar*" "chat_id")
1912     '("gboolean" "chatroom")
1913   )
1914 )
1915
1916 (define-method get_messages_for_date
1917   (of-object "EmpathyLogManager")
1918   (c-name "empathy_log_manager_get_messages_for_date")
1919   (return-type "GList*")
1920   (parameters
1921     '("EmpathyAccount*" "account")
1922     '("const-gchar*" "chat_id")
1923     '("gboolean" "chatroom")
1924     '("const-gchar*" "date")
1925   )
1926 )
1927
1928 (define-method get_filtered_messages
1929   (of-object "EmpathyLogManager")
1930   (c-name "empathy_log_manager_get_filtered_messages")
1931   (return-type "GList*")
1932   (parameters
1933     '("EmpathyAccount*" "account")
1934     '("const-gchar*" "chat_id")
1935     '("gboolean" "chatroom")
1936     '("guint" "num_messages")
1937     '("EmpathyLogMessageFilter" "filter")
1938     '("gpointer" "user_data")
1939   )
1940 )
1941
1942 (define-method get_chats
1943   (of-object "EmpathyLogManager")
1944   (c-name "empathy_log_manager_get_chats")
1945   (return-type "GList*")
1946   (parameters
1947     '("EmpathyAccount*" "account")
1948   )
1949 )
1950
1951 (define-method search_new
1952   (of-object "EmpathyLogManager")
1953   (c-name "empathy_log_manager_search_new")
1954   (return-type "GList*")
1955   (parameters
1956     '("const-gchar*" "text")
1957   )
1958 )
1959
1960 (define-function log_manager_search_free
1961   (c-name "empathy_log_manager_search_free")
1962   (return-type "none")
1963   (parameters
1964     '("GList*" "hits")
1965   )
1966 )
1967
1968 (define-function log_manager_get_date_readable
1969   (c-name "empathy_log_manager_get_date_readable")
1970   (return-type "gchar*")
1971   (parameters
1972     '("const-gchar*" "date")
1973   )
1974 )
1975
1976 (define-function log_manager_search_hit_free
1977   (c-name "empathy_log_manager_search_hit_free")
1978   (return-type "none")
1979   (parameters
1980     '("EmpathyLogSearchHit*" "hit")
1981   )
1982 )
1983
1984 (define-method observe
1985   (of-object "EmpathyLogManager")
1986   (c-name "empathy_log_manager_observe")
1987   (return-type "none")
1988   (parameters
1989     '("EmpathyDispatcher*" "dispatcher")
1990   )
1991 )
1992
1993
1994
1995 ;; From empathy-log-store.h
1996
1997 (define-function log_store_get_type
1998   (c-name "empathy_log_store_get_type")
1999   (return-type "GType")
2000 )
2001
2002 (define-method get_name
2003   (of-object "EmpathyLogStore")
2004   (c-name "empathy_log_store_get_name")
2005   (return-type "const-gchar*")
2006 )
2007
2008 (define-method exists
2009   (of-object "EmpathyLogStore")
2010   (c-name "empathy_log_store_exists")
2011   (return-type "gboolean")
2012   (parameters
2013     '("EmpathyAccount*" "account")
2014     '("const-gchar*" "chat_id")
2015     '("gboolean" "chatroom")
2016   )
2017 )
2018
2019 (define-method add_message
2020   (of-object "EmpathyLogStore")
2021   (c-name "empathy_log_store_add_message")
2022   (return-type "gboolean")
2023   (parameters
2024     '("const-gchar*" "chat_id")
2025     '("gboolean" "chatroom")
2026     '("EmpathyMessage*" "message")
2027     '("GError**" "error")
2028   )
2029 )
2030
2031 (define-method get_dates
2032   (of-object "EmpathyLogStore")
2033   (c-name "empathy_log_store_get_dates")
2034   (return-type "GList*")
2035   (parameters
2036     '("EmpathyAccount*" "account")
2037     '("const-gchar*" "chat_id")
2038     '("gboolean" "chatroom")
2039   )
2040 )
2041
2042 (define-method get_messages_for_date
2043   (of-object "EmpathyLogStore")
2044   (c-name "empathy_log_store_get_messages_for_date")
2045   (return-type "GList*")
2046   (parameters
2047     '("EmpathyAccount*" "account")
2048     '("const-gchar*" "chat_id")
2049     '("gboolean" "chatroom")
2050     '("const-gchar*" "date")
2051   )
2052 )
2053
2054 (define-method get_last_messages
2055   (of-object "EmpathyLogStore")
2056   (c-name "empathy_log_store_get_last_messages")
2057   (return-type "GList*")
2058   (parameters
2059     '("EmpathyAccount*" "account")
2060     '("const-gchar*" "chat_id")
2061     '("gboolean" "chatroom")
2062   )
2063 )
2064
2065 (define-method get_chats
2066   (of-object "EmpathyLogStore")
2067   (c-name "empathy_log_store_get_chats")
2068   (return-type "GList*")
2069   (parameters
2070     '("EmpathyAccount*" "account")
2071   )
2072 )
2073
2074 (define-method search_new
2075   (of-object "EmpathyLogStore")
2076   (c-name "empathy_log_store_search_new")
2077   (return-type "GList*")
2078   (parameters
2079     '("const-gchar*" "text")
2080   )
2081 )
2082
2083 (define-method ack_message
2084   (of-object "EmpathyLogStore")
2085   (c-name "empathy_log_store_ack_message")
2086   (return-type "none")
2087   (parameters
2088     '("const-gchar*" "chat_id")
2089     '("gboolean" "chatroom")
2090     '("EmpathyMessage*" "message")
2091   )
2092 )
2093
2094 (define-method get_filtered_messages
2095   (of-object "EmpathyLogStore")
2096   (c-name "empathy_log_store_get_filtered_messages")
2097   (return-type "GList*")
2098   (parameters
2099     '("EmpathyAccount*" "account")
2100     '("const-gchar*" "chat_id")
2101     '("gboolean" "chatroom")
2102     '("guint" "num_messages")
2103     '("EmpathyLogMessageFilter" "filter")
2104     '("gpointer" "user_data")
2105   )
2106 )
2107
2108
2109
2110 ;; From empathy-log-store-empathy.h
2111
2112 (define-function log_store_empathy_get_type
2113   (c-name "empathy_log_store_empathy_get_type")
2114   (return-type "GType")
2115 )
2116
2117
2118
2119 ;; From empathy-message.h
2120
2121 (define-function message_get_type
2122   (c-name "empathy_message_get_type")
2123   (return-type "GType")
2124 )
2125
2126 (define-function message_new
2127   (c-name "empathy_message_new")
2128   (is-constructor-of "EmpathyMessage")
2129   (return-type "EmpathyMessage*")
2130   (parameters
2131     '("const-gchar*" "body")
2132   )
2133 )
2134
2135 (define-method get_tptype
2136   (of-object "EmpathyMessage")
2137   (c-name "empathy_message_get_tptype")
2138   (return-type "TpChannelTextMessageType")
2139 )
2140
2141 (define-method set_tptype
2142   (of-object "EmpathyMessage")
2143   (c-name "empathy_message_set_tptype")
2144   (return-type "none")
2145   (parameters
2146     '("TpChannelTextMessageType" "type")
2147   )
2148 )
2149
2150 (define-method get_sender
2151   (of-object "EmpathyMessage")
2152   (c-name "empathy_message_get_sender")
2153   (return-type "EmpathyContact*")
2154 )
2155
2156 (define-method set_sender
2157   (of-object "EmpathyMessage")
2158   (c-name "empathy_message_set_sender")
2159   (return-type "none")
2160   (parameters
2161     '("EmpathyContact*" "contact")
2162   )
2163 )
2164
2165 (define-method get_receiver
2166   (of-object "EmpathyMessage")
2167   (c-name "empathy_message_get_receiver")
2168   (return-type "EmpathyContact*")
2169 )
2170
2171 (define-method set_receiver
2172   (of-object "EmpathyMessage")
2173   (c-name "empathy_message_set_receiver")
2174   (return-type "none")
2175   (parameters
2176     '("EmpathyContact*" "contact")
2177   )
2178 )
2179
2180 (define-method get_body
2181   (of-object "EmpathyMessage")
2182   (c-name "empathy_message_get_body")
2183   (return-type "const-gchar*")
2184 )
2185
2186 (define-method set_body
2187   (of-object "EmpathyMessage")
2188   (c-name "empathy_message_set_body")
2189   (return-type "none")
2190   (parameters
2191     '("const-gchar*" "body")
2192   )
2193 )
2194
2195 (define-method get_timestamp
2196   (of-object "EmpathyMessage")
2197   (c-name "empathy_message_get_timestamp")
2198   (return-type "time_t")
2199 )
2200
2201 (define-method set_timestamp
2202   (of-object "EmpathyMessage")
2203   (c-name "empathy_message_set_timestamp")
2204   (return-type "none")
2205   (parameters
2206     '("time_t" "timestamp")
2207   )
2208 )
2209
2210 (define-method is_backlog
2211   (of-object "EmpathyMessage")
2212   (c-name "empathy_message_is_backlog")
2213   (return-type "gboolean")
2214 )
2215
2216 (define-method set_is_backlog
2217   (of-object "EmpathyMessage")
2218   (c-name "empathy_message_set_is_backlog")
2219   (return-type "none")
2220   (parameters
2221     '("gboolean" "is_backlog")
2222   )
2223 )
2224
2225 (define-method should_highlight
2226   (of-object "EmpathyMessage")
2227   (c-name "empathy_message_should_highlight")
2228   (return-type "gboolean")
2229 )
2230
2231 (define-function message_type_from_str
2232   (c-name "empathy_message_type_from_str")
2233   (return-type "TpChannelTextMessageType")
2234   (parameters
2235     '("const-gchar*" "type_str")
2236   )
2237 )
2238
2239 (define-function message_type_to_str
2240   (c-name "empathy_message_type_to_str")
2241   (return-type "const-gchar*")
2242   (parameters
2243     '("TpChannelTextMessageType" "type")
2244   )
2245 )
2246
2247 (define-method get_id
2248   (of-object "EmpathyMessage")
2249   (c-name "empathy_message_get_id")
2250   (return-type "guint")
2251 )
2252
2253 (define-method set_id
2254   (of-object "EmpathyMessage")
2255   (c-name "empathy_message_set_id")
2256   (return-type "none")
2257   (parameters
2258     '("guint" "id")
2259   )
2260 )
2261
2262 (define-method equal
2263   (of-object "EmpathyMessage")
2264   (c-name "empathy_message_equal")
2265   (return-type "gboolean")
2266   (parameters
2267     '("EmpathyMessage*" "message2")
2268   )
2269 )
2270
2271
2272
2273 ;; From empathy-status-presets.h
2274
2275 (define-function status_presets_get_all
2276   (c-name "empathy_status_presets_get_all")
2277   (return-type "none")
2278 )
2279
2280 (define-function status_presets_get
2281   (c-name "empathy_status_presets_get")
2282   (return-type "GList*")
2283   (parameters
2284     '("TpConnectionPresenceType" "state")
2285     '("gint" "max_number")
2286   )
2287 )
2288
2289 (define-function status_presets_set_last
2290   (c-name "empathy_status_presets_set_last")
2291   (return-type "none")
2292   (parameters
2293     '("TpConnectionPresenceType" "state")
2294     '("const-gchar*" "status")
2295   )
2296 )
2297
2298 (define-function status_presets_remove
2299   (c-name "empathy_status_presets_remove")
2300   (return-type "none")
2301   (parameters
2302     '("TpConnectionPresenceType" "state")
2303     '("const-gchar*" "status")
2304   )
2305 )
2306
2307 (define-function status_presets_reset
2308   (c-name "empathy_status_presets_reset")
2309   (return-type "none")
2310 )
2311
2312 (define-function status_presets_get_default_state
2313   (c-name "empathy_status_presets_get_default_state")
2314   (return-type "TpConnectionPresenceType")
2315 )
2316
2317 (define-function status_presets_get_default_status
2318   (c-name "empathy_status_presets_get_default_status")
2319   (return-type "const-gchar*")
2320 )
2321
2322 (define-function status_presets_set_default
2323   (c-name "empathy_status_presets_set_default")
2324   (return-type "none")
2325   (parameters
2326     '("TpConnectionPresenceType" "state")
2327     '("const-gchar*" "status")
2328   )
2329 )
2330
2331 (define-function status_presets_clear_default
2332   (c-name "empathy_status_presets_clear_default")
2333   (return-type "none")
2334 )
2335
2336 (define-function status_presets_is_valid
2337   (c-name "empathy_status_presets_is_valid")
2338   (return-type "gboolean")
2339   (parameters
2340     '("TpConnectionPresenceType" "state")
2341   )
2342 )
2343
2344
2345
2346 ;; From empathy-time.h
2347
2348 (define-function time_get_current
2349   (c-name "empathy_time_get_current")
2350   (return-type "time_t")
2351 )
2352
2353 (define-function time_get_local_time
2354   (c-name "empathy_time_get_local_time")
2355   (return-type "time_t")
2356   (parameters
2357     '("struct-tm*" "tm")
2358   )
2359 )
2360
2361 (define-function time_parse
2362   (c-name "empathy_time_parse")
2363   (return-type "time_t")
2364   (parameters
2365     '("const-gchar*" "str")
2366   )
2367 )
2368
2369 (define-function time_to_string_utc
2370   (c-name "empathy_time_to_string_utc")
2371   (return-type "gchar*")
2372   (parameters
2373     '("time_t" "t")
2374     '("const-gchar*" "format")
2375   )
2376 )
2377
2378 (define-function time_to_string_local
2379   (c-name "empathy_time_to_string_local")
2380   (return-type "gchar*")
2381   (parameters
2382     '("time_t" "t")
2383     '("const-gchar*" "format")
2384   )
2385 )
2386
2387 (define-function time_to_string_relative
2388   (c-name "empathy_time_to_string_relative")
2389   (return-type "gchar*")
2390   (parameters
2391     '("time_t" "t")
2392   )
2393 )
2394
2395
2396
2397 ;; From empathy-tp-call.h
2398
2399 (define-function tp_call_get_type
2400   (c-name "empathy_tp_call_get_type")
2401   (return-type "GType")
2402 )
2403
2404 (define-function tp_call_new
2405   (c-name "empathy_tp_call_new")
2406   (is-constructor-of "EmpathyTpCall")
2407   (return-type "EmpathyTpCall*")
2408   (parameters
2409     '("TpChannel*" "channel")
2410   )
2411 )
2412
2413 (define-method close
2414   (of-object "EmpathyTpCall")
2415   (c-name "empathy_tp_call_close")
2416   (return-type "none")
2417 )
2418
2419 (define-method to
2420   (of-object "EmpathyTpCall")
2421   (c-name "empathy_tp_call_to")
2422   (return-type "none")
2423   (parameters
2424     '("EmpathyContact*" "contact")
2425     '("gboolean" "audio")
2426     '("gboolean" "video")
2427   )
2428 )
2429
2430 (define-method accept_incoming_call
2431   (of-object "EmpathyTpCall")
2432   (c-name "empathy_tp_call_accept_incoming_call")
2433   (return-type "none")
2434 )
2435
2436 (define-method request_video_stream_direction
2437   (of-object "EmpathyTpCall")
2438   (c-name "empathy_tp_call_request_video_stream_direction")
2439   (return-type "none")
2440   (parameters
2441     '("gboolean" "is_sending")
2442   )
2443 )
2444
2445 (define-method start_tone
2446   (of-object "EmpathyTpCall")
2447   (c-name "empathy_tp_call_start_tone")
2448   (return-type "none")
2449   (parameters
2450     '("TpDTMFEvent" "event")
2451   )
2452 )
2453
2454 (define-method stop_tone
2455   (of-object "EmpathyTpCall")
2456   (c-name "empathy_tp_call_stop_tone")
2457   (return-type "none")
2458 )
2459
2460 (define-method has_dtmf
2461   (of-object "EmpathyTpCall")
2462   (c-name "empathy_tp_call_has_dtmf")
2463   (return-type "gboolean")
2464 )
2465
2466 (define-method is_receiving_video
2467   (of-object "EmpathyTpCall")
2468   (c-name "empathy_tp_call_is_receiving_video")
2469   (return-type "gboolean")
2470 )
2471
2472 (define-method is_sending_video
2473   (of-object "EmpathyTpCall")
2474   (c-name "empathy_tp_call_is_sending_video")
2475   (return-type "gboolean")
2476 )
2477
2478
2479
2480 ;; From empathy-tp-chat.h
2481
2482 (define-function tp_chat_get_type
2483   (c-name "empathy_tp_chat_get_type")
2484   (return-type "GType")
2485 )
2486
2487 (define-function tp_chat_new
2488   (c-name "empathy_tp_chat_new")
2489   (is-constructor-of "EmpathyTpChat")
2490   (return-type "EmpathyTpChat*")
2491   (parameters
2492     '("TpChannel*" "channel")
2493   )
2494 )
2495
2496 (define-method close
2497   (of-object "EmpathyTpChat")
2498   (c-name "empathy_tp_chat_close")
2499   (return-type "none")
2500 )
2501
2502 (define-method get_id
2503   (of-object "EmpathyTpChat")
2504   (c-name "empathy_tp_chat_get_id")
2505   (return-type "const-gchar*")
2506 )
2507
2508 (define-method get_remote_contact
2509   (of-object "EmpathyTpChat")
2510   (c-name "empathy_tp_chat_get_remote_contact")
2511   (return-type "EmpathyContact*")
2512 )
2513
2514 (define-method get_channel
2515   (of-object "EmpathyTpChat")
2516   (c-name "empathy_tp_chat_get_channel")
2517   (return-type "TpChannel*")
2518 )
2519
2520 (define-method get_connection
2521   (of-object "EmpathyTpChat")
2522   (c-name "empathy_tp_chat_get_connection")
2523   (return-type "TpConnection*")
2524 )
2525
2526 (define-method is_ready
2527   (of-object "EmpathyTpChat")
2528   (c-name "empathy_tp_chat_is_ready")
2529   (return-type "gboolean")
2530 )
2531
2532 (define-method send
2533   (of-object "EmpathyTpChat")
2534   (c-name "empathy_tp_chat_send")
2535   (return-type "none")
2536   (parameters
2537     '("EmpathyMessage*" "message")
2538   )
2539 )
2540
2541 (define-method set_state
2542   (of-object "EmpathyTpChat")
2543   (c-name "empathy_tp_chat_set_state")
2544   (return-type "none")
2545   (parameters
2546     '("TpChannelChatState" "state")
2547   )
2548 )
2549
2550 (define-method set_property
2551   (of-object "EmpathyTpChat")
2552   (c-name "empathy_tp_chat_set_property")
2553   (return-type "none")
2554   (parameters
2555     '("const-gchar*" "name")
2556     '("const-GValue*" "value")
2557   )
2558 )
2559
2560 (define-method get_pending_messages
2561   (of-object "EmpathyTpChat")
2562   (c-name "empathy_tp_chat_get_pending_messages")
2563   (return-type "const-GList*")
2564 )
2565
2566 (define-method acknowledge_message
2567   (of-object "EmpathyTpChat")
2568   (c-name "empathy_tp_chat_acknowledge_message")
2569   (return-type "none")
2570   (parameters
2571     '("EmpathyMessage*" "message")
2572   )
2573 )
2574
2575 (define-method acknowledge_messages
2576   (of-object "EmpathyTpChat")
2577   (c-name "empathy_tp_chat_acknowledge_messages")
2578   (return-type "none")
2579   (parameters
2580     '("const-GList*" "messages")
2581   )
2582 )
2583
2584
2585
2586 ;; From empathy-tp-contact-factory.h
2587
2588 (define-function tp_contact_factory_get_type
2589   (c-name "empathy_tp_contact_factory_get_type")
2590   (return-type "GType")
2591 )
2592
2593 (define-function tp_contact_factory_dup_singleton
2594   (c-name "empathy_tp_contact_factory_dup_singleton")
2595   (return-type "EmpathyTpContactFactory*")
2596   (parameters
2597     '("TpConnection*" "connection")
2598   )
2599 )
2600
2601 (define-method get_from_ids
2602   (of-object "EmpathyTpContactFactory")
2603   (c-name "empathy_tp_contact_factory_get_from_ids")
2604   (return-type "none")
2605   (parameters
2606     '("guint" "n_ids")
2607     '("const-gchar*-const*" "ids")
2608     '("EmpathyTpContactFactoryContactsByIdCb" "callback")
2609     '("gpointer" "user_data")
2610     '("GDestroyNotify" "destroy")
2611     '("GObject*" "weak_object")
2612   )
2613 )
2614
2615 (define-method get_from_handles
2616   (of-object "EmpathyTpContactFactory")
2617   (c-name "empathy_tp_contact_factory_get_from_handles")
2618   (return-type "none")
2619   (parameters
2620     '("guint" "n_handles")
2621     '("const-TpHandle*" "handles")
2622     '("EmpathyTpContactFactoryContactsByHandleCb" "callback")
2623     '("gpointer" "user_data")
2624     '("GDestroyNotify" "destroy")
2625     '("GObject*" "weak_object")
2626   )
2627 )
2628
2629 (define-method get_from_id
2630   (of-object "EmpathyTpContactFactory")
2631   (c-name "empathy_tp_contact_factory_get_from_id")
2632   (return-type "none")
2633   (parameters
2634     '("const-gchar*" "id")
2635     '("EmpathyTpContactFactoryContactCb" "callback")
2636     '("gpointer" "user_data")
2637     '("GDestroyNotify" "destroy")
2638     '("GObject*" "weak_object")
2639   )
2640 )
2641
2642 (define-method get_from_handle
2643   (of-object "EmpathyTpContactFactory")
2644   (c-name "empathy_tp_contact_factory_get_from_handle")
2645   (return-type "none")
2646   (parameters
2647     '("TpHandle" "handle")
2648     '("EmpathyTpContactFactoryContactCb" "callback")
2649     '("gpointer" "user_data")
2650     '("GDestroyNotify" "destroy")
2651     '("GObject*" "weak_object")
2652   )
2653 )
2654
2655 (define-method set_alias
2656   (of-object "EmpathyTpContactFactory")
2657   (c-name "empathy_tp_contact_factory_set_alias")
2658   (return-type "none")
2659   (parameters
2660     '("EmpathyContact*" "contact")
2661     '("const-gchar*" "alias")
2662   )
2663 )
2664
2665 (define-method set_avatar
2666   (of-object "EmpathyTpContactFactory")
2667   (c-name "empathy_tp_contact_factory_set_avatar")
2668   (return-type "none")
2669   (parameters
2670     '("const-gchar*" "data")
2671     '("gsize" "size")
2672     '("const-gchar*" "mime_type")
2673   )
2674 )
2675
2676 (define-method set_location
2677   (of-object "EmpathyTpContactFactory")
2678   (c-name "empathy_tp_contact_factory_set_location")
2679   (return-type "none")
2680   (parameters
2681     '("GHashTable*" "location")
2682   )
2683 )
2684
2685
2686
2687 ;; From empathy-tp-contact-list.h
2688
2689 (define-function tp_contact_list_get_type
2690   (c-name "empathy_tp_contact_list_get_type")
2691   (return-type "GType")
2692 )
2693
2694 (define-function tp_contact_list_new
2695   (c-name "empathy_tp_contact_list_new")
2696   (is-constructor-of "EmpathyTpContactList")
2697   (return-type "EmpathyTpContactList*")
2698   (parameters
2699     '("TpConnection*" "connection")
2700   )
2701 )
2702
2703 (define-method get_connection
2704   (of-object "EmpathyTpContactList")
2705   (c-name "empathy_tp_contact_list_get_connection")
2706   (return-type "TpConnection*")
2707 )
2708
2709 (define-method can_add
2710   (of-object "EmpathyTpContactList")
2711   (c-name "empathy_tp_contact_list_can_add")
2712   (return-type "gboolean")
2713 )
2714
2715 (define-method remove_all
2716   (of-object "EmpathyTpContactList")
2717   (c-name "empathy_tp_contact_list_remove_all")
2718   (return-type "none")
2719 )
2720
2721
2722
2723 ;; From empathy-tp-file.h
2724
2725 (define-function tp_file_get_type
2726   (c-name "empathy_tp_file_get_type")
2727   (return-type "GType")
2728 )
2729
2730 (define-function tp_file_new
2731   (c-name "empathy_tp_file_new")
2732   (is-constructor-of "EmpathyTpFile")
2733   (return-type "EmpathyTpFile*")
2734   (parameters
2735     '("TpChannel*" "channel")
2736     '("gboolean" "incoming")
2737   )
2738 )
2739
2740 (define-method accept
2741   (of-object "EmpathyTpFile")
2742   (c-name "empathy_tp_file_accept")
2743   (return-type "none")
2744   (parameters
2745     '("guint64" "offset")
2746     '("GFile*" "gfile")
2747     '("GCancellable*" "cancellable")
2748     '("EmpathyTpFileProgressCallback" "progress_callback")
2749     '("gpointer" "progress_user_data")
2750     '("EmpathyTpFileOperationCallback" "op_callback")
2751     '("gpointer" "op_user_data")
2752   )
2753 )
2754
2755 (define-method offer
2756   (of-object "EmpathyTpFile")
2757   (c-name "empathy_tp_file_offer")
2758   (return-type "none")
2759   (parameters
2760     '("GFile*" "gfile")
2761     '("GCancellable*" "cancellable")
2762     '("EmpathyTpFileProgressCallback" "progress_callback")
2763     '("gpointer" "progress_user_data")
2764     '("EmpathyTpFileOperationCallback" "op_callback")
2765     '("gpointer" "op_user_data")
2766   )
2767 )
2768
2769 (define-method cancel
2770   (of-object "EmpathyTpFile")
2771   (c-name "empathy_tp_file_cancel")
2772   (return-type "none")
2773 )
2774
2775 (define-method close
2776   (of-object "EmpathyTpFile")
2777   (c-name "empathy_tp_file_close")
2778   (return-type "none")
2779 )
2780
2781 (define-method is_incoming
2782   (of-object "EmpathyTpFile")
2783   (c-name "empathy_tp_file_is_incoming")
2784   (return-type "gboolean")
2785 )
2786
2787
2788
2789 ;; From empathy-tp-roomlist.h
2790
2791 (define-function tp_roomlist_get_type
2792   (c-name "empathy_tp_roomlist_get_type")
2793   (return-type "GType")
2794 )
2795
2796 (define-function tp_roomlist_new
2797   (c-name "empathy_tp_roomlist_new")
2798   (is-constructor-of "EmpathyTpRoomlist")
2799   (return-type "EmpathyTpRoomlist*")
2800   (parameters
2801     '("EmpathyAccount*" "account")
2802   )
2803 )
2804
2805 (define-method is_listing
2806   (of-object "EmpathyTpRoomlist")
2807   (c-name "empathy_tp_roomlist_is_listing")
2808   (return-type "gboolean")
2809 )
2810
2811 (define-method start
2812   (of-object "EmpathyTpRoomlist")
2813   (c-name "empathy_tp_roomlist_start")
2814   (return-type "none")
2815 )
2816
2817 (define-method stop
2818   (of-object "EmpathyTpRoomlist")
2819   (c-name "empathy_tp_roomlist_stop")
2820   (return-type "none")
2821 )
2822
2823
2824
2825 ;; From empathy-tube-handler.h
2826
2827 (define-function tube_handler_get_type
2828   (c-name "empathy_tube_handler_get_type")
2829   (return-type "GType")
2830 )
2831
2832 (define-function tube_handler_new
2833   (c-name "empathy_tube_handler_new")
2834   (is-constructor-of "EmpathyTubeHandler")
2835   (return-type "EmpathyTubeHandler*")
2836   (parameters
2837     '("TpTubeType" "type")
2838     '("const-gchar*" "service")
2839   )
2840 )
2841
2842 (define-function tube_handler_build_bus_name
2843   (c-name "empathy_tube_handler_build_bus_name")
2844   (return-type "gchar*")
2845   (parameters
2846     '("TpTubeType" "type")
2847     '("const-gchar*" "service")
2848   )
2849 )
2850
2851 (define-function tube_handler_build_object_path
2852   (c-name "empathy_tube_handler_build_object_path")
2853   (return-type "gchar*")
2854   (parameters
2855     '("TpTubeType" "type")
2856     '("const-gchar*" "service")
2857   )
2858 )
2859
2860
2861
2862 ;; From empathy-types.h
2863
2864
2865
2866 ;; From empathy-utils.h
2867
2868 (define-function init
2869   (c-name "empathy_init")
2870   (return-type "none")
2871 )
2872
2873 (define-function substring
2874   (c-name "empathy_substring")
2875   (return-type "gchar*")
2876   (parameters
2877     '("const-gchar*" "str")
2878     '("gint" "start")
2879     '("gint" "end")
2880   )
2881 )
2882
2883 (define-function strcasecmp
2884   (c-name "empathy_strcasecmp")
2885   (return-type "gint")
2886   (parameters
2887     '("const-gchar*" "s1")
2888     '("const-gchar*" "s2")
2889   )
2890 )
2891
2892 (define-function strncasecmp
2893   (c-name "empathy_strncasecmp")
2894   (return-type "gint")
2895   (parameters
2896     '("const-gchar*" "s1")
2897     '("const-gchar*" "s2")
2898     '("gsize" "n")
2899   )
2900 )
2901
2902 (define-function xml_validate
2903   (c-name "empathy_xml_validate")
2904   (return-type "gboolean")
2905   (parameters
2906     '("xmlDoc*" "doc")
2907     '("const-gchar*" "dtd_filename")
2908   )
2909 )
2910
2911 (define-function xml_node_get_child
2912   (c-name "empathy_xml_node_get_child")
2913   (return-type "xmlNodePtr")
2914   (parameters
2915     '("xmlNodePtr" "node")
2916     '("const-gchar*" "child_name")
2917   )
2918 )
2919
2920 (define-function xml_node_get_child_content
2921   (c-name "empathy_xml_node_get_child_content")
2922   (return-type "xmlChar*")
2923   (parameters
2924     '("xmlNodePtr" "node")
2925     '("const-gchar*" "child_name")
2926   )
2927 )
2928
2929 (define-function xml_node_find_child_prop_value
2930   (c-name "empathy_xml_node_find_child_prop_value")
2931   (return-type "xmlNodePtr")
2932   (parameters
2933     '("xmlNodePtr" "node")
2934     '("const-gchar*" "prop_name")
2935     '("const-gchar*" "prop_value")
2936   )
2937 )
2938
2939 (define-function presence_get_default_message
2940   (c-name "empathy_presence_get_default_message")
2941   (return-type "const-gchar*")
2942   (parameters
2943     '("TpConnectionPresenceType" "presence")
2944   )
2945 )
2946
2947 (define-function presence_to_str
2948   (c-name "empathy_presence_to_str")
2949   (return-type "const-gchar*")
2950   (parameters
2951     '("TpConnectionPresenceType" "presence")
2952   )
2953 )
2954
2955 (define-function presence_from_str
2956   (c-name "empathy_presence_from_str")
2957   (return-type "TpConnectionPresenceType")
2958   (parameters
2959     '("const-gchar*" "str")
2960   )
2961 )
2962
2963 (define-function file_lookup
2964   (c-name "empathy_file_lookup")
2965   (return-type "gchar*")
2966   (parameters
2967     '("const-gchar*" "filename")
2968     '("const-gchar*" "subdir")
2969   )
2970 )
2971
2972 (define-function proxy_equal
2973   (c-name "empathy_proxy_equal")
2974   (return-type "gboolean")
2975   (parameters
2976     '("gconstpointer" "a")
2977     '("gconstpointer" "b")
2978   )
2979 )
2980
2981 (define-function proxy_hash
2982   (c-name "empathy_proxy_hash")
2983   (return-type "guint")
2984   (parameters
2985     '("gconstpointer" "key")
2986   )
2987 )
2988
2989 (define-function check_available_state
2990   (c-name "empathy_check_available_state")
2991   (return-type "gboolean")
2992 )
2993
2994 (define-function uint_compare
2995   (c-name "empathy_uint_compare")
2996   (return-type "gint")
2997   (parameters
2998     '("gconstpointer" "a")
2999     '("gconstpointer" "b")
3000   )
3001 )
3002
3003 (define-function protocol_icon_name
3004   (c-name "empathy_protocol_icon_name")
3005   (return-type "gchar*")
3006   (parameters
3007     '("const-gchar*" "protocol")
3008   )
3009 )
3010
3011 (define-function type_dbus_ao
3012   (c-name "empathy_type_dbus_ao")
3013   (return-type "GType")
3014 )
3015
3016