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