diff options
author | John Dennis <jdennis@redhat.com> | 2013-03-28 15:19:45 -0400 |
---|---|---|
committer | John Dennis <jdennis@redhat.com> | 2013-03-28 15:19:45 -0400 |
commit | 97a213ae1c58fec62a27c47fa46b822032f3d504 (patch) | |
tree | 4c54eecc94867413579d14adeabebe45692533a3 /rdcp_error.h | |
parent | b6e01f4262176376920a59038012a4ef273d0235 (diff) | |
download | realmd-cim-97a213ae1c58fec62a27c47fa46b822032f3d504.tar.gz realmd-cim-97a213ae1c58fec62a27c47fa46b822032f3d504.tar.xz realmd-cim-97a213ae1c58fec62a27c47fa46b822032f3d504.zip |
Add support for leaving realm
* Implement DBus leave method
* Implement LMI_RealmdKerberosRealm.Leave() method
* Implement LMI_RealmdService JoinDomain() & LeaveDomain() methods
* GedDBusProperties now takes CMPIStatus arg
* Add LMI_REALMD_RESULT_* constants, replaced hardcoded numbers
* Implement SetCMPIStatus() which replaces CMSetStatusWithChars,
SetCMPIStatus() permits printf style string formatting
* Move handle_g_error() from rdcp_util to rdcp_error
Diffstat (limited to 'rdcp_error.h')
-rw-r--r-- | rdcp_error.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/rdcp_error.h b/rdcp_error.h index 5bb0721..ff60d5b 100644 --- a/rdcp_error.h +++ b/rdcp_error.h @@ -17,4 +17,22 @@ typedef enum { const char * rdcp_error_code_to_string(rdcp_error_codes ec); +#define LMI_REALMD_RESULT_SUCCESS 0 +#define LMI_REALMD_RESULT_FAILED 1 +#define LMI_REALMD_RESULT_NO_SUCH_DOMAIN 2 +#define LMI_REALMD_RESULT_DOMAIN_DOES_NOT_SUPPORT_PROVIDED_CREDENTIALS 3 +#define LMI_REALMD_RESULT_DOMAIN_DOES_NOT_SUPPORT_JOINING 4 + +#define DEFAULT_STATUS_MSG_SIZE 128 + +CMPIStatus +handle_g_error(GError **g_error, const CMPIBroker* cb, CMPIStatus* status, CMPIrc rc, + const gchar *format, ...) + __attribute__ ((format (printf, 5, 6))); + +CMPIStatus +SetCMPIStatus(const CMPIBroker* mb, CMPIStatus* st, CMPIrc rc, + const gchar *format, ...) + __attribute__ ((format (printf, 4, 5))); + #endif /* __RDCP_ERROR_H__ */ |