Let#s move it close to label_ops_set(), since it is somewhat symmetric
to it.
return 0;
}
+void label_ops_reset(void) {
+ label_ops = NULL;
+}
+
int label_ops_pre(int dir_fd, const char *path, mode_t mode) {
if (!label_ops || !label_ops->pre)
return 0;
return label_ops->post(dir_fd, path, created);
}
-
-void label_ops_reset(void) {
- label_ops = NULL;
-}
} LabelOps;
int label_ops_set(const LabelOps *label_ops);
+void label_ops_reset(void);
int label_ops_pre(int dir_fd, const char *path, mode_t mode);
int label_ops_post(int dir_fd, const char *path, bool created);
-
-void label_ops_reset(void);