/* Use property name to get a CRDeclaration from the declaration list. Returns #CRDeclaration with property name a_prop, or NULL if not found.  */
CRDeclaration* cr_declaration_get_by_prop_name(CRDeclaration *a_this, const guchar *a_prop)
/* Use property name to get a CRDeclaration from the declaration list. Returns #CRDeclaration with property name a_prop, or NULL if not found.  */
CRDeclaration* cr_declaration_get_by_prop_name(CRDeclaration *a_this, const guchar *a_prop)
{
        CRDeclaration *cur = NULL;
        g_return_val_if_fail (a_this, NULL);
        g_return_val_if_fail (a_prop, NULL);
        for (cur = a_this; cur; cur = cur->next) {
		if (cur->property 
		    && cur->property->stryng
		    && cur->property->stryng->str) {
			if (!strcmp (cur->property->stryng->str, 
				     a_prop)) {
				return cur;
			}
		}
	}
        return NULL;
}