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