[Galago-commits] r2618 - in trunk/galago-python: . src

galago-commits at freedesktop.org galago-commits at freedesktop.org
Mon Mar 20 00:26:58 PST 2006


Author: chipx86
Date: 2006-03-20 00:26:50 -0800 (Mon, 20 Mar 2006)
New Revision: 2618

Modified:
   trunk/galago-python/ChangeLog
   trunk/galago-python/src/Makefile.am
   trunk/galago-python/src/galago.defs
Log:
Update the Python bindings for most of the remote attribute and status changes made today.


Modified: trunk/galago-python/ChangeLog
===================================================================
--- trunk/galago-python/ChangeLog	2006-03-20 01:24:51 UTC (rev 2617)
+++ trunk/galago-python/ChangeLog	2006-03-20 08:26:50 UTC (rev 2618)
@@ -1,3 +1,10 @@
+Mon Mar 20 00:26:18 PST 2006  Christian Hammond <chipx86 at chipx86.com>
+
+	* src/Makefile.am:
+	* src/galago.defs:
+	  - Update the Python bindings for most of the remote attribute and
+	    status changes made today.
+
 Sat Mar 18 13:44:47 PST 2006  Christian Hammond <chipx86 at chipx86.com>
 
 	A src/__init__.py:

Modified: trunk/galago-python/src/Makefile.am
===================================================================
--- trunk/galago-python/src/Makefile.am	2006-03-20 01:24:51 UTC (rev 2617)
+++ trunk/galago-python/src/Makefile.am	2006-03-20 08:26:50 UTC (rev 2618)
@@ -37,7 +37,8 @@
 
 DEFHEADERS = $(filter-out \
 	$(includedir)/libgalago/galago-value.h \
-	$(includedir)/libgalago/galago-dbus.h, \
+	$(includedir)/libgalago/galago-dbus.h  \
+	$(includedir)/libgalago/galago-key-value.h, \
 	$(wildcard $(includedir)/libgalago/*.h))
 
 update-defs:

Modified: trunk/galago-python/src/galago.defs
===================================================================
--- trunk/galago-python/src/galago.defs	2006-03-20 01:24:51 UTC (rev 2617)
+++ trunk/galago-python/src/galago.defs	2006-03-20 08:26:50 UTC (rev 2618)
@@ -104,20 +104,7 @@
   )
 )
 
-(define-enum StatusAttrType
-  (in-module "Galago")
-  (c-name "GalagoStatusAttrType")
-  (gtype-id "GALAGO_TYPE_STATUS_ATTR_TYPE")
-  (values
-    '("unset" "GALAGO_STATUS_ATTR_UNSET")
-    '("bool" "GALAGO_STATUS_ATTR_BOOL")
-    '("string" "GALAGO_STATUS_ATTR_STRING")
-    '("int" "GALAGO_STATUS_ATTR_INT")
-    '("double" "GALAGO_STATUS_ATTR_DOUBLE")
-  )
-)
 
-
 ;; From /usr/include/libgalago/galago-account.h
 
 (define-function galago_account_get_type
@@ -551,11 +538,6 @@
   (return-type "GType")
 )
 
-(define-function galago_status_attr_type_get_type
-  (c-name "galago_status_attr_type_get_type")
-  (return-type "GType")
-)
-
 (define-function galago_type_get_type
   (c-name "galago_type_get_type")
   (return-type "GType")
@@ -675,6 +657,16 @@
   )
 )
 
+(define-method set_attr_double
+  (of-object "GalagoObject")
+  (c-name "galago_object_set_attr_double")
+  (return-type "none")
+  (parameters
+    '("const-char*" "name")
+    '("gdouble" "value")
+  )
+)
+
 (define-method set_attribute
   (of-object "GalagoObject")
   (c-name "galago_object_set_attribute")
@@ -721,6 +713,15 @@
   )
 )
 
+(define-method get_attr_double
+  (of-object "GalagoObject")
+  (c-name "galago_object_get_attr_double")
+  (return-type "gdouble")
+  (parameters
+    '("const-char*" "name")
+  )
+)
+
 (define-method get_attribute
   (of-object "GalagoObject")
   (c-name "galago_object_get_attribute")
@@ -730,8 +731,14 @@
   )
 )
 
+(define-method get_attributes
+  (of-object "GalagoObject")
+  (c-name "galago_object_get_attributes")
+  (return-type "GList*")
+)
 
 
+
 ;; From /usr/include/libgalago/galago-person.h
 
 (define-function galago_person_get_type
@@ -1104,140 +1111,4 @@
   (return-type "gboolean")
 )
 
-(define-method set_attr_bool
-  (of-object "GalagoStatus")
-  (c-name "galago_status_set_attr_bool")
-  (return-type "none")
-  (parameters
-    '("const-char*" "attr_id")
-    '("gboolean" "value")
-  )
-)
 
-(define-method set_attr_string
-  (of-object "GalagoStatus")
-  (c-name "galago_status_set_attr_string")
-  (return-type "none")
-  (parameters
-    '("const-char*" "attr_id")
-    '("const-char*" "value")
-  )
-)
-
-(define-method set_attr_int
-  (of-object "GalagoStatus")
-  (c-name "galago_status_set_attr_int")
-  (return-type "none")
-  (parameters
-    '("const-char*" "attr_id")
-    '("gint32" "value")
-  )
-)
-
-(define-method set_attr_double
-  (of-object "GalagoStatus")
-  (c-name "galago_status_set_attr_double")
-  (return-type "none")
-  (parameters
-    '("const-char*" "attr_id")
-    '("double" "value")
-  )
-)
-
-(define-method remove_attr
-  (of-object "GalagoStatus")
-  (c-name "galago_status_remove_attr")
-  (return-type "none")
-  (parameters
-    '("const-char*" "attr_id")
-  )
-)
-
-(define-method get_attr_bool
-  (of-object "GalagoStatus")
-  (c-name "galago_status_get_attr_bool")
-  (return-type "gboolean")
-  (parameters
-    '("const-char*" "attr_id")
-  )
-)
-
-(define-method get_attr_string
-  (of-object "GalagoStatus")
-  (c-name "galago_status_get_attr_string")
-  (return-type "const-char*")
-  (parameters
-    '("const-char*" "attr_id")
-  )
-)
-
-(define-method get_attr_int
-  (of-object "GalagoStatus")
-  (c-name "galago_status_get_attr_int")
-  (return-type "gint32")
-  (parameters
-    '("const-char*" "attr_id")
-  )
-)
-
-(define-method get_attr_double
-  (of-object "GalagoStatus")
-  (c-name "galago_status_get_attr_double")
-  (return-type "double")
-  (parameters
-    '("const-char*" "attr_id")
-  )
-)
-
-(define-method attr_exists
-  (of-object "GalagoStatus")
-  (c-name "galago_status_attr_exists")
-  (return-type "gboolean")
-  (parameters
-    '("const-char*" "attr_id")
-  )
-)
-
-(define-method get_attributes
-  (of-object "GalagoStatus")
-  (c-name "galago_status_get_attributes")
-  (return-type "GList*")
-)
-
-(define-method get_type
-  (of-object "GalagoStatusAttr")
-  (c-name "galago_status_attr_get_type")
-  (return-type "GalagoStatusAttrType")
-)
-
-(define-method get_id
-  (of-object "GalagoStatusAttr")
-  (c-name "galago_status_attr_get_id")
-  (return-type "const-char*")
-)
-
-(define-method get_bool
-  (of-object "GalagoStatusAttr")
-  (c-name "galago_status_attr_get_bool")
-  (return-type "gboolean")
-)
-
-(define-method get_string
-  (of-object "GalagoStatusAttr")
-  (c-name "galago_status_attr_get_string")
-  (return-type "const-char*")
-)
-
-(define-method get_int
-  (of-object "GalagoStatusAttr")
-  (c-name "galago_status_attr_get_int")
-  (return-type "gint32")
-)
-
-(define-method get_double
-  (of-object "GalagoStatusAttr")
-  (c-name "galago_status_attr_get_double")
-  (return-type "double")
-)
-
-



More information about the galago-commits mailing list