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