summaryrefslogtreecommitdiff
path: root/source3/rpc_server/srv_eventlog.c
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2008-02-04 10:10:12 +0100
committerGünther Deschner <gd@samba.org>2008-02-04 10:10:12 +0100
commit72d0deddc46a12363f930596e1823105caad5f24 (patch)
treef1ae373eed35958d5f2de74a0677d9e27c2bbaf9 /source3/rpc_server/srv_eventlog.c
parent00073422d5b61e1e2182475d9aa44290d466fb0f (diff)
downloadsamba-72d0deddc46a12363f930596e1823105caad5f24.tar.gz
samba-72d0deddc46a12363f930596e1823105caad5f24.tar.bz2
samba-72d0deddc46a12363f930596e1823105caad5f24.zip
Use pidl for _eventlog_GetNumRecords().
Guenther (This used to be commit af30a6373e7d85df4bb99e153588498938ddc368)
Diffstat (limited to 'source3/rpc_server/srv_eventlog.c')
-rw-r--r--source3/rpc_server/srv_eventlog.c22
1 files changed, 1 insertions, 21 deletions
diff --git a/source3/rpc_server/srv_eventlog.c b/source3/rpc_server/srv_eventlog.c
index 516ea134f2..96261b5635 100644
--- a/source3/rpc_server/srv_eventlog.c
+++ b/source3/rpc_server/srv_eventlog.c
@@ -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)