mirror of
https://github.com/samba-team/samba.git
synced 2025-02-02 09:47:23 +03:00
rap: add IDL for NetPrintJob{Pause,Continue,Delete}.
Guenther
This commit is contained in:
parent
9a313bbac0
commit
d266af79b3
@ -2096,3 +2096,150 @@ _PUBLIC_ void ndr_print_rap_NetPrintQGetInfo(struct ndr_print *ndr, const char *
|
||||
}
|
||||
ndr->depth--;
|
||||
}
|
||||
|
||||
_PUBLIC_ enum ndr_err_code ndr_push_rap_NetPrintJobPause(struct ndr_push *ndr, int flags, const struct rap_NetPrintJobPause *r)
|
||||
{
|
||||
if (flags & NDR_IN) {
|
||||
NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->in.JobID));
|
||||
}
|
||||
if (flags & NDR_OUT) {
|
||||
NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->out.status));
|
||||
NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->out.convert));
|
||||
}
|
||||
return NDR_ERR_SUCCESS;
|
||||
}
|
||||
|
||||
_PUBLIC_ enum ndr_err_code ndr_pull_rap_NetPrintJobPause(struct ndr_pull *ndr, int flags, struct rap_NetPrintJobPause *r)
|
||||
{
|
||||
if (flags & NDR_IN) {
|
||||
ZERO_STRUCT(r->out);
|
||||
|
||||
NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->in.JobID));
|
||||
}
|
||||
if (flags & NDR_OUT) {
|
||||
NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->out.status));
|
||||
NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->out.convert));
|
||||
}
|
||||
return NDR_ERR_SUCCESS;
|
||||
}
|
||||
|
||||
_PUBLIC_ void ndr_print_rap_NetPrintJobPause(struct ndr_print *ndr, const char *name, int flags, const struct rap_NetPrintJobPause *r)
|
||||
{
|
||||
ndr_print_struct(ndr, name, "rap_NetPrintJobPause");
|
||||
ndr->depth++;
|
||||
if (flags & NDR_SET_VALUES) {
|
||||
ndr->flags |= LIBNDR_PRINT_SET_VALUES;
|
||||
}
|
||||
if (flags & NDR_IN) {
|
||||
ndr_print_struct(ndr, "in", "rap_NetPrintJobPause");
|
||||
ndr->depth++;
|
||||
ndr_print_uint16(ndr, "JobID", r->in.JobID);
|
||||
ndr->depth--;
|
||||
}
|
||||
if (flags & NDR_OUT) {
|
||||
ndr_print_struct(ndr, "out", "rap_NetPrintJobPause");
|
||||
ndr->depth++;
|
||||
ndr_print_uint16(ndr, "status", r->out.status);
|
||||
ndr_print_uint16(ndr, "convert", r->out.convert);
|
||||
ndr->depth--;
|
||||
}
|
||||
ndr->depth--;
|
||||
}
|
||||
|
||||
_PUBLIC_ enum ndr_err_code ndr_push_rap_NetPrintJobContinue(struct ndr_push *ndr, int flags, const struct rap_NetPrintJobContinue *r)
|
||||
{
|
||||
if (flags & NDR_IN) {
|
||||
NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->in.JobID));
|
||||
}
|
||||
if (flags & NDR_OUT) {
|
||||
NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->out.status));
|
||||
NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->out.convert));
|
||||
}
|
||||
return NDR_ERR_SUCCESS;
|
||||
}
|
||||
|
||||
_PUBLIC_ enum ndr_err_code ndr_pull_rap_NetPrintJobContinue(struct ndr_pull *ndr, int flags, struct rap_NetPrintJobContinue *r)
|
||||
{
|
||||
if (flags & NDR_IN) {
|
||||
ZERO_STRUCT(r->out);
|
||||
|
||||
NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->in.JobID));
|
||||
}
|
||||
if (flags & NDR_OUT) {
|
||||
NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->out.status));
|
||||
NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->out.convert));
|
||||
}
|
||||
return NDR_ERR_SUCCESS;
|
||||
}
|
||||
|
||||
_PUBLIC_ void ndr_print_rap_NetPrintJobContinue(struct ndr_print *ndr, const char *name, int flags, const struct rap_NetPrintJobContinue *r)
|
||||
{
|
||||
ndr_print_struct(ndr, name, "rap_NetPrintJobContinue");
|
||||
ndr->depth++;
|
||||
if (flags & NDR_SET_VALUES) {
|
||||
ndr->flags |= LIBNDR_PRINT_SET_VALUES;
|
||||
}
|
||||
if (flags & NDR_IN) {
|
||||
ndr_print_struct(ndr, "in", "rap_NetPrintJobContinue");
|
||||
ndr->depth++;
|
||||
ndr_print_uint16(ndr, "JobID", r->in.JobID);
|
||||
ndr->depth--;
|
||||
}
|
||||
if (flags & NDR_OUT) {
|
||||
ndr_print_struct(ndr, "out", "rap_NetPrintJobContinue");
|
||||
ndr->depth++;
|
||||
ndr_print_uint16(ndr, "status", r->out.status);
|
||||
ndr_print_uint16(ndr, "convert", r->out.convert);
|
||||
ndr->depth--;
|
||||
}
|
||||
ndr->depth--;
|
||||
}
|
||||
|
||||
_PUBLIC_ enum ndr_err_code ndr_push_rap_NetPrintJobDelete(struct ndr_push *ndr, int flags, const struct rap_NetPrintJobDelete *r)
|
||||
{
|
||||
if (flags & NDR_IN) {
|
||||
NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->in.JobID));
|
||||
}
|
||||
if (flags & NDR_OUT) {
|
||||
NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->out.status));
|
||||
NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->out.convert));
|
||||
}
|
||||
return NDR_ERR_SUCCESS;
|
||||
}
|
||||
|
||||
_PUBLIC_ enum ndr_err_code ndr_pull_rap_NetPrintJobDelete(struct ndr_pull *ndr, int flags, struct rap_NetPrintJobDelete *r)
|
||||
{
|
||||
if (flags & NDR_IN) {
|
||||
ZERO_STRUCT(r->out);
|
||||
|
||||
NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->in.JobID));
|
||||
}
|
||||
if (flags & NDR_OUT) {
|
||||
NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->out.status));
|
||||
NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->out.convert));
|
||||
}
|
||||
return NDR_ERR_SUCCESS;
|
||||
}
|
||||
|
||||
_PUBLIC_ void ndr_print_rap_NetPrintJobDelete(struct ndr_print *ndr, const char *name, int flags, const struct rap_NetPrintJobDelete *r)
|
||||
{
|
||||
ndr_print_struct(ndr, name, "rap_NetPrintJobDelete");
|
||||
ndr->depth++;
|
||||
if (flags & NDR_SET_VALUES) {
|
||||
ndr->flags |= LIBNDR_PRINT_SET_VALUES;
|
||||
}
|
||||
if (flags & NDR_IN) {
|
||||
ndr_print_struct(ndr, "in", "rap_NetPrintJobDelete");
|
||||
ndr->depth++;
|
||||
ndr_print_uint16(ndr, "JobID", r->in.JobID);
|
||||
ndr->depth--;
|
||||
}
|
||||
if (flags & NDR_OUT) {
|
||||
ndr_print_struct(ndr, "out", "rap_NetPrintJobDelete");
|
||||
ndr->depth++;
|
||||
ndr_print_uint16(ndr, "status", r->out.status);
|
||||
ndr_print_uint16(ndr, "convert", r->out.convert);
|
||||
ndr->depth--;
|
||||
}
|
||||
ndr->depth--;
|
||||
}
|
||||
|
@ -17,7 +17,13 @@
|
||||
|
||||
#define NDR_RAP_NETPRINTQGETINFO (0x04)
|
||||
|
||||
#define NDR_RAP_CALL_COUNT (5)
|
||||
#define NDR_RAP_NETPRINTJOBPAUSE (0x05)
|
||||
|
||||
#define NDR_RAP_NETPRINTJOBCONTINUE (0x06)
|
||||
|
||||
#define NDR_RAP_NETPRINTJOBDELETE (0x07)
|
||||
|
||||
#define NDR_RAP_CALL_COUNT (8)
|
||||
void ndr_print_rap_share_info_0(struct ndr_print *ndr, const char *name, const struct rap_share_info_0 *r);
|
||||
void ndr_print_rap_share_info_1(struct ndr_print *ndr, const char *name, const struct rap_share_info_1 *r);
|
||||
void ndr_print_rap_share_info_2(struct ndr_print *ndr, const char *name, const struct rap_share_info_2 *r);
|
||||
@ -54,4 +60,13 @@ void ndr_print_rap_NetPrintQEnum(struct ndr_print *ndr, const char *name, int fl
|
||||
enum ndr_err_code ndr_push_rap_NetPrintQGetInfo(struct ndr_push *ndr, int flags, const struct rap_NetPrintQGetInfo *r);
|
||||
enum ndr_err_code ndr_pull_rap_NetPrintQGetInfo(struct ndr_pull *ndr, int flags, struct rap_NetPrintQGetInfo *r);
|
||||
void ndr_print_rap_NetPrintQGetInfo(struct ndr_print *ndr, const char *name, int flags, const struct rap_NetPrintQGetInfo *r);
|
||||
enum ndr_err_code ndr_push_rap_NetPrintJobPause(struct ndr_push *ndr, int flags, const struct rap_NetPrintJobPause *r);
|
||||
enum ndr_err_code ndr_pull_rap_NetPrintJobPause(struct ndr_pull *ndr, int flags, struct rap_NetPrintJobPause *r);
|
||||
void ndr_print_rap_NetPrintJobPause(struct ndr_print *ndr, const char *name, int flags, const struct rap_NetPrintJobPause *r);
|
||||
enum ndr_err_code ndr_push_rap_NetPrintJobContinue(struct ndr_push *ndr, int flags, const struct rap_NetPrintJobContinue *r);
|
||||
enum ndr_err_code ndr_pull_rap_NetPrintJobContinue(struct ndr_pull *ndr, int flags, struct rap_NetPrintJobContinue *r);
|
||||
void ndr_print_rap_NetPrintJobContinue(struct ndr_print *ndr, const char *name, int flags, const struct rap_NetPrintJobContinue *r);
|
||||
enum ndr_err_code ndr_push_rap_NetPrintJobDelete(struct ndr_push *ndr, int flags, const struct rap_NetPrintJobDelete *r);
|
||||
enum ndr_err_code ndr_pull_rap_NetPrintJobDelete(struct ndr_pull *ndr, int flags, struct rap_NetPrintJobDelete *r);
|
||||
void ndr_print_rap_NetPrintJobDelete(struct ndr_print *ndr, const char *name, int flags, const struct rap_NetPrintJobDelete *r);
|
||||
#endif /* _HEADER_NDR_rap */
|
||||
|
@ -677,4 +677,43 @@ struct rap_NetPrintQGetInfo {
|
||||
|
||||
};
|
||||
|
||||
|
||||
struct rap_NetPrintJobPause {
|
||||
struct {
|
||||
uint16_t JobID;
|
||||
} in;
|
||||
|
||||
struct {
|
||||
uint16_t status;
|
||||
uint16_t convert;
|
||||
} out;
|
||||
|
||||
};
|
||||
|
||||
|
||||
struct rap_NetPrintJobContinue {
|
||||
struct {
|
||||
uint16_t JobID;
|
||||
} in;
|
||||
|
||||
struct {
|
||||
uint16_t status;
|
||||
uint16_t convert;
|
||||
} out;
|
||||
|
||||
};
|
||||
|
||||
|
||||
struct rap_NetPrintJobDelete {
|
||||
struct {
|
||||
uint16_t JobID;
|
||||
} in;
|
||||
|
||||
struct {
|
||||
uint16_t status;
|
||||
uint16_t convert;
|
||||
} out;
|
||||
|
||||
};
|
||||
|
||||
#endif /* _HEADER_rap */
|
||||
|
@ -564,6 +564,24 @@ interface rap
|
||||
[out,switch_is(level)] rap_printq_info info
|
||||
);
|
||||
|
||||
[public] void rap_NetPrintJobPause(
|
||||
[in] uint16 JobID,
|
||||
[out] uint16 status,
|
||||
[out] uint16 convert
|
||||
);
|
||||
|
||||
[public] void rap_NetPrintJobContinue(
|
||||
[in] uint16 JobID,
|
||||
[out] uint16 status,
|
||||
[out] uint16 convert
|
||||
);
|
||||
|
||||
[public] void rap_NetPrintJobDelete(
|
||||
[in] uint16 JobID,
|
||||
[out] uint16 status,
|
||||
[out] uint16 convert
|
||||
);
|
||||
|
||||
/* Parameter description strings for RAP calls */
|
||||
/* Names are defined name for RAP call with _REQ */
|
||||
/* appended to end. */
|
||||
|
Loading…
x
Reference in New Issue
Block a user