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