diff options
author | Jakub Hrozek <jhrozek@redhat.com> | 2009-09-14 13:03:57 +0200 |
---|---|---|
committer | Stephen Gallagher <sgallagh@redhat.com> | 2009-09-21 10:35:08 -0400 |
commit | 9570ca098cd0e92d1eb6aabc00fb8cac9fddd442 (patch) | |
tree | 38c745cd87c48aac9c195314782edd954c9e8287 /server/util | |
parent | 8f035b043dbd4eb631b64c4d7dcdb35272e35142 (diff) | |
download | sssd-9570ca098cd0e92d1eb6aabc00fb8cac9fddd442.tar.gz sssd-9570ca098cd0e92d1eb6aabc00fb8cac9fddd442.tar.bz2 sssd-9570ca098cd0e92d1eb6aabc00fb8cac9fddd442.zip |
Provide python bindings for sysdb
Implement a set of python bindings for the sysdb with feature set
similar to what is available in the tools. The primary
consumers would be applications like system-config-users.
Resolves: Ticket #102
Diffstat (limited to 'server/util')
-rw-r--r-- | server/util/util.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/server/util/util.h b/server/util/util.h index dda7527e..ea7f44e8 100644 --- a/server/util/util.h +++ b/server/util/util.h @@ -104,6 +104,14 @@ void debug_fn(const char *format, ...); #define talloc_zfree(ptr) do { talloc_free(ptr); ptr = NULL; } while(0) #endif +#ifndef discard_const_p +#if defined(__intptr_t_defined) || defined(HAVE_INTPTR_T) +# define discard_const_p(type, ptr) ((type *)((intptr_t)(ptr))) +#else +# define discard_const_p(type, ptr) ((type *)(ptr)) +#endif +#endif + /* TODO: remove later * These functions are available in the latest tevent and are the ones that * should be used as tevent_req is rightfully opaque there */ |