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