soylent r252 - trunk/libsoylent
- From: svenp svn gnome org
- To: svn-commits-list gnome org
- Subject: soylent r252 - trunk/libsoylent
- Date: Wed, 30 Jul 2008 16:36:50 +0000 (UTC)
Author: svenp
Date: Wed Jul 30 16:36:50 2008
New Revision: 252
URL: http://svn.gnome.org/viewvc/soylent?rev=252&view=rev
Log:
added more convinience macros for SlPerson
Modified:
   trunk/libsoylent/sl-person.h
Modified: trunk/libsoylent/sl-person.h
==============================================================================
--- trunk/libsoylent/sl-person.h	(original)
+++ trunk/libsoylent/sl-person.h	Wed Jul 30 16:36:50 2008
@@ -113,9 +113,19 @@
                                                SL_ENTITY (self), attrname))
 #define sl_person_set(self, attrname, value)  (sl_entity_set ( \
   SL_ENTITY (self), attrname, value))
+
 #define sl_person_commit(self, error)         (sl_entity_commit ( \
                                                SL_ENTITY (self), error))
 
+#define sl_person_add_attribute(self, attr)     (sl_entity_add_attribute ( \
+  SL_ENTITY (self), attr))
+#define sl_person_remove_attribute(self, attr)  (sl_entity_remove_attribute ( \
+  SL_ENTITY (self), attr))
+#define sl_person_get_attribute(self, attrname) (sl_entity_get_attribute ( \
+  SL_ENTITY (self), attrname))
+#define sl_person_get_attributes(self)          (sl_entity_get_attributes ( \
+  SL_ENTITY (self)))
+  
 typedef struct _SlPerson      SlPerson;
 typedef struct _SlPersonClass SlPersonClass;
 typedef struct _SlPersonPriv  SlPersonPriv;
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]