summaryrefslogtreecommitdiff
path: root/server/nss/nsssrv.h
diff options
context:
space:
mode:
authorSimo Sorce <idra@samba.org>2008-10-09 12:46:38 -0400
committerSimo Sorce <idra@samba.org>2008-10-09 12:46:38 -0400
commitbe2dc085a371cd9b68770b6e3f008a952636867d (patch)
tree807bd0ba6c95d3d5e4a214c94a92f0696e86e364 /server/nss/nsssrv.h
parent717ceeeafcdad93c374a42dcdce040bc08e4a7a7 (diff)
downloadsssd-be2dc085a371cd9b68770b6e3f008a952636867d.tar.gz
sssd-be2dc085a371cd9b68770b6e3f008a952636867d.tar.bz2
sssd-be2dc085a371cd9b68770b6e3f008a952636867d.zip
Implement getpwent() support
Diffstat (limited to 'server/nss/nsssrv.h')
-rw-r--r--server/nss/nsssrv.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/server/nss/nsssrv.h b/server/nss/nsssrv.h
index 6ed679f4..6302c32c 100644
--- a/server/nss/nsssrv.h
+++ b/server/nss/nsssrv.h
@@ -30,6 +30,7 @@
#include "../nss_client/sss_nss.h"
struct nss_ldb_ctx;
+struct getent_ctx;
struct nss_ctx {
struct task_server *task;
@@ -45,6 +46,7 @@ struct cli_ctx {
struct fd_event *cfde;
struct sockaddr_un addr;
struct cli_request *creq;
+ struct getent_ctx *gctx;
};
struct nss_packet;
@@ -65,8 +67,9 @@ int nss_packet_new(TALLOC_CTX *mem_ctx, size_t size,
int nss_packet_grow(struct nss_packet *packet, size_t size);
int nss_packet_recv(struct nss_packet *packet, int fd);
int nss_packet_send(struct nss_packet *packet, int fd);
-enum sss_nss_command nss_get_cmd(struct nss_packet *packet);
-void nss_get_body(struct nss_packet *packet, uint8_t **body, size_t *blen);
+enum sss_nss_command nss_packet_get_cmd(struct nss_packet *packet);
+void nss_packet_get_body(struct nss_packet *packet, uint8_t **body, size_t *blen);
+void nss_packet_set_error(struct nss_packet *packet, int error);
/* from nsssrv_cmd.c */
int nss_cmd_execute(struct cli_ctx *cctx);