mirror of
https://github.com/matrix-construct/construct
synced 2024-11-29 18:22:50 +01:00
privilegeset_ref(): return the privilegeset
This commit is contained in:
parent
49b0375d62
commit
598b4cf10c
2 changed files with 4 additions and 2 deletions
|
@ -42,7 +42,7 @@ int privilegeset_in_set(struct PrivilegeSet *set, const char *priv);
|
|||
struct PrivilegeSet *privilegeset_set_new(const char *name, const char *privs, PrivilegeFlags flags);
|
||||
struct PrivilegeSet *privilegeset_extend(struct PrivilegeSet *parent, const char *name, const char *privs, PrivilegeFlags flags);
|
||||
struct PrivilegeSet *privilegeset_get(const char *name);
|
||||
void privilegeset_ref(struct PrivilegeSet *set);
|
||||
struct PrivilegeSet *privilegeset_ref(struct PrivilegeSet *set);
|
||||
void privilegeset_unref(struct PrivilegeSet *set);
|
||||
|
||||
#endif
|
||||
|
|
|
@ -95,12 +95,14 @@ privilegeset_get(const char *name)
|
|||
return NULL;
|
||||
}
|
||||
|
||||
void
|
||||
struct PrivilegeSet *
|
||||
privilegeset_ref(struct PrivilegeSet *set)
|
||||
{
|
||||
s_assert(set != NULL);
|
||||
|
||||
set->refs++;
|
||||
|
||||
return set;
|
||||
}
|
||||
|
||||
void
|
||||
|
|
Loading…
Reference in a new issue