responder_cmd.h revision 11cd9b94e6fc6ce22387a49f146f875c03bf9b54
/*
SSSD
SSS Client Responder, header file
Copyright (C) Simo Sorce <ssorce@redhat.com> 2008
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef __SSSSRV_CMD_H__
#define __SSSSRV_CMD_H__
#include <stdint.h>
#include "talloc.h"
#include "tevent.h"
#include "ldb.h"
#include "../sss_client/sss_cli.h"
#include "util/btreemap.h"
/* needed until nsssrv.h is updated */
struct cli_request {
/* original request from the wire */
struct sss_packet *in;
/* reply data */
struct sss_packet *out;
};
struct resp_ctx {
struct tevent_context *ev;
int lfd;
int priv_lfd;
struct confdb_ctx *cdb;
const char *sock_name;
const char *priv_sock_name;
struct service_sbus_ctx *ss_ctx;
struct service_sbus_ctx *dp_ctx;
struct btreemap *domain_map;
char *default_domain;
struct sbus_method *sss_sbus_methods;
struct sss_cmd_table *sss_cmds;
const char *sss_pipe_name;
const char *confdb_service_path;
struct sbus_method *dp_methods;
void *pvt_ctx;
};
struct cli_ctx {
struct tevent_context *ev;
int cfd;
struct sockaddr_un addr;
struct cli_request *creq;
int priv;
};
struct sss_cmd_table {
enum sss_cli_command cmd;
};
#endif /* __SSSSRV_CMD_H__ */