Setting properties to "" or removing them

Joe Shaw joe at ximian.com
Fri Apr 30 11:26:29 PDT 2004


Hey,

I wanted to set some convention for empty properties in the daemon.  I
came across some code which sets block.mount_point and block.fstype to
"" when a filesystem is unmounted.  Do we want to do this or remove the
property altogether.  I'd lean toward removing it, that way you don't
have to check whether a property is NULL or "", but on the flip side you
do need to check if it's NULL before doing something like strcmp().  

Joe


_______________________________________________
hal mailing list
hal at freedesktop.org
http://freedesktop.org/mailman/listinfo/hal



More information about the Hal mailing list