diff options
author | 2013-02-26 20:16:58 -0800 | |
---|---|---|
committer | 2013-03-02 08:59:14 -0800 | |
commit | cdb96078f13a21891e419b5c578737f784061f6a (patch) | |
tree | 16100097d0fcbbc7d0eab52024b375fa5c39ff7e | |
parent | d1f5e87d59313797cf68cf70ed25effcd7a7add6 (diff) | |
download | paludis-cdb96078f13a21891e419b5c578737f784061f6a.tar.gz paludis-cdb96078f13a21891e419b5c578737f784061f6a.tar.xz |
reorder forward declarations
Reoder the forward declarations to ensure that the methods are declared when
friended by classes.
-rw-r--r-- | paludis/selinux/security_context.hh | 43 |
1 files changed, 22 insertions, 21 deletions
diff --git a/paludis/selinux/security_context.hh b/paludis/selinux/security_context.hh index e36e0482b..acf9a0b20 100644 --- a/paludis/selinux/security_context.hh +++ b/paludis/selinux/security_context.hh @@ -36,6 +36,28 @@ namespace paludis { class FSCreateCon; class MatchPathCon; + class SecurityContext; + + /** + * Thin wrapper around setfilecon() + * + * \ingroup grplibpaludisselinux + */ + int setfilecon(const FSPath & file, const std::shared_ptr<const SecurityContext> & con) PALUDIS_VISIBLE; + + /** + * Whether SELinux is enabled. Ideally, you are not using this function. + * + * \ingroup grplibpaludisselinux + */ + bool is_selinux_enabled() PALUDIS_VISIBLE; + + /** + * A SecurityContext can be written to a stream. + * + * \ingroup grplibpaludisselinux + */ + std::ostream& operator<<(std::ostream&, const SecurityContext &) PALUDIS_VISIBLE; /** * Error class for SELinux-related functions @@ -101,13 +123,6 @@ namespace paludis }; /** - * A SecurityContext can be written to a stream. - * - * \ingroup grplibpaludisselinux - */ - std::ostream& operator<<(std::ostream&, const SecurityContext &) PALUDIS_VISIBLE; - - /** * RAII-style wrapper for setfscreatecon(). * * Create an FSCreateCon object to set the security context of newly created file objects. @@ -169,20 +184,6 @@ namespace paludis */ bool good() const; }; - - /** - * Thin wrapper around setfilecon() - * - * \ingroup grplibpaludisselinux - */ - int setfilecon(const FSPath & file, const std::shared_ptr<const SecurityContext> & con) PALUDIS_VISIBLE; - - /** - * Whether SELinux is enabled. Ideally, you are not using this function. - * - * \ingroup grplibpaludisselinux - */ - bool is_selinux_enabled() PALUDIS_VISIBLE; } #endif |