diff options
author | Simo Sorce <idra@samba.org> | 2009-01-06 18:23:59 -0500 |
---|---|---|
committer | Simo Sorce <idra@samba.org> | 2009-01-06 18:23:59 -0500 |
commit | 5aa5391dcd8a7d593757c0af3a765bbce1ce2138 (patch) | |
tree | 6fe184bed37e97e72e9dfd59739aef0785e29fd8 /server/providers/data_provider.h | |
parent | c1f2536bac22d17ab658050f0cacb0528b01a87f (diff) | |
download | sssd-5aa5391dcd8a7d593757c0af3a765bbce1ce2138.tar.gz sssd-5aa5391dcd8a7d593757c0af3a765bbce1ce2138.tar.bz2 sssd-5aa5391dcd8a7d593757c0af3a765bbce1ce2138.zip |
Add more infrastructure to data provider to dispatch requests (still untested).
Add helper functions to connect to the data provider.
Add some plumbing to the ldap provider (still untested).
Diffstat (limited to 'server/providers/data_provider.h')
-rw-r--r-- | server/providers/data_provider.h | 34 |
1 files changed, 30 insertions, 4 deletions
diff --git a/server/providers/data_provider.h b/server/providers/data_provider.h index a7712d08..bd610a53 100644 --- a/server/providers/data_provider.h +++ b/server/providers/data_provider.h @@ -24,12 +24,18 @@ #include <stdint.h> #include <sys/un.h> +#include <errno.h> #include "talloc.h" #include "tevent.h" #include "ldb.h" +#include "util/util.h" +#include "confdb/confdb.h" +#include "dbus/dbus.h" +#include "sbus/sssd_dbus.h" +#include "sbus_interfaces.h" +#include "util/service_helpers.h" #define DATA_PROVIDER_VERSION 0x0001 -#define BE_VERSION 0x0001 #define DATA_PROVIDER_SERVICE_NAME "dp" #define DATA_PROVIDER_PIPE "private/sbus-dp" @@ -48,9 +54,29 @@ #define DP_CLI_METHOD_IDENTITY "getIdentity" #define DP_CLI_METHOD_ONLINE "getOnline" +#define DP_CLI_METHOD_GETACCTINFO "getAccountInfo" -struct dp_be_mod_ops { - int (*check_online)(void *pvt_data, int *reply); -}; +#define DP_SRV_METHOD_GETACCTINFO "getAccountInfo" + +#define DP_ERR_OK 0 +#define DP_ERR_OFFLINE 1 +#define DP_ERR_TIMEOUT 2 +#define DP_ERR_FATAL 3 + +#define BE_ATTR_CORE 1 +#define BE_ATTR_MEM 2 +#define BE_ATTR_ALL 3 + +#define BE_FILTER_NAME 1 +#define BE_FILTER_IDNUM 2 + +#define BE_REQ_USER 1 +#define BE_REQ_GROUP 2 + +int dp_sbus_cli_init(TALLOC_CTX *mem_ctx, + struct event_context *ev, + struct confdb_ctx *cdb, + struct sbus_method *methods, + struct service_sbus_ctx **srvs_ctx); #endif /* __DATA_PROVIDER_ */ |