+
+Odr_oid *odr_oiddup(ODR odr, Odr_oid *o)
+{
+ return odr_oiddup_nmem (odr->mem, o);
+}
+
+Odr_oid *odr_getoidbystr_nmem(NMEM nmem, char *str)
+{
+ int num = 1, i = 0;
+ char *p = str;
+ Odr_oid *ret;
+
+ if (!isdigit(*str))
+ return 0;
+ while ((p = strchr(p, '.')))
+ num++, p++;
+ ret = (int *)nmem_malloc(nmem, sizeof(*ret)*(num + 1));
+ p = str;
+ do
+ ret[i++] = atoi(p);
+ while ((p = strchr(p, '.')) && ++p);
+ ret[i] = -1;
+ return ret;
+}
+
+Odr_oid *odr_getoidbystr(ODR o, char *str)
+{
+ return odr_getoidbystr_nmem (o->mem, str);
+}
+