]> git.tuebingen.mpg.de Git - paraslash.git/blobdiff - attribute.c
afs: Replace ->init of afs tables by table operations.
[paraslash.git] / attribute.c
index 3ff70cb279d80b82f14520760bac2eec5b3576da..8c87fa309a0cda8edcfd2719bc6c1564284207a9 100644 (file)
@@ -491,14 +491,9 @@ static int attribute_create(const char *dir)
        return osl(osl_create_table(&attribute_table_desc));
 }
 
-/**
- * Initialize the attribute table structure.
- *
- * \param t The table structure to initialize.
- */
-void attribute_init(struct afs_table *t)
-{
-       t->open = attribute_open;
-       t->close = attribute_close;
-       t->create = attribute_create;
-}
+/** The attribute table stores name/bitnum pairs. */
+const struct afs_table_operations attr_ops = { /* no event handler */
+       .open = attribute_open,
+       .close = attribute_close,
+       .create = attribute_create,
+};