(gtype-id "EMPATHY_TYPE_ACCOUNT_MANAGER")
)
+(define-object CallFactory
+ (in-module "Empathy")
+ (parent "GObject")
+ (c-name "EmpathyCallFactory")
+ (gtype-id "EMPATHY_TYPE_CALL_FACTORY")
+)
+
+(define-object CallHandler
+ (in-module "Empathy")
+ (parent "GObject")
+ (c-name "EmpathyCallHandler")
+ (gtype-id "EMPATHY_TYPE_CALL_HANDLER")
+)
+
(define-object Chatroom
(in-module "Empathy")
(parent "GObject")
)
)
+(define-method get_count
+ (of-object "EmpathyAccountManager")
+ (c-name "empathy_account_manager_get_count")
+ (return-type "int")
+)
+
;; From empathy-chatroom.h
+;; From empathy-call-factory.h
+
+(define-function call_factory_get_type
+ (c-name "empathy_call_factory_get_type")
+ (return-type "GType")
+)
+
+(define-function call_factory_initialise
+ (c-name "empathy_call_factory_initialise")
+ (return-type "EmpathyCallFactory*")
+)
+
+(define-function call_factory_get
+ (c-name "empathy_call_factory_get")
+ (return-type "EmpathyCallFactory*")
+)
+
+(define-method new_call
+ (of-object "EmpathyCallFactory")
+ (c-name "empathy_call_factory_new_call")
+ (return-type "none")
+ (parameters
+ '("EmpathyContact*" "contact")
+ )
+)
+
+(define-method claim_channel
+ (of-object "EmpathyCallFactory")
+ (c-name "empathy_call_factory_claim_channel")
+ (return-type "none")
+ (parameters
+ '("EmpathyDispatchOperation*" "operation")
+ )
+)
+
+
+
+;; From empathy-call-handler.h
+
+(define-function call_handler_get_type
+ (c-name "empathy_call_handler_get_type")
+ (return-type "GType")
+)
+
+(define-function call_handler_new_for_contact
+ (c-name "empathy_call_handler_new_for_contact")
+ (return-type "EmpathyCallHandler*")
+ (parameters
+ '("EmpathyContact*" "contact")
+ )
+)
+
+(define-function call_handler_new_for_channel
+ (c-name "empathy_call_handler_new_for_channel")
+ (return-type "EmpathyCallHandler*")
+ (parameters
+ '("EmpathyTpCall*" "call")
+ )
+)
+
+(define-method start_call
+ (of-object "EmpathyCallHandler")
+ (c-name "empathy_call_handler_start_call")
+ (return-type "none")
+)
+
+(define-method set_bus
+ (of-object "EmpathyCallHandler")
+ (c-name "empathy_call_handler_set_bus")
+ (return-type "none")
+ (parameters
+ '("GstBus*" "bus")
+ )
+)
+
+
+
;; From empathy-contact.h
(define-function contact_get_type
(return-type "GType")
)
+(define-method create_channel
+ (of-object "EmpathyDispatcher")
+ (c-name "empathy_dispatcher_create_channel")
+ (return-type "none")
+ (parameters
+ '("McAccount*" "account")
+ '("GHashTable*" "request")
+ '("EmpathyDispatcherRequestCb*" "callback")
+ '("gpointer" "user_data")
+ )
+)
+
(define-function dispatcher_call_with_contact
(c-name "empathy_dispatcher_call_with_contact")
(return-type "none")
)
)
+(define-method find_channel_class
+ (of-object "EmpathyDispatcher")
+ (c-name "empathy_dispatcher_find_channel_class")
+ (return-type "GStrv")
+ (parameters
+ '("McAccount*" "account")
+ '("const-gchar*" "channel_type")
+ '("guint" "handle_type")
+ )
+)
+
(define-function dispatcher_dup_singleton
(c-name "empathy_dispatcher_dup_singleton")
(return-type "EmpathyDispatcher*")
(define-method get_state
(of-object "EmpathyTpFile")
(c-name "empathy_tp_file_get_state")
- (return-type "EmpFileTransferState")
+ (return-type "guint")
(parameters
- '("EmpFileTransferStateChangeReason*" "reason")
+ '("guint*" "reason")
)
)
)
)
-(define-function start_call_with_contact
- (c-name "empathy_start_call_with_contact")
- (return-type "none")
- (parameters
- '("EmpathyContact*" "contact")
- )
+(define-function check_available_state
+ (c-name "empathy_check_available_state")
+ (return-type "gboolean")
)