diff options
author | Andrew Tridgell <tridge@samba.org> | 1999-12-13 13:35:20 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 1999-12-13 13:35:20 +0000 |
commit | 32a965e09ce4befe971855e11e1fb5ceb51a9ed1 (patch) | |
tree | 157f164263a56d7e3f2ca1fe9a05a9df24f25234 /source3/rpcclient/display_event.c | |
parent | 3db52feb1f3b2c07ce0b06ad4a7099fa6efe3fc7 (diff) | |
download | samba-32a965e09ce4befe971855e11e1fb5ceb51a9ed1.tar.gz samba-32a965e09ce4befe971855e11e1fb5ceb51a9ed1.tar.bz2 samba-32a965e09ce4befe971855e11e1fb5ceb51a9ed1.zip |
2nd phase of head branch sync with SAMBA_2_0 - this delets all the files that were in the head branch but weren't in SAMBA_2_0
(This used to be commit d7b208786590b5a28618590172b8d523627dda09)
Diffstat (limited to 'source3/rpcclient/display_event.c')
-rw-r--r-- | source3/rpcclient/display_event.c | 101 |
1 files changed, 0 insertions, 101 deletions
diff --git a/source3/rpcclient/display_event.c b/source3/rpcclient/display_event.c deleted file mode 100644 index cd941851ac..0000000000 --- a/source3/rpcclient/display_event.c +++ /dev/null @@ -1,101 +0,0 @@ -/* - Unix SMB/Netbios implementation. - Version 1.9. - Samba utility functions - Copyright (C) Andrew Tridgell 1992-1999 - Copyright (C) Luke Kenneth Casson Leighton 1996 - 1999 - - This program is free software; you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 2 of the License, or - (at your option) any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program; if not, write to the Free Software - Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. -*/ - -#include "includes.h" - - -/**************************************************************************** - display structure - ****************************************************************************/ -void display_eventlog_eventrecord(FILE *out_hnd, enum action_type action, EVENTLOGRECORD *const ev) -{ - switch (action) - { - case ACTION_HEADER: - { - report(out_hnd, "\tevent log records\n"); - report(out_hnd, "\t-----------------\n"); - break; - } - case ACTION_ENUMERATE: - { - fstring temp; - report(out_hnd, "\t\trecord n.:\t%d\n", ev->recordnumber); - - report(out_hnd, "\t\tsource\teventnumber\teventtype\tcategory\n"); - unistr_to_ascii(temp, ev->sourcename.buffer, sizeof(temp)-1); - - report(out_hnd, "\t\t%s", temp); - - report(out_hnd, "\t%d\t\t", ev->eventnumber&0x0000FFFF); - - switch (ev->eventtype) - { - case EVENTLOG_OK: - report(out_hnd, "Normal"); - break; - - case EVENTLOG_ERROR: - report(out_hnd, "Error"); - break; - - case EVENTLOG_WARNING: - report(out_hnd, "Warning"); - break; - - case EVENTLOG_INFORMATION: - report(out_hnd, "Information"); - break; - - case EVENTLOG_AUDIT_OK: - report(out_hnd, "Audit Normal"); - break; - - case EVENTLOG_AUDIT_ERROR: - report(out_hnd, "Audit Error\n"); - break; - } - - report(out_hnd, "\t%d\n", ev->category); - report(out_hnd, "\t\tcreationtime:\t%s\n", http_timestring(ev->creationtime)); - report(out_hnd, "\t\twritetime:\t%s\n", http_timestring(ev->writetime)); - - unistr_to_ascii(temp, ev->computername.buffer, sizeof(temp)-1); - report(out_hnd, "\t\tcomputer:\t%s\n", temp); - - if (ev->num_of_strings!=0) - { - unistr_to_ascii(temp, ev->strings.buffer, sizeof(temp)-1); - report(out_hnd, "\t\tdescription:\t%s\n", temp); - } - - report(out_hnd, "\n"); - break; - } - case ACTION_FOOTER: - { - report(out_hnd, "\n"); - break; - } - } -} - |