]> git.0d.be Git - empathy.git/blob - python/pyempathy/pyempathy.defs
Updatre python binding
[empathy.git] / python / pyempathy / pyempathy.defs
1 ;; -*- scheme -*-
2 ; object definitions ...
3 (define-object Chandler
4   (in-module "Empathy")
5   (parent "GObject")
6   (c-name "EmpathyChandler")
7   (gtype-id "EMPATHY_TYPE_CHANDLER")
8 )
9
10 (define-object Chatroom
11   (in-module "Empathy")
12   (parent "GObject")
13   (c-name "EmpathyChatroom")
14   (gtype-id "EMPATHY_TYPE_CHATROOM")
15 )
16
17 (define-object ChatroomManager
18   (in-module "Empathy")
19   (parent "GObject")
20   (c-name "EmpathyChatroomManager")
21   (gtype-id "EMPATHY_TYPE_CHATROOM_MANAGER")
22 )
23
24 (define-object Contact
25   (in-module "Empathy")
26   (parent "GObject")
27   (c-name "EmpathyContact")
28   (gtype-id "EMPATHY_TYPE_CONTACT")
29 )
30
31 (define-object ContactFactory
32   (in-module "Empathy")
33   (parent "GObject")
34   (c-name "EmpathyContactFactory")
35   (gtype-id "EMPATHY_TYPE_CONTACT_FACTORY")
36 )
37
38 (define-interface ContactList
39   (in-module "Empathy")
40   (c-name "EmpathyContactList")
41   (gtype-id "EMPATHY_TYPE_CONTACT_LIST")
42 )
43
44 (define-object ContactManager
45   (in-module "Empathy")
46   (parent "GObject")
47   (implements "EmpathyContactList")
48   (c-name "EmpathyContactManager")
49   (gtype-id "EMPATHY_TYPE_CONTACT_MANAGER")
50 )
51
52 (define-object Filter
53   (in-module "Empathy")
54   (parent "GObject")
55   (c-name "EmpathyFilter")
56   (gtype-id "EMPATHY_TYPE_FILTER")
57 )
58
59 (define-object Idle
60   (in-module "Empathy")
61   (parent "GObject")
62   (c-name "EmpathyIdle")
63   (gtype-id "EMPATHY_TYPE_IDLE")
64 )
65
66 (define-object IrcNetwork
67   (in-module "Empathy")
68   (parent "GObject")
69   (c-name "EmpathyIrcNetwork")
70   (gtype-id "EMPATHY_TYPE_IRC_NETWORK")
71 )
72
73 (define-object IrcNetworkManager
74   (in-module "Empathy")
75   (parent "GObject")
76   (c-name "EmpathyIrcNetworkManager")
77   (gtype-id "EMPATHY_TYPE_IRC_NETWORK_MANAGER")
78 )
79
80 (define-object IrcServer
81   (in-module "Empathy")
82   (parent "GObject")
83   (c-name "EmpathyIrcServer")
84   (gtype-id "EMPATHY_TYPE_IRC_SERVER")
85 )
86
87 (define-object LogManager
88   (in-module "Empathy")
89   (parent "GObject")
90   (c-name "EmpathyLogManager")
91   (gtype-id "EMPATHY_TYPE_LOG_MANAGER")
92 )
93
94 (define-object Message
95   (in-module "Empathy")
96   (parent "GObject")
97   (c-name "EmpathyMessage")
98   (gtype-id "EMPATHY_TYPE_MESSAGE")
99 )
100
101 (define-object TpCall
102   (in-module "Empathy")
103   (parent "GObject")
104   (c-name "EmpathyTpCall")
105   (gtype-id "EMPATHY_TYPE_TP_CALL")
106 )
107
108 (define-object TpChat
109   (in-module "Empathy")
110   (parent "GObject")
111   (c-name "EmpathyTpChat")
112   (gtype-id "EMPATHY_TYPE_TP_CHAT")
113 )
114
115 (define-object TpChatroom
116   (in-module "Empathy")
117   (parent "EmpathyTpChat")
118   (implements "EmpathyContactList")
119   (c-name "EmpathyTpChatroom")
120   (gtype-id "EMPATHY_TYPE_TP_CHATROOM")
121 )
122
123 (define-object TpContactFactory
124   (in-module "Empathy")
125   (parent "GObject")
126   (c-name "EmpathyTpContactFactory")
127   (gtype-id "EMPATHY_TYPE_TP_CONTACT_FACTORY")
128 )
129
130 (define-object TpContactList
131   (in-module "Empathy")
132   (parent "GObject")
133   (implements "EmpathyContactList")
134   (c-name "EmpathyTpContactList")
135   (gtype-id "EMPATHY_TYPE_TP_CONTACT_LIST")
136 )
137
138 (define-object TpGroup
139   (in-module "Empathy")
140   (parent "GObject")
141   (c-name "EmpathyTpGroup")
142   (gtype-id "EMPATHY_TYPE_TP_GROUP")
143 )
144
145 (define-object TpRoomlist
146   (in-module "Empathy")
147   (parent "GObject")
148   (c-name "EmpathyTpRoomlist")
149   (gtype-id "EMPATHY_TYPE_TP_ROOMLIST")
150 )
151
152 ;; Enumerations and flags ...
153
154 (define-flags Capabilities
155   (in-module "Empathy")
156   (c-name "EmpathyCapabilities")
157   (gtype-id "EMPATHY_TYPE_CAPABILITIES")
158   (values
159     '("none" "EMPATHY_CAPABILITIES_NONE")
160     '("audio" "EMPATHY_CAPABILITIES_AUDIO")
161     '("video" "EMPATHY_CAPABILITIES_VIDEO")
162     '("unknown" "EMPATHY_CAPABILITIES_UNKNOWN")
163   )
164 )
165
166 (define-enum MessageType
167   (in-module "Empathy")
168   (c-name "EmpathyMessageType")
169   (gtype-id "EMPATHY_TYPE_MESSAGE_TYPE")
170   (values
171     '("normal" "EMPATHY_MESSAGE_TYPE_NORMAL")
172     '("action" "EMPATHY_MESSAGE_TYPE_ACTION")
173     '("notice" "EMPATHY_MESSAGE_TYPE_NOTICE")
174     '("auto-reply" "EMPATHY_MESSAGE_TYPE_AUTO_REPLY")
175     '("last" "EMPATHY_MESSAGE_TYPE_LAST")
176   )
177 )
178
179 (define-enum TpCallStatus
180   (in-module "Empathy")
181   (c-name "EmpathyTpCallStatus")
182   (gtype-id "EMPATHY_TYPE_TP_CALL_STATUS")
183   (values
184     '("readying" "EMPATHY_TP_CALL_STATUS_READYING")
185     '("pending" "EMPATHY_TP_CALL_STATUS_PENDING")
186     '("accepted" "EMPATHY_TP_CALL_STATUS_ACCEPTED")
187     '("closed" "EMPATHY_TP_CALL_STATUS_CLOSED")
188   )
189 )
190
191 (define-enum RegExType
192   (in-module "Empathy")
193   (c-name "EmpathyRegExType")
194   (gtype-id "EMPATHY_TYPE_REG_EX_TYPE")
195   (values
196     '("as-is" "EMPATHY_REGEX_AS_IS")
197     '("browser" "EMPATHY_REGEX_BROWSER")
198     '("email" "EMPATHY_REGEX_EMAIL")
199     '("other" "EMPATHY_REGEX_OTHER")
200     '("all" "EMPATHY_REGEX_ALL")
201   )
202 )
203
204
205 ;; From empathy-avatar.h
206
207 (define-function empathy_avatar_get_type
208   (c-name "empathy_avatar_get_type")
209   (return-type "GType")
210 )
211
212 (define-function empathy_avatar_new
213   (c-name "empathy_avatar_new")
214   (is-constructor-of "EmpathyAvatar")
215   (return-type "EmpathyAvatar*")
216   (parameters
217     '("const-guchar*" "avatar")
218     '("const-gsize" "len")
219     '("const-gchar*" "format")
220     '("const-gchar*" "token")
221   )
222 )
223
224 (define-function empathy_avatar_new_from_cache
225   (c-name "empathy_avatar_new_from_cache")
226   (return-type "EmpathyAvatar*")
227   (parameters
228     '("const-gchar*" "token")
229   )
230 )
231
232 (define-method ref
233   (of-object "EmpathyAvatar")
234   (c-name "empathy_avatar_ref")
235   (return-type "EmpathyAvatar*")
236 )
237
238 (define-method unref
239   (of-object "EmpathyAvatar")
240   (c-name "empathy_avatar_unref")
241   (return-type "none")
242 )
243
244
245
246 ;; From empathy-chandler.h
247
248 (define-function empathy_chandler_get_type
249   (c-name "empathy_chandler_get_type")
250   (return-type "GType")
251 )
252
253 (define-function empathy_chandler_new
254   (c-name "empathy_chandler_new")
255   (is-constructor-of "EmpathyChandler")
256   (return-type "EmpathyChandler*")
257   (parameters
258     '("const-gchar*" "bus_name")
259     '("const-gchar*" "object_path")
260   )
261 )
262
263
264
265 ;; From empathy-chatroom.h
266
267 (define-function empathy_chatroom_get_type
268   (c-name "empathy_chatroom_get_type")
269   (return-type "GType")
270 )
271
272 (define-function empathy_chatroom_new
273   (c-name "empathy_chatroom_new")
274   (is-constructor-of "EmpathyChatroom")
275   (return-type "EmpathyChatroom*")
276   (parameters
277     '("McAccount*" "account")
278     '("const-gchar*" "room")
279   )
280 )
281
282 (define-function empathy_chatroom_new_full
283   (c-name "empathy_chatroom_new_full")
284   (return-type "EmpathyChatroom*")
285   (parameters
286     '("McAccount*" "account")
287     '("const-gchar*" "room")
288     '("const-gchar*" "name")
289     '("gboolean" "auto_connect")
290   )
291 )
292
293 (define-method get_account
294   (of-object "EmpathyChatroom")
295   (c-name "empathy_chatroom_get_account")
296   (return-type "McAccount*")
297 )
298
299 (define-method set_account
300   (of-object "EmpathyChatroom")
301   (c-name "empathy_chatroom_set_account")
302   (return-type "none")
303   (parameters
304     '("McAccount*" "account")
305   )
306 )
307
308 (define-method get_room
309   (of-object "EmpathyChatroom")
310   (c-name "empathy_chatroom_get_room")
311   (return-type "const-gchar*")
312 )
313
314 (define-method set_room
315   (of-object "EmpathyChatroom")
316   (c-name "empathy_chatroom_set_room")
317   (return-type "none")
318   (parameters
319     '("const-gchar*" "room")
320   )
321 )
322
323 (define-method get_name
324   (of-object "EmpathyChatroom")
325   (c-name "empathy_chatroom_get_name")
326   (return-type "const-gchar*")
327 )
328
329 (define-method set_name
330   (of-object "EmpathyChatroom")
331   (c-name "empathy_chatroom_set_name")
332   (return-type "none")
333   (parameters
334     '("const-gchar*" "name")
335   )
336 )
337
338 (define-method get_auto_connect
339   (of-object "EmpathyChatroom")
340   (c-name "empathy_chatroom_get_auto_connect")
341   (return-type "gboolean")
342 )
343
344 (define-method set_auto_connect
345   (of-object "EmpathyChatroom")
346   (c-name "empathy_chatroom_set_auto_connect")
347   (return-type "none")
348   (parameters
349     '("gboolean" "auto_connect")
350   )
351 )
352
353 (define-function empathy_chatroom_equal
354   (c-name "empathy_chatroom_equal")
355   (return-type "gboolean")
356   (parameters
357     '("gconstpointer" "v1")
358     '("gconstpointer" "v2")
359   )
360 )
361
362
363
364 ;; From empathy-chatroom-manager.h
365
366 (define-function empathy_chatroom_manager_get_type
367   (c-name "empathy_chatroom_manager_get_type")
368   (return-type "GType")
369 )
370
371 (define-function empathy_chatroom_manager_new
372   (c-name "empathy_chatroom_manager_new")
373   (is-constructor-of "EmpathyChatroomManager")
374   (return-type "EmpathyChatroomManager*")
375 )
376
377 (define-method add
378   (of-object "EmpathyChatroomManager")
379   (c-name "empathy_chatroom_manager_add")
380   (return-type "gboolean")
381   (parameters
382     '("EmpathyChatroom*" "chatroom")
383   )
384 )
385
386 (define-method remove
387   (of-object "EmpathyChatroomManager")
388   (c-name "empathy_chatroom_manager_remove")
389   (return-type "none")
390   (parameters
391     '("EmpathyChatroom*" "chatroom")
392   )
393 )
394
395 (define-method find
396   (of-object "EmpathyChatroomManager")
397   (c-name "empathy_chatroom_manager_find")
398   (return-type "EmpathyChatroom*")
399   (parameters
400     '("McAccount*" "account")
401     '("const-gchar*" "room")
402   )
403 )
404
405 (define-method get_chatrooms
406   (of-object "EmpathyChatroomManager")
407   (c-name "empathy_chatroom_manager_get_chatrooms")
408   (return-type "GList*")
409   (parameters
410     '("McAccount*" "account")
411   )
412 )
413
414 (define-method get_count
415   (of-object "EmpathyChatroomManager")
416   (c-name "empathy_chatroom_manager_get_count")
417   (return-type "guint")
418   (parameters
419     '("McAccount*" "account")
420   )
421 )
422
423 (define-method store
424   (of-object "EmpathyChatroomManager")
425   (c-name "empathy_chatroom_manager_store")
426   (return-type "none")
427 )
428
429
430
431 ;; From empathy-contact-factory.h
432
433 (define-function empathy_contact_factory_get_type
434   (c-name "empathy_contact_factory_get_type")
435   (return-type "GType")
436 )
437
438 (define-function empathy_contact_factory_new
439   (c-name "empathy_contact_factory_new")
440   (is-constructor-of "EmpathyContactFactory")
441   (return-type "EmpathyContactFactory*")
442 )
443
444 (define-method get_user
445   (of-object "EmpathyContactFactory")
446   (c-name "empathy_contact_factory_get_user")
447   (return-type "EmpathyContact*")
448   (parameters
449     '("McAccount*" "account")
450   )
451 )
452
453 (define-method get_from_id
454   (of-object "EmpathyContactFactory")
455   (c-name "empathy_contact_factory_get_from_id")
456   (return-type "EmpathyContact*")
457   (parameters
458     '("McAccount*" "account")
459     '("const-gchar*" "id")
460   )
461 )
462
463 (define-method get_from_handle
464   (of-object "EmpathyContactFactory")
465   (c-name "empathy_contact_factory_get_from_handle")
466   (return-type "EmpathyContact*")
467   (parameters
468     '("McAccount*" "account")
469     '("guint" "handle")
470   )
471 )
472
473 (define-method get_from_handles
474   (of-object "EmpathyContactFactory")
475   (c-name "empathy_contact_factory_get_from_handles")
476   (return-type "GList*")
477   (parameters
478     '("McAccount*" "account")
479     '("GArray*" "handles")
480   )
481 )
482
483 (define-method set_alias
484   (of-object "EmpathyContactFactory")
485   (c-name "empathy_contact_factory_set_alias")
486   (return-type "none")
487   (parameters
488     '("EmpathyContact*" "contact")
489     '("const-gchar*" "alias")
490   )
491 )
492
493 (define-method set_avatar
494   (of-object "EmpathyContactFactory")
495   (c-name "empathy_contact_factory_set_avatar")
496   (return-type "none")
497   (parameters
498     '("McAccount*" "account")
499     '("const-gchar*" "data")
500     '("gsize" "size")
501     '("const-gchar*" "mime_type")
502   )
503 )
504
505
506
507 ;; From empathy-contact-groups.h
508
509 (define-function empathy_contact_groups_get_all
510   (c-name "empathy_contact_groups_get_all")
511   (return-type "none")
512 )
513
514 (define-function empathy_contact_group_get_expanded
515   (c-name "empathy_contact_group_get_expanded")
516   (return-type "gboolean")
517   (parameters
518     '("const-gchar*" "group")
519   )
520 )
521
522 (define-function empathy_contact_group_set_expanded
523   (c-name "empathy_contact_group_set_expanded")
524   (return-type "none")
525   (parameters
526     '("const-gchar*" "group")
527     '("gboolean" "expanded")
528   )
529 )
530
531
532
533 ;; From empathy-contact.h
534
535 (define-function empathy_contact_get_type
536   (c-name "empathy_contact_get_type")
537   (return-type "GType")
538 )
539
540 (define-function empathy_contact_new
541   (c-name "empathy_contact_new")
542   (is-constructor-of "EmpathyContact")
543   (return-type "EmpathyContact*")
544   (parameters
545     '("McAccount*" "account")
546   )
547 )
548
549 (define-function empathy_contact_new_full
550   (c-name "empathy_contact_new_full")
551   (return-type "EmpathyContact*")
552   (parameters
553     '("McAccount*" "account")
554     '("const-gchar*" "id")
555     '("const-gchar*" "name")
556   )
557 )
558
559 (define-method get_id
560   (of-object "EmpathyContact")
561   (c-name "empathy_contact_get_id")
562   (return-type "const-gchar*")
563 )
564
565 (define-method set_id
566   (of-object "EmpathyContact")
567   (c-name "empathy_contact_set_id")
568   (return-type "none")
569   (parameters
570     '("const-gchar*" "id")
571   )
572 )
573
574 (define-method get_name
575   (of-object "EmpathyContact")
576   (c-name "empathy_contact_get_name")
577   (return-type "const-gchar*")
578 )
579
580 (define-method set_name
581   (of-object "EmpathyContact")
582   (c-name "empathy_contact_set_name")
583   (return-type "none")
584   (parameters
585     '("const-gchar*" "name")
586   )
587 )
588
589 (define-method get_avatar
590   (of-object "EmpathyContact")
591   (c-name "empathy_contact_get_avatar")
592   (return-type "EmpathyAvatar*")
593 )
594
595 (define-method set_avatar
596   (of-object "EmpathyContact")
597   (c-name "empathy_contact_set_avatar")
598   (return-type "none")
599   (parameters
600     '("EmpathyAvatar*" "avatar")
601   )
602 )
603
604 (define-method get_account
605   (of-object "EmpathyContact")
606   (c-name "empathy_contact_get_account")
607   (return-type "McAccount*")
608 )
609
610 (define-method set_account
611   (of-object "EmpathyContact")
612   (c-name "empathy_contact_set_account")
613   (return-type "none")
614   (parameters
615     '("McAccount*" "account")
616   )
617 )
618
619 (define-method get_presence
620   (of-object "EmpathyContact")
621   (c-name "empathy_contact_get_presence")
622   (return-type "McPresence")
623 )
624
625 (define-method set_presence
626   (of-object "EmpathyContact")
627   (c-name "empathy_contact_set_presence")
628   (return-type "none")
629   (parameters
630     '("McPresence" "presence")
631   )
632 )
633
634 (define-method get_presence_message
635   (of-object "EmpathyContact")
636   (c-name "empathy_contact_get_presence_message")
637   (return-type "const-gchar*")
638 )
639
640 (define-method set_presence_message
641   (of-object "EmpathyContact")
642   (c-name "empathy_contact_set_presence_message")
643   (return-type "none")
644   (parameters
645     '("const-gchar*" "message")
646   )
647 )
648
649 (define-method get_handle
650   (of-object "EmpathyContact")
651   (c-name "empathy_contact_get_handle")
652   (return-type "guint")
653 )
654
655 (define-method set_handle
656   (of-object "EmpathyContact")
657   (c-name "empathy_contact_set_handle")
658   (return-type "none")
659   (parameters
660     '("guint" "handle")
661   )
662 )
663
664 (define-method get_capabilities
665   (of-object "EmpathyContact")
666   (c-name "empathy_contact_get_capabilities")
667   (return-type "EmpathyCapabilities")
668 )
669
670 (define-method set_capabilities
671   (of-object "EmpathyContact")
672   (c-name "empathy_contact_set_capabilities")
673   (return-type "none")
674   (parameters
675     '("EmpathyCapabilities" "capabilities")
676   )
677 )
678
679 (define-method is_user
680   (of-object "EmpathyContact")
681   (c-name "empathy_contact_is_user")
682   (return-type "gboolean")
683 )
684
685 (define-method set_is_user
686   (of-object "EmpathyContact")
687   (c-name "empathy_contact_set_is_user")
688   (return-type "none")
689   (parameters
690     '("gboolean" "is_user")
691   )
692 )
693
694 (define-method is_online
695   (of-object "EmpathyContact")
696   (c-name "empathy_contact_is_online")
697   (return-type "gboolean")
698 )
699
700 (define-method get_status
701   (of-object "EmpathyContact")
702   (c-name "empathy_contact_get_status")
703   (return-type "const-gchar*")
704 )
705
706 (define-method can_voip
707   (of-object "EmpathyContact")
708   (c-name "empathy_contact_can_voip")
709   (return-type "gboolean")
710 )
711
712 (define-function empathy_contact_equal
713   (c-name "empathy_contact_equal")
714   (return-type "gboolean")
715   (parameters
716     '("gconstpointer" "v1")
717     '("gconstpointer" "v2")
718   )
719 )
720
721 (define-function empathy_contact_hash
722   (c-name "empathy_contact_hash")
723   (return-type "guint")
724   (parameters
725     '("gconstpointer" "key")
726   )
727 )
728
729
730
731 ;; From empathy-contact-list.h
732
733 (define-function empathy_contact_list_get_type
734   (c-name "empathy_contact_list_get_type")
735   (return-type "GType")
736 )
737
738 (define-method add
739   (of-object "EmpathyContactList")
740   (c-name "empathy_contact_list_add")
741   (return-type "none")
742   (parameters
743     '("EmpathyContact*" "contact")
744     '("const-gchar*" "message")
745   )
746 )
747
748 (define-method remove
749   (of-object "EmpathyContactList")
750   (c-name "empathy_contact_list_remove")
751   (return-type "none")
752   (parameters
753     '("EmpathyContact*" "contact")
754     '("const-gchar*" "message")
755   )
756 )
757
758 (define-method get_members
759   (of-object "EmpathyContactList")
760   (c-name "empathy_contact_list_get_members")
761   (return-type "GList*")
762 )
763
764 (define-method get_pendings
765   (of-object "EmpathyContactList")
766   (c-name "empathy_contact_list_get_pendings")
767   (return-type "GList*")
768 )
769
770 (define-method get_all_groups
771   (of-object "EmpathyContactList")
772   (c-name "empathy_contact_list_get_all_groups")
773   (return-type "GList*")
774 )
775
776 (define-method get_groups
777   (of-object "EmpathyContactList")
778   (c-name "empathy_contact_list_get_groups")
779   (return-type "GList*")
780   (parameters
781     '("EmpathyContact*" "contact")
782   )
783 )
784
785 (define-method add_to_group
786   (of-object "EmpathyContactList")
787   (c-name "empathy_contact_list_add_to_group")
788   (return-type "none")
789   (parameters
790     '("EmpathyContact*" "contact")
791     '("const-gchar*" "group")
792   )
793 )
794
795 (define-method remove_from_group
796   (of-object "EmpathyContactList")
797   (c-name "empathy_contact_list_remove_from_group")
798   (return-type "none")
799   (parameters
800     '("EmpathyContact*" "contact")
801     '("const-gchar*" "group")
802   )
803 )
804
805 (define-method rename_group
806   (of-object "EmpathyContactList")
807   (c-name "empathy_contact_list_rename_group")
808   (return-type "none")
809   (parameters
810     '("const-gchar*" "old_group")
811     '("const-gchar*" "new_group")
812   )
813 )
814
815 (define-method remove_group
816   (of-object "EmpathyContactList")
817   (c-name "empathy_contact_list_remove_group")
818   (return-type "none")
819   (parameters
820     '("const-gchar*" "group")
821   )
822 )
823
824
825
826 ;; From empathy-contact-manager.h
827
828 (define-function empathy_contact_manager_get_type
829   (c-name "empathy_contact_manager_get_type")
830   (return-type "GType")
831 )
832
833 (define-function empathy_contact_manager_new
834   (c-name "empathy_contact_manager_new")
835   (is-constructor-of "EmpathyContactManager")
836   (return-type "EmpathyContactManager*")
837 )
838
839 (define-method get_list
840   (of-object "EmpathyContactManager")
841   (c-name "empathy_contact_manager_get_list")
842   (return-type "EmpathyTpContactList*")
843   (parameters
844     '("McAccount*" "account")
845   )
846 )
847
848
849
850 ;; From empathy-debug.h
851
852 (define-function empathy_debug_impl
853   (c-name "empathy_debug_impl")
854   (return-type "none")
855   (parameters
856     '("const-gchar*" "domain")
857     '("const-gchar*" "msg")
858   )
859   (varargs #t)
860 )
861
862 (define-function empathy_debug_set_log_file_from_env
863   (c-name "empathy_debug_set_log_file_from_env")
864   (return-type "none")
865 )
866
867
868
869 ;; From empathy-filter.h
870
871 (define-function empathy_filter_get_type
872   (c-name "empathy_filter_get_type")
873   (return-type "GType")
874 )
875
876 (define-function empathy_filter_new
877   (c-name "empathy_filter_new")
878   (is-constructor-of "EmpathyFilter")
879   (return-type "EmpathyFilter*")
880   (parameters
881     '("const-gchar*" "bus_name")
882     '("const-gchar*" "object_path")
883     '("const-gchar*" "channel_type")
884     '("guint" "priority")
885     '("guint" "flags")
886   )
887 )
888
889 (define-method process
890   (of-object "EmpathyFilter")
891   (c-name "empathy_filter_process")
892   (return-type "none")
893   (parameters
894     '("TpChan*" "tp_chan")
895     '("gboolean" "process")
896   )
897 )
898
899
900
901 ;; From empathy-idle.h
902
903 (define-function empathy_idle_get_type
904   (c-name "empathy_idle_get_type")
905   (return-type "GType")
906 )
907
908 (define-function empathy_idle_new
909   (c-name "empathy_idle_new")
910   (is-constructor-of "EmpathyIdle")
911   (return-type "EmpathyIdle*")
912 )
913
914 (define-method get_state
915   (of-object "EmpathyIdle")
916   (c-name "empathy_idle_get_state")
917   (return-type "McPresence")
918 )
919
920 (define-method set_state
921   (of-object "EmpathyIdle")
922   (c-name "empathy_idle_set_state")
923   (return-type "none")
924   (parameters
925     '("McPresence" "state")
926   )
927 )
928
929 (define-method get_status
930   (of-object "EmpathyIdle")
931   (c-name "empathy_idle_get_status")
932   (return-type "const-gchar*")
933 )
934
935 (define-method set_status
936   (of-object "EmpathyIdle")
937   (c-name "empathy_idle_set_status")
938   (return-type "none")
939   (parameters
940     '("const-gchar*" "status")
941   )
942 )
943
944 (define-method get_flash_state
945   (of-object "EmpathyIdle")
946   (c-name "empathy_idle_get_flash_state")
947   (return-type "McPresence")
948 )
949
950 (define-method set_flash_state
951   (of-object "EmpathyIdle")
952   (c-name "empathy_idle_set_flash_state")
953   (return-type "none")
954   (parameters
955     '("McPresence" "state")
956   )
957 )
958
959 (define-method set_presence
960   (of-object "EmpathyIdle")
961   (c-name "empathy_idle_set_presence")
962   (return-type "none")
963   (parameters
964     '("McPresence" "state")
965     '("const-gchar*" "status")
966   )
967 )
968
969 (define-method get_auto_away
970   (of-object "EmpathyIdle")
971   (c-name "empathy_idle_get_auto_away")
972   (return-type "gboolean")
973 )
974
975 (define-method set_auto_away
976   (of-object "EmpathyIdle")
977   (c-name "empathy_idle_set_auto_away")
978   (return-type "none")
979   (parameters
980     '("gboolean" "auto_away")
981   )
982 )
983
984 (define-method get_use_nm
985   (of-object "EmpathyIdle")
986   (c-name "empathy_idle_get_use_nm")
987   (return-type "gboolean")
988 )
989
990 (define-method set_use_nm
991   (of-object "EmpathyIdle")
992   (c-name "empathy_idle_set_use_nm")
993   (return-type "none")
994   (parameters
995     '("gboolean" "use_nm")
996   )
997 )
998
999
1000
1001 ;; From empathy-irc-network.h
1002
1003 (define-function empathy_irc_network_get_type
1004   (c-name "empathy_irc_network_get_type")
1005   (return-type "GType")
1006 )
1007
1008 (define-function empathy_irc_network_new
1009   (c-name "empathy_irc_network_new")
1010   (is-constructor-of "EmpathyIrcNetwork")
1011   (return-type "EmpathyIrcNetwork*")
1012   (parameters
1013     '("const-gchar*" "name")
1014   )
1015 )
1016
1017 (define-method get_servers
1018   (of-object "EmpathyIrcNetwork")
1019   (c-name "empathy_irc_network_get_servers")
1020   (return-type "GSList*")
1021 )
1022
1023 (define-method append_server
1024   (of-object "EmpathyIrcNetwork")
1025   (c-name "empathy_irc_network_append_server")
1026   (return-type "none")
1027   (parameters
1028     '("EmpathyIrcServer*" "server")
1029   )
1030 )
1031
1032 (define-method remove_server
1033   (of-object "EmpathyIrcNetwork")
1034   (c-name "empathy_irc_network_remove_server")
1035   (return-type "none")
1036   (parameters
1037     '("EmpathyIrcServer*" "server")
1038   )
1039 )
1040
1041 (define-method set_server_position
1042   (of-object "EmpathyIrcNetwork")
1043   (c-name "empathy_irc_network_set_server_position")
1044   (return-type "none")
1045   (parameters
1046     '("EmpathyIrcServer*" "server")
1047     '("gint" "pos")
1048   )
1049 )
1050
1051
1052
1053 ;; From empathy-irc-network-manager.h
1054
1055 (define-function empathy_irc_network_manager_get_type
1056   (c-name "empathy_irc_network_manager_get_type")
1057   (return-type "GType")
1058 )
1059
1060 (define-function empathy_irc_network_manager_new
1061   (c-name "empathy_irc_network_manager_new")
1062   (is-constructor-of "EmpathyIrcNetworkManager")
1063   (return-type "EmpathyIrcNetworkManager*")
1064   (parameters
1065     '("const-gchar*" "global_file")
1066     '("const-gchar*" "user_file")
1067   )
1068 )
1069
1070 (define-method add
1071   (of-object "EmpathyIrcNetworkManager")
1072   (c-name "empathy_irc_network_manager_add")
1073   (return-type "none")
1074   (parameters
1075     '("EmpathyIrcNetwork*" "network")
1076   )
1077 )
1078
1079 (define-method remove
1080   (of-object "EmpathyIrcNetworkManager")
1081   (c-name "empathy_irc_network_manager_remove")
1082   (return-type "none")
1083   (parameters
1084     '("EmpathyIrcNetwork*" "network")
1085   )
1086 )
1087
1088 (define-method get_networks
1089   (of-object "EmpathyIrcNetworkManager")
1090   (c-name "empathy_irc_network_manager_get_networks")
1091   (return-type "GSList*")
1092 )
1093
1094 (define-method find_network_by_address
1095   (of-object "EmpathyIrcNetworkManager")
1096   (c-name "empathy_irc_network_manager_find_network_by_address")
1097   (return-type "EmpathyIrcNetwork*")
1098   (parameters
1099     '("const-gchar*" "address")
1100   )
1101 )
1102
1103
1104
1105 ;; From empathy-irc-server.h
1106
1107 (define-function empathy_irc_server_get_type
1108   (c-name "empathy_irc_server_get_type")
1109   (return-type "GType")
1110 )
1111
1112 (define-function empathy_irc_server_new
1113   (c-name "empathy_irc_server_new")
1114   (is-constructor-of "EmpathyIrcServer")
1115   (return-type "EmpathyIrcServer*")
1116   (parameters
1117     '("const-gchar*" "address")
1118     '("guint" "port")
1119     '("gboolean" "ssl")
1120   )
1121 )
1122
1123
1124
1125 ;; From empathy-log-manager.h
1126
1127 (define-function empathy_log_manager_get_type
1128   (c-name "empathy_log_manager_get_type")
1129   (return-type "GType")
1130 )
1131
1132 (define-function empathy_log_manager_new
1133   (c-name "empathy_log_manager_new")
1134   (is-constructor-of "EmpathyLogManager")
1135   (return-type "EmpathyLogManager*")
1136 )
1137
1138 (define-method add_message
1139   (of-object "EmpathyLogManager")
1140   (c-name "empathy_log_manager_add_message")
1141   (return-type "none")
1142   (parameters
1143     '("const-gchar*" "chat_id")
1144     '("gboolean" "chatroom")
1145     '("EmpathyMessage*" "message")
1146   )
1147 )
1148
1149 (define-method exists
1150   (of-object "EmpathyLogManager")
1151   (c-name "empathy_log_manager_exists")
1152   (return-type "gboolean")
1153   (parameters
1154     '("McAccount*" "account")
1155     '("const-gchar*" "chat_id")
1156     '("gboolean" "chatroom")
1157   )
1158 )
1159
1160 (define-method get_dates
1161   (of-object "EmpathyLogManager")
1162   (c-name "empathy_log_manager_get_dates")
1163   (return-type "GList*")
1164   (parameters
1165     '("McAccount*" "account")
1166     '("const-gchar*" "chat_id")
1167     '("gboolean" "chatroom")
1168   )
1169 )
1170
1171 (define-method get_messages_for_file
1172   (of-object "EmpathyLogManager")
1173   (c-name "empathy_log_manager_get_messages_for_file")
1174   (return-type "GList*")
1175   (parameters
1176     '("const-gchar*" "filename")
1177   )
1178 )
1179
1180 (define-method get_messages_for_date
1181   (of-object "EmpathyLogManager")
1182   (c-name "empathy_log_manager_get_messages_for_date")
1183   (return-type "GList*")
1184   (parameters
1185     '("McAccount*" "account")
1186     '("const-gchar*" "chat_id")
1187     '("gboolean" "chatroom")
1188     '("const-gchar*" "date")
1189   )
1190 )
1191
1192 (define-method get_last_messages
1193   (of-object "EmpathyLogManager")
1194   (c-name "empathy_log_manager_get_last_messages")
1195   (return-type "GList*")
1196   (parameters
1197     '("McAccount*" "account")
1198     '("const-gchar*" "chat_id")
1199     '("gboolean" "chatroom")
1200   )
1201 )
1202
1203 (define-method get_messages_for_file
1204   (of-object "EmpathyLogManager")
1205   (c-name "empathy_log_manager_get_messages_for_file")
1206   (return-type "GList*")
1207   (parameters
1208     '("const-gchar*" "filename")
1209   )
1210 )
1211
1212 (define-method get_chats
1213   (of-object "EmpathyLogManager")
1214   (c-name "empathy_log_manager_get_chats")
1215   (return-type "GList*")
1216   (parameters
1217     '("McAccount*" "account")
1218   )
1219 )
1220
1221 (define-method search_new
1222   (of-object "EmpathyLogManager")
1223   (c-name "empathy_log_manager_search_new")
1224   (return-type "GList*")
1225   (parameters
1226     '("const-gchar*" "text")
1227   )
1228 )
1229
1230 (define-function empathy_log_manager_search_free
1231   (c-name "empathy_log_manager_search_free")
1232   (return-type "none")
1233   (parameters
1234     '("GList*" "hits")
1235   )
1236 )
1237
1238 (define-function empathy_log_manager_get_date_readable
1239   (c-name "empathy_log_manager_get_date_readable")
1240   (return-type "gchar*")
1241   (parameters
1242     '("const-gchar*" "date")
1243   )
1244 )
1245
1246
1247
1248 ;; From empathy-message.h
1249
1250 (define-function empathy_message_get_gtype
1251   (c-name "empathy_message_get_gtype")
1252   (return-type "GType")
1253 )
1254
1255 (define-function empathy_message_new
1256   (c-name "empathy_message_new")
1257   (is-constructor-of "EmpathyMessage")
1258   (return-type "EmpathyMessage*")
1259   (parameters
1260     '("const-gchar*" "body")
1261   )
1262 )
1263
1264 (define-method get_type
1265   (of-object "EmpathyMessage")
1266   (c-name "empathy_message_get_type")
1267   (return-type "EmpathyMessageType")
1268 )
1269
1270 (define-method set_type
1271   (of-object "EmpathyMessage")
1272   (c-name "empathy_message_set_type")
1273   (return-type "none")
1274   (parameters
1275     '("EmpathyMessageType" "type")
1276   )
1277 )
1278
1279 (define-method get_sender
1280   (of-object "EmpathyMessage")
1281   (c-name "empathy_message_get_sender")
1282   (return-type "EmpathyContact*")
1283 )
1284
1285 (define-method set_sender
1286   (of-object "EmpathyMessage")
1287   (c-name "empathy_message_set_sender")
1288   (return-type "none")
1289   (parameters
1290     '("EmpathyContact*" "contact")
1291   )
1292 )
1293
1294 (define-method get_receiver
1295   (of-object "EmpathyMessage")
1296   (c-name "empathy_message_get_receiver")
1297   (return-type "EmpathyContact*")
1298 )
1299
1300 (define-method set_receiver
1301   (of-object "EmpathyMessage")
1302   (c-name "empathy_message_set_receiver")
1303   (return-type "none")
1304   (parameters
1305     '("EmpathyContact*" "contact")
1306   )
1307 )
1308
1309 (define-method get_body
1310   (of-object "EmpathyMessage")
1311   (c-name "empathy_message_get_body")
1312   (return-type "const-gchar*")
1313 )
1314
1315 (define-method set_body
1316   (of-object "EmpathyMessage")
1317   (c-name "empathy_message_set_body")
1318   (return-type "none")
1319   (parameters
1320     '("const-gchar*" "body")
1321   )
1322 )
1323
1324 (define-method get_timestamp
1325   (of-object "EmpathyMessage")
1326   (c-name "empathy_message_get_timestamp")
1327   (return-type "time_t")
1328 )
1329
1330 (define-method set_timestamp
1331   (of-object "EmpathyMessage")
1332   (c-name "empathy_message_set_timestamp")
1333   (return-type "none")
1334   (parameters
1335     '("time_t" "timestamp")
1336   )
1337 )
1338
1339 (define-method get_date_and_time
1340   (of-object "EmpathyMessage")
1341   (c-name "empathy_message_get_date_and_time")
1342   (return-type "GDate*")
1343   (parameters
1344     '("time_t*" "timestamp")
1345   )
1346 )
1347
1348 (define-function empathy_message_type_from_str
1349   (c-name "empathy_message_type_from_str")
1350   (return-type "EmpathyMessageType")
1351   (parameters
1352     '("const-gchar*" "type_str")
1353   )
1354 )
1355
1356 (define-method to_str
1357   (of-object "EmpathyMessageType")
1358   (c-name "empathy_message_type_to_str")
1359   (return-type "const-gchar*")
1360 )
1361
1362
1363
1364 ;; From empathy-status-presets.h
1365
1366 (define-function empathy_status_presets_get_all
1367   (c-name "empathy_status_presets_get_all")
1368   (return-type "none")
1369 )
1370
1371 (define-function empathy_status_presets_get
1372   (c-name "empathy_status_presets_get")
1373   (return-type "GList*")
1374   (parameters
1375     '("McPresence" "state")
1376     '("gint" "max_number")
1377   )
1378 )
1379
1380 (define-function empathy_status_presets_set_last
1381   (c-name "empathy_status_presets_set_last")
1382   (return-type "none")
1383   (parameters
1384     '("McPresence" "state")
1385     '("const-gchar*" "status")
1386   )
1387 )
1388
1389 (define-function empathy_status_presets_remove
1390   (c-name "empathy_status_presets_remove")
1391   (return-type "none")
1392   (parameters
1393     '("McPresence" "state")
1394     '("const-gchar*" "status")
1395   )
1396 )
1397
1398 (define-function empathy_status_presets_reset
1399   (c-name "empathy_status_presets_reset")
1400   (return-type "none")
1401 )
1402
1403 (define-function empathy_status_presets_get_default_state
1404   (c-name "empathy_status_presets_get_default_state")
1405   (return-type "McPresence")
1406 )
1407
1408 (define-function empathy_status_presets_get_default_status
1409   (c-name "empathy_status_presets_get_default_status")
1410   (return-type "const-gchar*")
1411 )
1412
1413 (define-function empathy_status_presets_set_default
1414   (c-name "empathy_status_presets_set_default")
1415   (return-type "none")
1416   (parameters
1417     '("McPresence" "state")
1418     '("const-gchar*" "status")
1419   )
1420 )
1421
1422 (define-function empathy_status_presets_clear_default
1423   (c-name "empathy_status_presets_clear_default")
1424   (return-type "none")
1425 )
1426
1427
1428
1429 ;; From empathy-time.h
1430
1431 (define-function empathy_time_get_current
1432   (c-name "empathy_time_get_current")
1433   (return-type "time_t")
1434 )
1435
1436 (define-function empathy_time_get_local_time
1437   (c-name "empathy_time_get_local_time")
1438   (return-type "time_t")
1439   (parameters
1440     '("struct-tm*" "tm")
1441   )
1442 )
1443
1444 (define-function empathy_time_parse
1445   (c-name "empathy_time_parse")
1446   (return-type "time_t")
1447   (parameters
1448     '("const-gchar*" "str")
1449   )
1450 )
1451
1452 (define-function empathy_time_to_string_utc
1453   (c-name "empathy_time_to_string_utc")
1454   (return-type "gchar*")
1455   (parameters
1456     '("time_t" "t")
1457     '("const-gchar*" "format")
1458   )
1459 )
1460
1461 (define-function empathy_time_to_string_local
1462   (c-name "empathy_time_to_string_local")
1463   (return-type "gchar*")
1464   (parameters
1465     '("time_t" "t")
1466     '("const-gchar*" "format")
1467   )
1468 )
1469
1470
1471
1472 ;; From empathy-tp-call.h
1473
1474 (define-function empathy_tp_call_get_type
1475   (c-name "empathy_tp_call_get_type")
1476   (return-type "GType")
1477 )
1478
1479 (define-function empathy_tp_call_new
1480   (c-name "empathy_tp_call_new")
1481   (is-constructor-of "EmpathyTpCall")
1482   (return-type "EmpathyTpCall*")
1483   (parameters
1484     '("TpConn*" "connection")
1485     '("TpChan*" "channel")
1486   )
1487 )
1488
1489 (define-method accept_incoming_call
1490   (of-object "EmpathyTpCall")
1491   (c-name "empathy_tp_call_accept_incoming_call")
1492   (return-type "none")
1493 )
1494
1495 (define-method close_channel
1496   (of-object "EmpathyTpCall")
1497   (c-name "empathy_tp_call_close_channel")
1498   (return-type "none")
1499 )
1500
1501 (define-method request_video_stream_direction
1502   (of-object "EmpathyTpCall")
1503   (c-name "empathy_tp_call_request_video_stream_direction")
1504   (return-type "none")
1505   (parameters
1506     '("gboolean" "is_sending")
1507   )
1508 )
1509
1510 (define-method add_preview_video
1511   (of-object "EmpathyTpCall")
1512   (c-name "empathy_tp_call_add_preview_video")
1513   (return-type "none")
1514   (parameters
1515     '("guint" "preview_video_socket_id")
1516   )
1517 )
1518
1519 (define-method remove_preview_video
1520   (of-object "EmpathyTpCall")
1521   (c-name "empathy_tp_call_remove_preview_video")
1522   (return-type "none")
1523   (parameters
1524     '("guint" "preview_video_socket_id")
1525   )
1526 )
1527
1528 (define-method add_output_video
1529   (of-object "EmpathyTpCall")
1530   (c-name "empathy_tp_call_add_output_video")
1531   (return-type "none")
1532   (parameters
1533     '("guint" "output_video_socket_id")
1534   )
1535 )
1536
1537 (define-method set_output_volume
1538   (of-object "EmpathyTpCall")
1539   (c-name "empathy_tp_call_set_output_volume")
1540   (return-type "none")
1541   (parameters
1542     '("guint" "volume")
1543   )
1544 )
1545
1546 (define-method mute_output
1547   (of-object "EmpathyTpCall")
1548   (c-name "empathy_tp_call_mute_output")
1549   (return-type "none")
1550   (parameters
1551     '("gboolean" "is_muted")
1552   )
1553 )
1554
1555 (define-method mute_input
1556   (of-object "EmpathyTpCall")
1557   (c-name "empathy_tp_call_mute_input")
1558   (return-type "none")
1559   (parameters
1560     '("gboolean" "is_muted")
1561   )
1562 )
1563
1564
1565
1566 ;; From empathy-tp-chat.h
1567
1568 (define-function empathy_tp_chat_get_type
1569   (c-name "empathy_tp_chat_get_type")
1570   (return-type "GType")
1571 )
1572
1573 (define-function empathy_tp_chat_new
1574   (c-name "empathy_tp_chat_new")
1575   (is-constructor-of "EmpathyTpChat")
1576   (return-type "EmpathyTpChat*")
1577   (parameters
1578     '("McAccount*" "account")
1579     '("TpChan*" "tp_chan")
1580   )
1581 )
1582
1583 (define-function empathy_tp_chat_new_with_contact
1584   (c-name "empathy_tp_chat_new_with_contact")
1585   (return-type "EmpathyTpChat*")
1586   (parameters
1587     '("EmpathyContact*" "contact")
1588   )
1589 )
1590
1591 (define-method get_acknowledge
1592   (of-object "EmpathyTpChat")
1593   (c-name "empathy_tp_chat_get_acknowledge")
1594   (return-type "gboolean")
1595 )
1596
1597 (define-method set_acknowledge
1598   (of-object "EmpathyTpChat")
1599   (c-name "empathy_tp_chat_set_acknowledge")
1600   (return-type "none")
1601   (parameters
1602     '("gboolean" "acknowledge")
1603   )
1604 )
1605
1606 (define-method get_account
1607   (of-object "EmpathyTpChat")
1608   (c-name "empathy_tp_chat_get_account")
1609   (return-type "McAccount*")
1610 )
1611
1612 (define-method get_channel
1613   (of-object "EmpathyTpChat")
1614   (c-name "empathy_tp_chat_get_channel")
1615   (return-type "TpChan*")
1616 )
1617
1618 (define-method get_pendings
1619   (of-object "EmpathyTpChat")
1620   (c-name "empathy_tp_chat_get_pendings")
1621   (return-type "GList*")
1622 )
1623
1624 (define-method send
1625   (of-object "EmpathyTpChat")
1626   (c-name "empathy_tp_chat_send")
1627   (return-type "none")
1628   (parameters
1629     '("EmpathyMessage*" "message")
1630   )
1631 )
1632
1633 (define-method set_state
1634   (of-object "EmpathyTpChat")
1635   (c-name "empathy_tp_chat_set_state")
1636   (return-type "none")
1637   (parameters
1638     '("TpChannelChatState" "state")
1639   )
1640 )
1641
1642 (define-method get_id
1643   (of-object "EmpathyTpChat")
1644   (c-name "empathy_tp_chat_get_id")
1645   (return-type "const-gchar*")
1646 )
1647
1648
1649
1650 ;; From empathy-tp-chatroom.h
1651
1652 (define-function empathy_tp_chatroom_get_type
1653   (c-name "empathy_tp_chatroom_get_type")
1654   (return-type "GType")
1655 )
1656
1657 (define-function empathy_tp_chatroom_new
1658   (c-name "empathy_tp_chatroom_new")
1659   (is-constructor-of "EmpathyTpChatroom")
1660   (return-type "EmpathyTpChatroom*")
1661   (parameters
1662     '("McAccount*" "account")
1663     '("TpChan*" "tp_chan")
1664   )
1665 )
1666
1667 (define-method get_invitation
1668   (of-object "EmpathyTpChatroom")
1669   (c-name "empathy_tp_chatroom_get_invitation")
1670   (return-type "gboolean")
1671   (parameters
1672     '("EmpathyContact**" "contact")
1673     '("const-gchar**" "message")
1674   )
1675 )
1676
1677 (define-method accept_invitation
1678   (of-object "EmpathyTpChatroom")
1679   (c-name "empathy_tp_chatroom_accept_invitation")
1680   (return-type "none")
1681 )
1682
1683 (define-method set_topic
1684   (of-object "EmpathyTpChatroom")
1685   (c-name "empathy_tp_chatroom_set_topic")
1686   (return-type "none")
1687   (parameters
1688     '("const-gchar*" "topic")
1689   )
1690 )
1691
1692
1693
1694 ;; From empathy-tp-contact-factory.h
1695
1696 (define-function empathy_tp_contact_factory_get_type
1697   (c-name "empathy_tp_contact_factory_get_type")
1698   (return-type "GType")
1699 )
1700
1701 (define-function empathy_tp_contact_factory_new
1702   (c-name "empathy_tp_contact_factory_new")
1703   (is-constructor-of "EmpathyTpContactFactory")
1704   (return-type "EmpathyTpContactFactory*")
1705   (parameters
1706     '("McAccount*" "account")
1707   )
1708 )
1709
1710 (define-method get_user
1711   (of-object "EmpathyTpContactFactory")
1712   (c-name "empathy_tp_contact_factory_get_user")
1713   (return-type "EmpathyContact*")
1714 )
1715
1716 (define-method get_from_id
1717   (of-object "EmpathyTpContactFactory")
1718   (c-name "empathy_tp_contact_factory_get_from_id")
1719   (return-type "EmpathyContact*")
1720   (parameters
1721     '("const-gchar*" "id")
1722   )
1723 )
1724
1725 (define-method get_from_handle
1726   (of-object "EmpathyTpContactFactory")
1727   (c-name "empathy_tp_contact_factory_get_from_handle")
1728   (return-type "EmpathyContact*")
1729   (parameters
1730     '("guint" "handle")
1731   )
1732 )
1733
1734 (define-method get_from_handles
1735   (of-object "EmpathyTpContactFactory")
1736   (c-name "empathy_tp_contact_factory_get_from_handles")
1737   (return-type "GList*")
1738   (parameters
1739     '("GArray*" "handles")
1740   )
1741 )
1742
1743 (define-method set_alias
1744   (of-object "EmpathyTpContactFactory")
1745   (c-name "empathy_tp_contact_factory_set_alias")
1746   (return-type "none")
1747   (parameters
1748     '("EmpathyContact*" "contact")
1749     '("const-gchar*" "alias")
1750   )
1751 )
1752
1753 (define-method set_avatar
1754   (of-object "EmpathyTpContactFactory")
1755   (c-name "empathy_tp_contact_factory_set_avatar")
1756   (return-type "none")
1757   (parameters
1758     '("const-gchar*" "data")
1759     '("gsize" "size")
1760     '("const-gchar*" "mime_type")
1761   )
1762 )
1763
1764
1765
1766 ;; From empathy-tp-contact-list.h
1767
1768 (define-function empathy_tp_contact_list_get_type
1769   (c-name "empathy_tp_contact_list_get_type")
1770   (return-type "GType")
1771 )
1772
1773 (define-function empathy_tp_contact_list_new
1774   (c-name "empathy_tp_contact_list_new")
1775   (is-constructor-of "EmpathyTpContactList")
1776   (return-type "EmpathyTpContactList*")
1777   (parameters
1778     '("McAccount*" "account")
1779   )
1780 )
1781
1782 (define-method get_account
1783   (of-object "EmpathyTpContactList")
1784   (c-name "empathy_tp_contact_list_get_account")
1785   (return-type "McAccount*")
1786 )
1787
1788
1789
1790 ;; From empathy-tp-group.h
1791
1792 (define-function empathy_tp_group_get_type
1793   (c-name "empathy_tp_group_get_type")
1794   (return-type "GType")
1795 )
1796
1797 (define-function empathy_tp_group_new
1798   (c-name "empathy_tp_group_new")
1799   (is-constructor-of "EmpathyTpGroup")
1800   (return-type "EmpathyTpGroup*")
1801   (parameters
1802     '("McAccount*" "account")
1803     '("TpChan*" "tp_chan")
1804   )
1805 )
1806
1807 (define-method close
1808   (of-object "EmpathyTpGroup")
1809   (c-name "empathy_tp_group_close")
1810   (return-type "none")
1811 )
1812
1813 (define-method add_members
1814   (of-object "EmpathyTpGroup")
1815   (c-name "empathy_tp_group_add_members")
1816   (return-type "none")
1817   (parameters
1818     '("GList*" "contacts")
1819     '("const-gchar*" "message")
1820   )
1821 )
1822
1823 (define-method add_member
1824   (of-object "EmpathyTpGroup")
1825   (c-name "empathy_tp_group_add_member")
1826   (return-type "none")
1827   (parameters
1828     '("EmpathyContact*" "contact")
1829     '("const-gchar*" "message")
1830   )
1831 )
1832
1833 (define-method remove_members
1834   (of-object "EmpathyTpGroup")
1835   (c-name "empathy_tp_group_remove_members")
1836   (return-type "none")
1837   (parameters
1838     '("GList*" "contacts")
1839     '("const-gchar*" "message")
1840   )
1841 )
1842
1843 (define-method remove_member
1844   (of-object "EmpathyTpGroup")
1845   (c-name "empathy_tp_group_remove_member")
1846   (return-type "none")
1847   (parameters
1848     '("EmpathyContact*" "contact")
1849     '("const-gchar*" "message")
1850   )
1851 )
1852
1853 (define-method get_members
1854   (of-object "EmpathyTpGroup")
1855   (c-name "empathy_tp_group_get_members")
1856   (return-type "GList*")
1857 )
1858
1859 (define-method get_local_pendings
1860   (of-object "EmpathyTpGroup")
1861   (c-name "empathy_tp_group_get_local_pendings")
1862   (return-type "GList*")
1863 )
1864
1865 (define-method get_remote_pendings
1866   (of-object "EmpathyTpGroup")
1867   (c-name "empathy_tp_group_get_remote_pendings")
1868   (return-type "GList*")
1869 )
1870
1871 (define-method get_name
1872   (of-object "EmpathyTpGroup")
1873   (c-name "empathy_tp_group_get_name")
1874   (return-type "const-gchar*")
1875 )
1876
1877 (define-method get_self_contact
1878   (of-object "EmpathyTpGroup")
1879   (c-name "empathy_tp_group_get_self_contact")
1880   (return-type "EmpathyContact*")
1881 )
1882
1883 (define-method get_object_path
1884   (of-object "EmpathyTpGroup")
1885   (c-name "empathy_tp_group_get_object_path")
1886   (return-type "const-gchar*")
1887 )
1888
1889 (define-method get_channel
1890   (of-object "EmpathyTpGroup")
1891   (c-name "empathy_tp_group_get_channel")
1892   (return-type "TpChan*")
1893 )
1894
1895 (define-method is_member
1896   (of-object "EmpathyTpGroup")
1897   (c-name "empathy_tp_group_is_member")
1898   (return-type "gboolean")
1899   (parameters
1900     '("EmpathyContact*" "contact")
1901   )
1902 )
1903
1904 (define-function empathy_pending_info_new
1905   (c-name "empathy_pending_info_new")
1906   (is-constructor-of "EmpathyPendingInfo")
1907   (return-type "EmpathyPendingInfo*")
1908   (parameters
1909     '("EmpathyContact*" "member")
1910     '("EmpathyContact*" "actor")
1911     '("const-gchar*" "message")
1912   )
1913 )
1914
1915 (define-method free
1916   (of-object "EmpathyPendingInfo")
1917   (c-name "empathy_pending_info_free")
1918   (return-type "none")
1919 )
1920
1921
1922
1923 ;; From empathy-tp-roomlist.h
1924
1925 (define-function empathy_tp_roomlist_get_type
1926   (c-name "empathy_tp_roomlist_get_type")
1927   (return-type "GType")
1928 )
1929
1930 (define-function empathy_tp_roomlist_new
1931   (c-name "empathy_tp_roomlist_new")
1932   (is-constructor-of "EmpathyTpRoomlist")
1933   (return-type "EmpathyTpRoomlist*")
1934   (parameters
1935     '("McAccount*" "account")
1936   )
1937 )
1938
1939 (define-method is_listing
1940   (of-object "EmpathyTpRoomlist")
1941   (c-name "empathy_tp_roomlist_is_listing")
1942   (return-type "gboolean")
1943 )
1944
1945 (define-method start
1946   (of-object "EmpathyTpRoomlist")
1947   (c-name "empathy_tp_roomlist_start")
1948   (return-type "none")
1949 )
1950
1951 (define-method stop
1952   (of-object "EmpathyTpRoomlist")
1953   (c-name "empathy_tp_roomlist_stop")
1954   (return-type "none")
1955 )
1956
1957
1958
1959 ;; From empathy-utils.h
1960
1961 (define-function empathy_substring
1962   (c-name "empathy_substring")
1963   (return-type "gchar*")
1964   (parameters
1965     '("const-gchar*" "str")
1966     '("gint" "start")
1967     '("gint" "end")
1968   )
1969 )
1970
1971 (define-function empathy_regex_match
1972   (c-name "empathy_regex_match")
1973   (return-type "gint")
1974   (parameters
1975     '("EmpathyRegExType" "type")
1976     '("const-gchar*" "msg")
1977     '("GArray*" "start")
1978     '("GArray*" "end")
1979   )
1980 )
1981
1982 (define-function empathy_strcasecmp
1983   (c-name "empathy_strcasecmp")
1984   (return-type "gint")
1985   (parameters
1986     '("const-gchar*" "s1")
1987     '("const-gchar*" "s2")
1988   )
1989 )
1990
1991 (define-function empathy_strncasecmp
1992   (c-name "empathy_strncasecmp")
1993   (return-type "gint")
1994   (parameters
1995     '("const-gchar*" "s1")
1996     '("const-gchar*" "s2")
1997     '("gsize" "n")
1998   )
1999 )
2000
2001 (define-function empathy_xml_validate
2002   (c-name "empathy_xml_validate")
2003   (return-type "gboolean")
2004   (parameters
2005     '("xmlDoc*" "doc")
2006     '("const-gchar*" "dtd_filename")
2007   )
2008 )
2009
2010 (define-function empathy_xml_node_get_child
2011   (c-name "empathy_xml_node_get_child")
2012   (return-type "xmlNodePtr")
2013   (parameters
2014     '("xmlNodePtr" "node")
2015     '("const-gchar*" "child_name")
2016   )
2017 )
2018
2019 (define-function empathy_xml_node_get_child_content
2020   (c-name "empathy_xml_node_get_child_content")
2021   (return-type "xmlChar*")
2022   (parameters
2023     '("xmlNodePtr" "node")
2024     '("const-gchar*" "child_name")
2025   )
2026 )
2027
2028 (define-function empathy_xml_node_find_child_prop_value
2029   (c-name "empathy_xml_node_find_child_prop_value")
2030   (return-type "xmlNodePtr")
2031   (parameters
2032     '("xmlNodePtr" "node")
2033     '("const-gchar*" "prop_name")
2034     '("const-gchar*" "prop_value")
2035   )
2036 )
2037
2038 (define-function empathy_account_hash
2039   (c-name "empathy_account_hash")
2040   (return-type "guint")
2041   (parameters
2042     '("gconstpointer" "key")
2043   )
2044 )
2045
2046 (define-function empathy_account_equal
2047   (c-name "empathy_account_equal")
2048   (return-type "gboolean")
2049   (parameters
2050     '("gconstpointer" "a")
2051     '("gconstpointer" "b")
2052   )
2053 )
2054
2055 (define-function empathy_mission_control_new
2056   (c-name "empathy_mission_control_new")
2057   (is-constructor-of "EmpathyMissionControl")
2058   (return-type "MissionControl*")
2059 )
2060
2061 (define-function empathy_inspect_handle
2062   (c-name "empathy_inspect_handle")
2063   (return-type "gchar*")
2064   (parameters
2065     '("McAccount*" "account")
2066     '("guint" "handle")
2067     '("guint" "handle_type")
2068   )
2069 )
2070
2071 (define-function empathy_inspect_channel
2072   (c-name "empathy_inspect_channel")
2073   (return-type "gchar*")
2074   (parameters
2075     '("McAccount*" "account")
2076     '("TpChan*" "tp_chan")
2077   )
2078 )
2079
2080 (define-function empathy_call_with_contact
2081   (c-name "empathy_call_with_contact")
2082   (return-type "none")
2083   (parameters
2084     '("EmpathyContact*" "contact")
2085   )
2086 )
2087
2088 (define-function empathy_call_with_contact_id
2089   (c-name "empathy_call_with_contact_id")
2090   (return-type "none")
2091   (parameters
2092     '("McAccount*" "account")
2093     '("const-gchar*" "contact_id")
2094   )
2095 )
2096
2097 (define-function empathy_chat_with_contact
2098   (c-name "empathy_chat_with_contact")
2099   (return-type "none")
2100   (parameters
2101     '("EmpathyContact*" "contact")
2102   )
2103 )
2104
2105 (define-function empathy_chat_with_contact_id
2106   (c-name "empathy_chat_with_contact_id")
2107   (return-type "none")
2108   (parameters
2109     '("McAccount*" "account")
2110     '("const-gchar*" "contact_id")
2111   )
2112 )
2113
2114 (define-function empathy_presence_get_default_message
2115   (c-name "empathy_presence_get_default_message")
2116   (return-type "const-gchar*")
2117   (parameters
2118     '("McPresence" "presence")
2119   )
2120 )
2121
2122 (define-function empathy_presence_to_str
2123   (c-name "empathy_presence_to_str")
2124   (return-type "const-gchar*")
2125   (parameters
2126     '("McPresence" "presence")
2127   )
2128 )
2129
2130 (define-function empathy_presence_from_str
2131   (c-name "empathy_presence_from_str")
2132   (return-type "McPresence")
2133   (parameters
2134     '("const-gchar*" "str")
2135   )
2136 )
2137
2138