diff options
author | Günther Deschner <gd@samba.org> | 2009-01-15 20:10:09 +0100 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2009-02-04 22:04:52 +0100 |
commit | 456bd5ad08d754691706f955970cddba3846c3a7 (patch) | |
tree | 6174312376cfecff84d32b02d064e69033b2d602 /source3/rpc_server/srv_eventlog.c | |
parent | 63a992168db48568c91fe622e81141ca00c9bc45 (diff) | |
download | samba-456bd5ad08d754691706f955970cddba3846c3a7.tar.gz samba-456bd5ad08d754691706f955970cddba3846c3a7.tar.bz2 samba-456bd5ad08d754691706f955970cddba3846c3a7.zip |
s3-eventlog: use pidl for _eventlog_ReadEventLogW.
Guenther
Diffstat (limited to 'source3/rpc_server/srv_eventlog.c')
-rw-r--r-- | source3/rpc_server/srv_eventlog.c | 22 |
1 files changed, 1 insertions, 21 deletions
diff --git a/source3/rpc_server/srv_eventlog.c b/source3/rpc_server/srv_eventlog.c index 39e3115561..dd00a247fd 100644 --- a/source3/rpc_server/srv_eventlog.c +++ b/source3/rpc_server/srv_eventlog.c @@ -63,27 +63,7 @@ static bool api_eventlog_get_oldest_entry(pipes_struct *p) static bool api_eventlog_read_eventlog(pipes_struct *p) { - EVENTLOG_Q_READ_EVENTLOG q_u; - EVENTLOG_R_READ_EVENTLOG 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_read_eventlog("", &q_u, data, 0))) { - DEBUG(0, ("eventlog_io_q_read_eventlog: unable to unmarshall EVENTLOG_Q_READ_EVENTLOG.\n")); - return False; - } - - r_u.status = _eventlog_read_eventlog(p, &q_u, &r_u); - - if (!(eventlog_io_r_read_eventlog("", &q_u, &r_u, rdata, 0))) { - DEBUG(0, ("eventlog_io_r_read_eventlog: unable to marshall EVENTLOG_R_READ_EVENTLOG.\n")); - return False; - } - - return True; + return proxy_eventlog_call(p, NDR_EVENTLOG_READEVENTLOGW); } static bool api_eventlog_clear_eventlog(pipes_struct *p) |