added NOResourcePermission typedef enum