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