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