add isl_*_list_from_*
[platform/upstream/isl.git] / include / isl / list.h
index 765d016..7275de5 100644 (file)
@@ -22,6 +22,8 @@ struct isl_##EL;                                                      \
 struct isl_##EL##_list;                                                        \
 typedef struct isl_##EL##_list isl_##EL##_list;                                \
 isl_ctx *isl_##EL##_list_get_ctx(__isl_keep isl_##EL##_list *list);    \
+__isl_give isl_##EL##_list *isl_##EL##_list_from_##EL(                 \
+       __isl_take struct isl_##EL *el);                                \
 __isl_give isl_##EL##_list *isl_##EL##_list_alloc(isl_ctx *ctx, int n);        \
 __isl_give isl_##EL##_list *isl_##EL##_list_copy(                      \
        __isl_keep isl_##EL##_list *list);                              \