allow parameters and dimensions to be named
[platform/upstream/isl.git] / isl_name.h
1 #ifndef ISL_NAME_H
2 #define ISL_NAME_H
3
4 #include <isl_ctx.h>
5
6 #if defined(__cplusplus)
7 extern "C" {
8 #endif
9
10 struct isl_name {
11         int ref;
12
13         const char *name;
14 };
15
16 struct isl_name *isl_name_alloc(struct isl_ctx *ctx, const char *name);
17 struct isl_name *isl_name_get(struct isl_ctx *ctx, const char *name);
18 struct isl_name *isl_name_copy(struct isl_ctx *ctx, struct isl_name *name);
19 void isl_name_free(struct isl_ctx *ctx, struct isl_name *name);
20
21 #if defined(__cplusplus)
22 }
23 #endif
24
25 #endif