+/* Returns the type of the 'enum_' member for an ovsdb_base_type whose 'type'
+ * is 'atomic_type'. */
+const struct ovsdb_type *
+ovsdb_base_type_get_enum_type(enum ovsdb_atomic_type atomic_type)
+{
+ static struct ovsdb_type *types[OVSDB_N_TYPES];
+
+ if (!types[atomic_type]) {
+ struct ovsdb_type *type;
+
+ types[atomic_type] = type = xmalloc(sizeof *type);
+ ovsdb_base_type_init(&type->key, atomic_type);
+ ovsdb_base_type_init(&type->value, OVSDB_TYPE_VOID);
+ type->n_min = 1;
+ type->n_max = UINT_MAX;
+ }
+ return types[atomic_type];
+}
+