diff options
author | Xavier Claessens <xclaesse@src.gnome.org> | 2008-04-20 05:04:25 +0800 |
---|---|---|
committer | Xavier Claessens <xclaesse@src.gnome.org> | 2008-04-20 05:04:25 +0800 |
commit | 236262c25f3660c7ed891eaafc89f7eeebfdc5c7 (patch) | |
tree | 993f16ca0e7fe4a06ca289e7a2468af109629fed /python/pyempathy | |
parent | 4c27cbce2a1e6d1b51c3a7f1a983c1278506120e (diff) | |
download | gsoc2013-empathy-236262c25f3660c7ed891eaafc89f7eeebfdc5c7.tar gsoc2013-empathy-236262c25f3660c7ed891eaafc89f7eeebfdc5c7.tar.gz gsoc2013-empathy-236262c25f3660c7ed891eaafc89f7eeebfdc5c7.tar.bz2 gsoc2013-empathy-236262c25f3660c7ed891eaafc89f7eeebfdc5c7.tar.lz gsoc2013-empathy-236262c25f3660c7ed891eaafc89f7eeebfdc5c7.tar.xz gsoc2013-empathy-236262c25f3660c7ed891eaafc89f7eeebfdc5c7.tar.zst gsoc2013-empathy-236262c25f3660c7ed891eaafc89f7eeebfdc5c7.zip |
Update python binding
svn path=/trunk/; revision=985
Diffstat (limited to 'python/pyempathy')
-rw-r--r-- | python/pyempathy/pyempathy.defs | 126 | ||||
-rw-r--r-- | python/pyempathy/pyempathy.override | 2 |
2 files changed, 128 insertions, 0 deletions
diff --git a/python/pyempathy/pyempathy.defs b/python/pyempathy/pyempathy.defs index 55ca3d6df..e77e0a938 100644 --- a/python/pyempathy/pyempathy.defs +++ b/python/pyempathy/pyempathy.defs @@ -141,6 +141,20 @@ (gtype-id "EMPATHY_TYPE_TP_ROOMLIST") ) +(define-object TpTube + (in-module "Empathy") + (parent "GObject") + (c-name "EmpathyTpTube") + (gtype-id "EMPATHY_TYPE_TP_TUBE") +) + +(define-object TubeHandler + (in-module "Empathy") + (parent "GObject") + (c-name "EmpathyTubeHandler") + (gtype-id "EMPATHY_TYPE_TUBE_HANDLER") +) + ;; Enumerations and flags ... (define-enum RegExType @@ -572,6 +586,25 @@ ) ) +(define-function empathy_connect_to_account_status_changed + (c-name "empathy_connect_to_account_status_changed") + (return-type "gpointer") + (parameters + '("MissionControl*" "mc") + '("GCallback" "handler") + '("gpointer" "user_data") + '("GClosureNotify" "free_func") + ) +) + +(define-function empathy_disconnect_account_status_changed + (c-name "empathy_disconnect_account_status_changed") + (return-type "none") + (parameters + '("gpointer" "token") + ) +) + ;; From empathy-message.h @@ -1584,6 +1617,12 @@ (return-type "gboolean") ) +(define-method get_members_count + (of-object "EmpathyTpChat") + (c-name "empathy_tp_chat_get_members_count") + (return-type "guint") +) + (define-method send (of-object "EmpathyTpChat") (c-name "empathy_tp_chat_send") @@ -1737,6 +1776,56 @@ +;; From empathy-tp-tube.h + +(define-function empathy_tp_tube_get_type + (c-name "empathy_tp_tube_get_type") + (return-type "GType") +) + +(define-function empathy_tp_tube_new + (c-name "empathy_tp_tube_new") + (is-constructor-of "EmpathyTpTube") + (return-type "EmpathyTpTube*") + (parameters + '("TpChannel*" "channel") + '("guint" "tube_id") + ) +) + +(define-function empathy_tp_tube_new_stream_tube + (c-name "empathy_tp_tube_new_stream_tube") + (return-type "EmpathyTpTube*") + (parameters + '("EmpathyContact*" "contact") + '("TpSocketAddressType" "type") + '("const-gchar*" "hostname") + '("guint" "port") + '("const-gchar*" "service") + ) +) + +(define-method accept_stream_tube + (of-object "EmpathyTpTube") + (c-name "empathy_tp_tube_accept_stream_tube") + (return-type "none") + (parameters + '("TpSocketAddressType" "type") + ) +) + +(define-method get_socket + (of-object "EmpathyTpTube") + (c-name "empathy_tp_tube_get_socket") + (return-type "none") + (parameters + '("gchar**" "hostname") + '("guint*" "port") + ) +) + + + ;; From empathy-chandler.h (define-function empathy_chandler_get_type @@ -2134,3 +2223,40 @@ ) + +;; From empathy-tube-handler.h + +(define-function empathy_tube_handler_get_type + (c-name "empathy_tube_handler_get_type") + (return-type "GType") +) + +(define-function empathy_tube_handler_new + (c-name "empathy_tube_handler_new") + (is-constructor-of "EmpathyTubeHandler") + (return-type "EmpathyTubeHandler*") + (parameters + '("TpTubeType" "type") + '("const-gchar*" "service") + ) +) + +(define-function empathy_tube_handler_build_bus_name + (c-name "empathy_tube_handler_build_bus_name") + (return-type "gchar*") + (parameters + '("TpTubeType" "type") + '("const-gchar*" "service") + ) +) + +(define-function empathy_tube_handler_build_object_path + (c-name "empathy_tube_handler_build_object_path") + (return-type "gchar*") + (parameters + '("TpTubeType" "type") + '("const-gchar*" "service") + ) +) + + diff --git a/python/pyempathy/pyempathy.override b/python/pyempathy/pyempathy.override index c5b70c17c..6960369cd 100644 --- a/python/pyempathy/pyempathy.override +++ b/python/pyempathy/pyempathy.override @@ -28,6 +28,8 @@ headers #include "empathy-tp-contact-list.h" #include "empathy-tp-group.h" #include "empathy-tp-roomlist.h" +#include "empathy-tp-tube.h" +#include "empathy-tube-handler.h" #include "empathy-utils.h" void empathy_add_constants(PyObject *module, const gchar *strip_prefix); |