Update python bindings
authorXavier Claessens <xclaesse@gmail.com>
Tue, 17 Mar 2009 20:09:36 +0000 (20:09 +0000)
committerXavier Claessens <xclaesse@src.gnome.org>
Tue, 17 Mar 2009 20:09:36 +0000 (20:09 +0000)
From: Xavier Claessens <xclaesse@gmail.com>

svn path=/trunk/; revision=2707

python/pyempathy/pyempathy.defs
python/pyempathy/pyempathy.override
python/pyempathygtk/pyempathygtk.defs
python/update-binding.sh

index 1a61b31b32b88454a8eb04804f05022e633b4c7d..66a269784741b1dcddca24bf58af077f8dfb92df 100644 (file)
   (gtype-id "EMPATHY_TYPE_LOG_MANAGER")
 )
 
+(define-object LogStoreEmpathy
+  (in-module "Empathy")
+  (parent "GObject")
+  (c-name "EmpathyLogStoreEmpathy")
+  (gtype-id "EMPATHY_TYPE_LOG_STORE_EMPATHY")
+)
+
 (define-object Message
   (in-module "Empathy")
   (parent "GObject")
   (return-type "none")
 )
 
-(define-method set_bus
+(define-method bus_message
   (of-object "EmpathyCallHandler")
-  (c-name "empathy_call_handler_set_bus")
+  (c-name "empathy_call_handler_bus_message")
   (return-type "none")
   (parameters
     '("GstBus*" "bus")
+    '("GstMessage*" "message")
   )
 )
 
   )
 )
 
-(define-method get_last_messages
+(define-method get_filtered_messages
   (of-object "EmpathyLogManager")
-  (c-name "empathy_log_manager_get_last_messages")
+  (c-name "empathy_log_manager_get_filtered_messages")
   (return-type "GList*")
   (parameters
     '("McAccount*" "account")
     '("const-gchar*" "chat_id")
     '("gboolean" "chatroom")
+    '("guint" "num_messages")
+    '("EmpathyLogMessageFilter" "filter")
+    '("gpointer" "user_data")
   )
 )
 
 
 
 
+;; From empathy-log-store.h
+
+(define-function log_store_get_type
+  (c-name "empathy_log_store_get_type")
+  (return-type "GType")
+)
+
+(define-method get_name
+  (of-object "EmpathyLogStore")
+  (c-name "empathy_log_store_get_name")
+  (return-type "const-gchar*")
+)
+
+(define-method exists
+  (of-object "EmpathyLogStore")
+  (c-name "empathy_log_store_exists")
+  (return-type "gboolean")
+  (parameters
+    '("McAccount*" "account")
+    '("const-gchar*" "chat_id")
+    '("gboolean" "chatroom")
+  )
+)
+
+(define-method add_message
+  (of-object "EmpathyLogStore")
+  (c-name "empathy_log_store_add_message")
+  (return-type "gboolean")
+  (parameters
+    '("const-gchar*" "chat_id")
+    '("gboolean" "chatroom")
+    '("EmpathyMessage*" "message")
+    '("GError**" "error")
+  )
+)
+
+(define-method get_dates
+  (of-object "EmpathyLogStore")
+  (c-name "empathy_log_store_get_dates")
+  (return-type "GList*")
+  (parameters
+    '("McAccount*" "account")
+    '("const-gchar*" "chat_id")
+    '("gboolean" "chatroom")
+  )
+)
+
+(define-method get_messages_for_date
+  (of-object "EmpathyLogStore")
+  (c-name "empathy_log_store_get_messages_for_date")
+  (return-type "GList*")
+  (parameters
+    '("McAccount*" "account")
+    '("const-gchar*" "chat_id")
+    '("gboolean" "chatroom")
+    '("const-gchar*" "date")
+  )
+)
+
+(define-method get_last_messages
+  (of-object "EmpathyLogStore")
+  (c-name "empathy_log_store_get_last_messages")
+  (return-type "GList*")
+  (parameters
+    '("McAccount*" "account")
+    '("const-gchar*" "chat_id")
+    '("gboolean" "chatroom")
+  )
+)
+
+(define-method get_chats
+  (of-object "EmpathyLogStore")
+  (c-name "empathy_log_store_get_chats")
+  (return-type "GList*")
+  (parameters
+    '("McAccount*" "account")
+  )
+)
+
+(define-method search_new
+  (of-object "EmpathyLogStore")
+  (c-name "empathy_log_store_search_new")
+  (return-type "GList*")
+  (parameters
+    '("const-gchar*" "text")
+  )
+)
+
+(define-method ack_message
+  (of-object "EmpathyLogStore")
+  (c-name "empathy_log_store_ack_message")
+  (return-type "none")
+  (parameters
+    '("const-gchar*" "chat_id")
+    '("gboolean" "chatroom")
+    '("EmpathyMessage*" "message")
+  )
+)
+
+(define-method get_filtered_messages
+  (of-object "EmpathyLogStore")
+  (c-name "empathy_log_store_get_filtered_messages")
+  (return-type "GList*")
+  (parameters
+    '("McAccount*" "account")
+    '("const-gchar*" "chat_id")
+    '("gboolean" "chatroom")
+    '("guint" "num_messages")
+    '("EmpathyLogMessageFilter" "filter")
+    '("gpointer" "user_data")
+  )
+)
+
+
+
+;; From empathy-log-store-empathy.h
+
+(define-function log_store_empathy_get_type
+  (c-name "empathy_log_store_empathy_get_type")
+  (return-type "GType")
+)
+
+
+
 ;; From empathy-message.h
 
 (define-function message_get_type
   )
 )
 
