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