mirror of
https://github.com/samba-team/samba.git
synced 2025-01-27 14:04:05 +03:00
Use pidl for _eventlog_GetNumRecords().
Guenther (This used to be commit af30a6373e7d85df4bb99e153588498938ddc368)
This commit is contained in:
parent
00073422d5
commit
72d0deddc4
@ -72,27 +72,7 @@ static bool api_eventlog_close_eventlog(pipes_struct *p)
|
||||
|
||||
static bool api_eventlog_get_num_records(pipes_struct *p)
|
||||
{
|
||||
EVENTLOG_Q_GET_NUM_RECORDS q_u;
|
||||
EVENTLOG_R_GET_NUM_RECORDS r_u;
|
||||
prs_struct *data = &p->in_data.data;
|
||||
prs_struct *rdata = &p->out_data.rdata;
|
||||
|
||||
ZERO_STRUCT(q_u);
|
||||
ZERO_STRUCT(r_u);
|
||||
|
||||
if (!(eventlog_io_q_get_num_records("", &q_u, data, 0))) {
|
||||
DEBUG(0, ("eventlog_io_q_get_num_records: unable to unmarshall EVENTLOG_Q_GET_NUM_RECORDS.\n"));
|
||||
return False;
|
||||
}
|
||||
|
||||
r_u.status = _eventlog_get_num_records(p, &q_u, &r_u);
|
||||
|
||||
if (!(eventlog_io_r_get_num_records("", &r_u, rdata, 0))) {
|
||||
DEBUG(0, ("eventlog_io_r_get_num_records: unable to marshall EVENTLOG_R_GET_NUM_RECORDS.\n"));
|
||||
return False;
|
||||
}
|
||||
|
||||
return True;
|
||||
return proxy_eventlog_call(p, NDR_EVENTLOG_GETNUMRECORDS);
|
||||
}
|
||||
|
||||
static bool api_eventlog_get_oldest_entry(pipes_struct *p)
|
||||
|
@ -832,13 +832,13 @@ NTSTATUS _eventlog_get_oldest_entry( pipes_struct * p,
|
||||
}
|
||||
|
||||
/********************************************************************
|
||||
_eventlog_GetNumRecords
|
||||
********************************************************************/
|
||||
|
||||
NTSTATUS _eventlog_get_num_records( pipes_struct * p,
|
||||
EVENTLOG_Q_GET_NUM_RECORDS * q_u,
|
||||
EVENTLOG_R_GET_NUM_RECORDS * r_u )
|
||||
NTSTATUS _eventlog_GetNumRecords(pipes_struct *p,
|
||||
struct eventlog_GetNumRecords *r)
|
||||
{
|
||||
EVENTLOG_INFO *info = find_eventlog_info_by_hnd( p, &q_u->handle );
|
||||
EVENTLOG_INFO *info = find_eventlog_info_by_hnd( p, r->in.handle );
|
||||
|
||||
if (info == NULL) {
|
||||
return NT_STATUS_INVALID_HANDLE;
|
||||
@ -847,7 +847,7 @@ NTSTATUS _eventlog_get_num_records( pipes_struct * p,
|
||||
if ( !( get_num_records_hook( info ) ) )
|
||||
return NT_STATUS_ACCESS_DENIED;
|
||||
|
||||
r_u->num_records = info->num_records;
|
||||
*r->out.number = info->num_records;
|
||||
|
||||
return NT_STATUS_OK;
|
||||
}
|
||||
@ -870,12 +870,6 @@ NTSTATUS _eventlog_DeregisterEventSource(pipes_struct *p, struct eventlog_Deregi
|
||||
return NT_STATUS_NOT_IMPLEMENTED;
|
||||
}
|
||||
|
||||
NTSTATUS _eventlog_GetNumRecords(pipes_struct *p, struct eventlog_GetNumRecords *r)
|
||||
{
|
||||
p->rng_fault_state = True;
|
||||
return NT_STATUS_NOT_IMPLEMENTED;
|
||||
}
|
||||
|
||||
NTSTATUS _eventlog_GetOldestRecord(pipes_struct *p, struct eventlog_GetOldestRecord *r)
|
||||
{
|
||||
p->rng_fault_state = True;
|
||||
|
Loading…
x
Reference in New Issue
Block a user