default values in extended attributes



Hey Everyone,

as Lars pointed out for me, i added some code in custom_object.c for a default value to pass with a extended attributes in shape sets.
Now, on compiling I get the following error Message

custom_object.c:312: error: structure has no member named `value'
custom_object.c:336: error: structure has no member named `value'
custom_object.c:336: error: structure has no member named `value'

and i was searching for the piece of code to adopt the structure, but this does not appear to me. Can someone give me a hint on that?

Thanks,
denny


PS. I attached the code I altered: see lines 300 - 337

    str = xmlGetProp(node, "value");
        if (!str)
        {
          g_free (pname);
          continue;
        }
       pvalue = g_strdup(str);
        xmlFree(str);

        /* we got here, then fill an entry */
        info->props[i].name = g_strdup_printf("custom:%s", pname);
        info->props[i].type = ptype;
       info->props[i].value = pvalue;
        info->props[i].flags = PROP_FLAG_VISIBLE;

        str = xmlGetProp(node, "description");
        if (str)
        {
          g_free (pname);
          pname = g_strdup(str);
          xmlFree(str);
        }
        info->props[i++].description = pname;
     }
   }
 }

 prop_desc_list_calculate_quarks (info->props);

 /* 2nd pass after quarks & ops have been filled in */
 for (i = n_props-1; i < n_props-1+info->n_ext_attr; i++)
   if ((info->props[i].ops) && (info->props[i].ops->get_data_size))
   { /* if prop valid & supported */
     int size;
     info->prop_offsets[i].name = info->props[i].name;
     info->prop_offsets[i].type = info->props[i].type;
     info->prop_offsets[i].value = info->props[i].value;
     info->prop_offsets[i].offset = offs;




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]