Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: CVS commit: src/include



> Module Name:  src
> Committed By: elad
> Date:         Sat Feb 18 10:53:33 UTC 2006
> 
> Modified Files:
>       src/include: util.h
> 
> Log Message:
> Add the struct pw_policy forgotten in previous commit.

i don't think it's a good idea to expose this internal detail to callers.

how about:
        struct pw_policy; /* opaque */

        struct pw_policy *pw_policy_load(...);
        int pw_policy_test(const struct pw_policy *, ...);
        void pw_policy_free(struct pw_policy *);

btw, i think "pw" and "key" should be const.

YAMAMOTO Takashi



Home | Main Index | Thread Index | Old Index