Signed-off-by: Francisco Jerez <currojerez@riseup.net>
return 0;
}
+void
+nouveau_resource_destroy(struct nouveau_resource **heap)
+{
+ if (!*heap)
+ return;
+ free(*heap);
+ *heap = NULL;
+}
+
int
nouveau_resource_alloc(struct nouveau_resource *heap, unsigned size, void *priv,
struct nouveau_resource **res)
nouveau_resource_init(struct nouveau_resource **heap, unsigned start,
unsigned size);
+void
+nouveau_resource_destroy(struct nouveau_resource **heap);
+
int
nouveau_resource_alloc(struct nouveau_resource *heap, unsigned size, void *priv,
struct nouveau_resource **);