/*
   Unix SMB/CIFS implementation.
   mididriver module for ICS
   Copyright (C) Stefan Metzmacher 2009
   Copyright (C) Gerald Carter 2006

   This program is free software; you can redistribute it and/or modify
   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 .
*/

#include "includes.h"
#include "irpc.h"
#include "../librpc/gen_ndr/ndr_irpc_c.h"
#include "system/filesys.h"
#include "smbd/smbd.h"
#include "system/filesys.h"
#include "lib/util/tevent_ntstatus.h"
#include "librpc/gen_ndr/ndr_irpc_c.h"
#include "../libcli/security/security.h"
#include "smbd/smbd_proto.h"

struct ics_context {
        struct irpc_message *msg;
        struct irpc_message *reply;
        struct imessaging_context *msg_ctx;
        struct imessaging_context *reply_ctx;
        struct imessaging_context *qctx;
        struct irpc_binding_handle *irpc_handle;
};

struct ics_iremotewinspool_state {
        struct tevent_context *ev;
        struct imessaging_context *msg_ctx;
        struct imessaging_context *reply_ctx;
        uint32_t available_ops;
        struct imessaging_context *qctx;
        struct tevent_req *imessaging_req;
};