From ce974fa2a481c0eabfdafaca44b52c410a3e1a48 Mon Sep 17 00:00:00 2001 From: Jarkko Sakkinen Date: Sat, 29 Jan 2011 06:17:26 -0800 Subject: [PATCH] Updated API documentation. --- src/smack.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/smack.h b/src/smack.h index d2d0bf4..1a3542b 100644 --- a/src/smack.h +++ b/src/smack.h @@ -65,7 +65,7 @@ extern void smack_rule_set_delete(SmackRuleSet handle); * * @param handle handle to a rules * @param path path to the rules file - * @return 0 on success + * @return Returns negative value on failure. */ extern int smack_rule_set_save_config(SmackRuleSet handle, const char *path); @@ -74,7 +74,7 @@ extern int smack_rule_set_save_config(SmackRuleSet handle, const char *path); * * @param handle handle to a rule set * @param path path to the SmackFS load file - * @return 0 on success + * @return Returns negative value on failure. */ extern int smack_rule_set_apply_kernel(SmackRuleSet handle, const char *path); @@ -83,7 +83,7 @@ extern int smack_rule_set_apply_kernel(SmackRuleSet handle, const char *path); * * @param handle handle to a rules * @param path path to the rules file - * @return 0 on success + * @return Returns negative value on failure. */ extern int smack_rule_set_clear_kernel(SmackRuleSet handle, const char *path); @@ -95,7 +95,7 @@ extern int smack_rule_set_clear_kernel(SmackRuleSet handle, const char *path); * @param subject subject of the rule * @param object object of the rule * @param access access string (rwxa) - * @return 0 on success + * @return Returns negative value on failure. */ extern int smack_rule_set_add(SmackRuleSet handle, const char *subject, const char *object, const char *access); @@ -107,7 +107,7 @@ extern int smack_rule_set_add(SmackRuleSet handle, const char *subject, * @param handle handle to a rule set * @param subject subject of the rule * @param object object of the rule - * @return 0 on success + * @return Returns negative value on failure. */ extern void smack_rule_set_remove(SmackRuleSet handle, const char *subject, const char *object); @@ -139,7 +139,7 @@ extern void smack_rule_set_remove_by_object(SmackRuleSet handle, * @param subject subject of the rule * @param object object of the rule * @param access string defining access type - * @return 1 if access, 0 if no access and negative number of failure. + * @return 1 if access, 0 if no access. */ extern int smack_rule_set_have_access(SmackRuleSet handle, const char *subject, const char *object, const char *access); -- 2.7.4