mirror of
https://github.com/samba-team/samba.git
synced 2025-01-12 09:18:10 +03:00
e427f58622
The main difference in this new version is the extra data structure generated
between the IDL data structure and the NDR parser:
IDL -> NDR -> { ndr_parser, ndr_header, eparser, etc }
This makes the ndr_parser.pm internals much more sane.
Other changes include:
- Remove unnecessary calls with NDR_BUFFERS (for example, GUID doesn't have any buffers, just scalars) as well as some (unnecessary) nested setting of flags.
- Parse array loops in the C code rather then calling ndr_pull_array(). This allows us to have, for example, arrays of pointers or arrays of pointers to arrays, etc..
- Use if() {} rather then if () goto foo; everywhere
- NDR_IN no longer implies LIBNDR_FLAG_REF_ALLOC
- By default, top level pointers are now "ref" (as is the default in
most other IDL compilers). This can be overridden using the
default_pointer_top() property.
- initial work on new ethereal parser generators by Alan DeKok and me
- pidl now writes errors in the standard format used by compilers, which
is parsable by most editors
- ability to warn about the fact that pidl extension(s) have been used,
useful for making sure IDL files work with other IDL compilers.
oh, and there's probably some other things I can't think of right now..
(This used to be commit 13cf227615
)
71 lines
1.4 KiB
Plaintext
71 lines
1.4 KiB
Plaintext
/*
|
|
atsvc interface definition
|
|
*/
|
|
|
|
#include "idl_types.h"
|
|
|
|
[ uuid("1ff70682-0a51-30e8-076d-740be8cee98b"),
|
|
version(1.0),
|
|
pointer_default(unique),
|
|
pointer_default_top(unique),
|
|
helpstring("Queue/List/Remove jobs for later execution"),
|
|
endpoint("ncacn_np:[\\pipe\\atsvc]", "ncalrpc:")
|
|
] interface atsvc
|
|
{
|
|
typedef struct {
|
|
uint32 job_time;
|
|
uint32 days_of_month;
|
|
uint8 days_of_week;
|
|
uint8 flags;
|
|
unistr *command;
|
|
} atsvc_JobInfo;
|
|
|
|
/******************/
|
|
/* Function: 0x00 */
|
|
NTSTATUS atsvc_JobAdd(
|
|
[in] unistr *servername,
|
|
[in,ref] atsvc_JobInfo *job_info,
|
|
[out] uint32 job_id
|
|
);
|
|
|
|
/******************/
|
|
/* Function: 0x01 */
|
|
NTSTATUS atsvc_JobDel(
|
|
[in] unistr *servername,
|
|
[in] uint32 min_job_id,
|
|
[in] uint32 max_job_id
|
|
);
|
|
|
|
typedef struct {
|
|
uint32 job_id;
|
|
uint32 job_time;
|
|
uint32 days_of_month;
|
|
uint8 days_of_week;
|
|
uint8 flags;
|
|
unistr *command;
|
|
} atsvc_JobEnumInfo;
|
|
|
|
typedef struct {
|
|
uint32 entries_read;
|
|
[size_is(entries_read)] atsvc_JobEnumInfo *first_entry;
|
|
} atsvc_enum_ctr;
|
|
|
|
/******************/
|
|
/* Function: 0x02 */
|
|
NTSTATUS atsvc_JobEnum(
|
|
[in] unistr *servername,
|
|
[in,out,ref] atsvc_enum_ctr *ctr,
|
|
[in] uint32 preferred_max_len,
|
|
[out] uint32 total_entries,
|
|
[in,out] uint32 *resume_handle
|
|
);
|
|
|
|
/******************/
|
|
/* Function: 0x03 */
|
|
[public] NTSTATUS atsvc_JobGetInfo(
|
|
[in] unistr *servername,
|
|
[in] uint32 job_id,
|
|
[out] atsvc_JobInfo *job_info
|
|
);
|
|
}
|