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