+(define-method equal
+  (of-object "EmpathyMessage")
+  (c-name "empathy_message_equal")
+  (return-type "gboolean")
+  (parameters
+    '("EmpathyMessage*" "message2")
+  )
+)
+
 
 
 ;; From empathy-status-presets.h
index a31253ece6962eb81c2971d37a5f9964426e4777..72d7ccb0ee8a3da32bfdf252a18823a5b6ae1794 100644 (file)
@@ -20,6 +20,7 @@ headers
 #include "empathy-irc-network-manager.h"
 #include "empathy-irc-server.h"
 #include "empathy-log-manager.h"
+#include "empathy-log-store-empathy.h"
 #include "empathy-message.h"
 #include "empathy-status-presets.h"
 #include "empathy-time.h"
index 2c5515da8d8e7f92a857af82548c98dad5262e92..c75c93efdebcf8bf9685161a6d8ac84ad03c7aa7 100644 (file)
   )
 )
 
+(define-enum GstVideoSrcChannel
+  (in-module "Empathy")
+  (c-name "EmpathyGstVideoSrcChannel")
+  (gtype-id "EMPATHY_TYPE_GST_VIDEO_SRC_CHANNEL")
+  (values
+    '("empathy-gst-video-src-channel-contrast" "EMPATHY_GST_VIDEO_SRC_CHANNEL_CONTRAST")
+    '("empathy-gst-video-src-channel-brightness" "EMPATHY_GST_VIDEO_SRC_CHANNEL_BRIGHTNESS")
+    '("empathy-gst-video-src-channel-gamma" "EMPATHY_GST_VIDEO_SRC_CHANNEL_GAMMA")
+    '("nr-empathy-gst-video-src-channels" "NR_EMPATHY_GST_VIDEO_SRC_CHANNELS")
+  )
+)
+
 (define-enum Sound
   (in-module "Empathy")
   (c-name "EmpathySound")
   (return-type "GstElement*")
 )
 
+(define-function audio_src_set_volume
+  (c-name "empathy_audio_src_set_volume")
+  (return-type "none")
+  (parameters
+    '("EmpathyGstAudioSrc*" "src")
+    '("gdouble" "volume")
+  )
+)
+
+(define-function audio_src_get_volume
+  (c-name "empathy_audio_src_get_volume")
+  (return-type "gdouble")
+  (parameters
+    '("EmpathyGstAudioSrc*" "src")
+  )
+)
+
 
 
 ;; From empathy-video-src.h
   (return-type "GstElement*")
 )
 
+(define-function video_src_get_supported_channels
+  (c-name "empathy_video_src_get_supported_channels")
+  (return-type "guint")
+  (parameters
+    '("GstElement*" "src")
+  )
+)
+
+(define-function video_src_set_channel
+  (c-name "empathy_video_src_set_channel")
+  (return-type "none")
+  (parameters
+    '("GstElement*" "src")
+    '("EmpathyGstVideoSrcChannel" "channel")
+    '("guint" "percent")
+  )
+)
+
+(define-function video_src_get_channel
+  (c-name "empathy_video_src_get_channel")
+  (return-type "guint")
+  (parameters
+    '("GstElement*" "src")
+    '("EmpathyGstVideoSrcChannel" "channel")
+  )
+)
+
 
 
 ;; From empathy-video-widget.h
   (return-type "none")
 )
 
+(define-function uri_regex_dup_singleton
+  (c-name "empathy_uri_regex_dup_singleton")
+  (return-type "GRegex*")
+)
+
 (define-function glade_get_file_simple
   (c-name "empathy_glade_get_file_simple")
   (return-type "none")
index e1ef3a51400879fc4f70779ef127c36496465688..19c8f10b0b5487f9d29faa07140aee940cb6354f 100755 (executable)
@@ -24,6 +24,8 @@ python /usr/share/pygobject/2.0/codegen/h2def.py      \
        empathy-irc-network-manager.h           \
        empathy-irc-server.h                    \
        empathy-log-manager.h                   \
+       empathy-log-store.h                     \
+       empathy-log-store-empathy.h             \
        empathy-message.h                       \
        empathy-status-presets.h                \
        empathy-time.h                          \